Class StitchRequest
- java.lang.Object
-
- com.mongodb.stitch.core.internal.net.StitchRequest
-
- Direct Known Subclasses:
StitchAuthRequest
,StitchDocRequest
public class StitchRequest extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StitchRequest.Builder
A builder that can buildStitchRequest
s.
-
Method Summary
Modifier and Type Method Description StitchRequest.Builder
builder()
boolean
equals(Object object)
byte[]
getBody()
Returns a copy of the body that will be sent along with the request.Map<String,String>
getHeaders()
Returns the headers that will be included in the request.Method
getMethod()
Returns the HTTP method of the request.String
getPath()
Returns the Stitch API path of the request.Long
getStartedAt()
Returns when the request started at.Long
getTimeout()
Returns the number of milliseconds that the underlying transport should spend on an HTTP round trip before failing with an error.int
hashCode()
String
toString()
-
-
-
Method Detail
-
builder
public StitchRequest.Builder builder()
-
getMethod
public Method getMethod()
Returns the HTTP method of the request.- Returns:
- the HTTP method of the request.
-
getPath
public String getPath()
Returns the Stitch API path of the request.- Returns:
- the Stitch API path of the request.
-
getTimeout
public Long getTimeout()
Returns the number of milliseconds that the underlying transport should spend on an HTTP round trip before failing with an error. If not configured, a default should override it before the request is transformed into a plain HTTP request.- Returns:
- the number of milliseconds that the underlying transport should spend on an HTTP round trip before failing with an error.
-
getHeaders
public Map<String,String> getHeaders()
Returns the headers that will be included in the request.- Returns:
- the headers that will be included in the request.
-
getBody
public byte[] getBody()
Returns a copy of the body that will be sent along with the request.- Returns:
- a copy of the body that will be sent along with the request.
-
getStartedAt
public Long getStartedAt()
Returns when the request started at.- Returns:
- when the request started at.
-
-