public final class InterceptorContext extends Object implements Context.AfterExecution, Context.ModifyHttpRequest, ToCopyableBuilder<InterceptorContext.Builder,InterceptorContext>
Context.AfterExecution
and its parent interfaces.Modifier and Type | Class and Description |
---|---|
static class |
InterceptorContext.Builder |
Modifier and Type | Method and Description |
---|---|
Optional<AsyncRequestBody> |
asyncRequestBody()
The
AsyncRequestBody that allows non-blocking streaming of request content. |
static InterceptorContext.Builder |
builder() |
SdkHttpRequest |
httpRequest()
The
SdkHttpRequest that was created as a result of marshalling the Context.BeforeExecution.request() . |
SdkHttpResponse |
httpResponse()
The HTTP response returned by the service with which the SDK is communicating.
|
SdkRequest |
request()
The
SdkRequest to be executed. |
Optional<RequestBody> |
requestBody()
The
RequestBody that represents the body of an HTTP request. |
SdkResponse |
response()
The
SdkResponse that was generated by unmarshalling the Context.AfterTransmission.httpResponse() . |
Optional<InputStream> |
responseBody()
The
InputStream that provides streaming content returned from the service. |
Optional<org.reactivestreams.Publisher<ByteBuffer>> |
responsePublisher()
The
Publisher that provides ByteBuffer events upon request. |
InterceptorContext.Builder |
toBuilder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy
public static InterceptorContext.Builder builder()
public InterceptorContext.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<InterceptorContext.Builder,InterceptorContext>
public SdkRequest request()
Context.BeforeExecution
SdkRequest
to be executed.request
in interface Context.BeforeExecution
public Optional<RequestBody> requestBody()
Context.AfterMarshalling
RequestBody
that represents the body of an HTTP request.requestBody
in interface Context.AfterMarshalling
public Optional<AsyncRequestBody> asyncRequestBody()
Context.AfterMarshalling
AsyncRequestBody
that allows non-blocking streaming of request content.asyncRequestBody
in interface Context.AfterMarshalling
public Optional<org.reactivestreams.Publisher<ByteBuffer>> responsePublisher()
Context.AfterTransmission
Publisher
that provides ByteBuffer
events upon request.responsePublisher
in interface Context.AfterTransmission
public SdkHttpRequest httpRequest()
Context.AfterMarshalling
SdkHttpRequest
that was created as a result of marshalling the Context.BeforeExecution.request()
. This is the HTTP
request that will be sent to the downstream service.httpRequest
in interface Context.AfterMarshalling
public SdkHttpResponse httpResponse()
Context.AfterTransmission
httpResponse
in interface Context.AfterTransmission
public Optional<InputStream> responseBody()
Context.AfterTransmission
InputStream
that provides streaming content returned from the service.responseBody
in interface Context.AfterTransmission
public SdkResponse response()
Context.AfterUnmarshalling
SdkResponse
that was generated by unmarshalling the Context.AfterTransmission.httpResponse()
.response
in interface Context.AfterUnmarshalling
Copyright © 2021. All rights reserved.