public static class StitchAuthRequest.Builder extends StitchRequest.Builder
StitchAuthRequests.| Constructor and Description |
|---|
Builder()
Constructs a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
StitchAuthRequest |
build()
Builds the request.
|
StitchAuthRequest.Builder |
withAccessToken()
Set if this request should use an access token in this request.
|
StitchAuthRequest.Builder |
withBody(byte[] body)
Sets a copy of the body that will be sent along with the request.
|
StitchAuthRequest.Builder |
withHeaders(Map<String,String> headers)
Sets the headers that will be included in the request.
|
StitchAuthRequest.Builder |
withMethod(Method method)
Sets the HTTP method of the request.
|
StitchAuthRequest.Builder |
withPath(String path)
Sets the Stitch API path of the request.
|
StitchAuthRequest.Builder |
withRefreshToken()
Set if this request should use a refresh token in this request.
|
StitchAuthRequest.Builder |
withShouldRefreshOnFailure(boolean shouldRefresh)
Sets whether or not the performer of this request should attempt to refresh authentication
info on failure.
|
getBody, getHeaders, getMethod, getPath, getTimeout, withTimeoutpublic StitchAuthRequest.Builder withAccessToken()
public StitchAuthRequest.Builder withRefreshToken()
public StitchAuthRequest.Builder withShouldRefreshOnFailure(boolean shouldRefresh)
shouldRefresh - whether or not the performer of this request should attempt to refresh
authentication info on failure.public StitchAuthRequest.Builder withMethod(Method method)
withMethod in class StitchRequest.Buildermethod - the HTTP method of the request.public StitchAuthRequest.Builder withPath(String path)
withPath in class StitchRequest.Builderpath - the Stitch API path of the request.public StitchAuthRequest.Builder withHeaders(Map<String,String> headers)
withHeaders in class StitchRequest.Builderheaders - the headers that will be included in the request.public StitchAuthRequest.Builder withBody(byte[] body)
withBody in class StitchRequest.Builderbody - a copy of the body that will be sent along with the request.public StitchAuthRequest build()
build in class StitchRequest.BuilderStitchAuthRequest.