Class InterceptorContext
java.lang.Object
software.amazon.awssdk.core.interceptor.InterceptorContext
- All Implemented Interfaces:
Context.AfterExecution
,Context.AfterMarshalling
,Context.AfterTransmission
,Context.AfterUnmarshalling
,Context.BeforeExecution
,Context.BeforeMarshalling
,Context.BeforeTransmission
,Context.BeforeUnmarshalling
,Context.ModifyHttpRequest
,Context.ModifyHttpResponse
,Context.ModifyRequest
,Context.ModifyResponse
,ToCopyableBuilder<InterceptorContext.Builder,
InterceptorContext>
public final class InterceptorContext
extends Object
implements Context.AfterExecution, Context.ModifyHttpRequest, ToCopyableBuilder<InterceptorContext.Builder,InterceptorContext>
An SDK-internal implementation of
Context.AfterExecution
and its parent interfaces.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionTheAsyncRequestBody
that allows non-blocking streaming of request content.static InterceptorContext.Builder
builder()
TheSdkHttpRequest
that was created as a result of marshalling theContext.BeforeExecution.request()
.The HTTP response returned by the service with which the SDK is communicating.request()
TheSdkRequest
to be executed.TheRequestBody
that represents the body of an HTTP request.response()
TheSdkResponse
that was generated by unmarshalling theContext.AfterTransmission.httpResponse()
.TheInputStream
that provides streaming content returned from the service.Optional
<org.reactivestreams.Publisher<ByteBuffer>> ThePublisher
that providesByteBuffer
events upon request.Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
builder
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<InterceptorContext.Builder,
InterceptorContext> - Returns:
- a builder for type T
-
request
Description copied from interface:Context.BeforeExecution
TheSdkRequest
to be executed.- Specified by:
request
in interfaceContext.BeforeExecution
-
requestBody
Description copied from interface:Context.AfterMarshalling
TheRequestBody
that represents the body of an HTTP request.- Specified by:
requestBody
in interfaceContext.AfterMarshalling
-
asyncRequestBody
Description copied from interface:Context.AfterMarshalling
TheAsyncRequestBody
that allows non-blocking streaming of request content.- Specified by:
asyncRequestBody
in interfaceContext.AfterMarshalling
-
responsePublisher
Description copied from interface:Context.AfterTransmission
ThePublisher
that providesByteBuffer
events upon request.- Specified by:
responsePublisher
in interfaceContext.AfterTransmission
-
httpRequest
Description copied from interface:Context.AfterMarshalling
TheSdkHttpRequest
that was created as a result of marshalling theContext.BeforeExecution.request()
. This is the HTTP request that will be sent to the downstream service.- Specified by:
httpRequest
in interfaceContext.AfterMarshalling
-
httpResponse
Description copied from interface:Context.AfterTransmission
The HTTP response returned by the service with which the SDK is communicating.- Specified by:
httpResponse
in interfaceContext.AfterTransmission
-
responseBody
Description copied from interface:Context.AfterTransmission
TheInputStream
that provides streaming content returned from the service.- Specified by:
responseBody
in interfaceContext.AfterTransmission
-
response
Description copied from interface:Context.AfterUnmarshalling
TheSdkResponse
that was generated by unmarshalling theContext.AfterTransmission.httpResponse()
.- Specified by:
response
in interfaceContext.AfterUnmarshalling
-