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>
@SdkProtectedApi public final class InterceptorContext extends Object implements Context.AfterExecution, Context.ModifyHttpRequest, ToCopyableBuilder<InterceptorContext.Builder,InterceptorContext>
An SDK-internal implementation ofContext.AfterExecutionand its parent interfaces.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInterceptorContext.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<AsyncRequestBody>asyncRequestBody()TheAsyncRequestBodythat allows non-blocking streaming of request content.static InterceptorContext.Builderbuilder()SdkHttpRequesthttpRequest()TheSdkHttpRequestthat was created as a result of marshalling theContext.BeforeExecution.request().SdkHttpResponsehttpResponse()The HTTP response returned by the service with which the SDK is communicating.SdkRequestrequest()TheSdkRequestto be executed.Optional<RequestBody>requestBody()TheRequestBodythat represents the body of an HTTP request.SdkResponseresponse()TheSdkResponsethat was generated by unmarshalling theContext.AfterTransmission.httpResponse().Optional<InputStream>responseBody()TheInputStreamthat provides streaming content returned from the service.Optional<org.reactivestreams.Publisher<ByteBuffer>>responsePublisher()ThePublisherthat providesByteBufferevents upon request.InterceptorContext.BuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
builder
public static InterceptorContext.Builder builder()
-
toBuilder
public InterceptorContext.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InterceptorContext.Builder,InterceptorContext>
-
request
public SdkRequest request()
Description copied from interface:Context.BeforeExecutionTheSdkRequestto be executed.- Specified by:
requestin interfaceContext.BeforeExecution
-
requestBody
public Optional<RequestBody> requestBody()
Description copied from interface:Context.AfterMarshallingTheRequestBodythat represents the body of an HTTP request.- Specified by:
requestBodyin interfaceContext.AfterMarshalling
-
asyncRequestBody
public Optional<AsyncRequestBody> asyncRequestBody()
Description copied from interface:Context.AfterMarshallingTheAsyncRequestBodythat allows non-blocking streaming of request content.- Specified by:
asyncRequestBodyin interfaceContext.AfterMarshalling
-
responsePublisher
public Optional<org.reactivestreams.Publisher<ByteBuffer>> responsePublisher()
Description copied from interface:Context.AfterTransmissionThePublisherthat providesByteBufferevents upon request.- Specified by:
responsePublisherin interfaceContext.AfterTransmission
-
httpRequest
public SdkHttpRequest httpRequest()
Description copied from interface:Context.AfterMarshallingTheSdkHttpRequestthat 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:
httpRequestin interfaceContext.AfterMarshalling
-
httpResponse
public SdkHttpResponse httpResponse()
Description copied from interface:Context.AfterTransmissionThe HTTP response returned by the service with which the SDK is communicating.- Specified by:
httpResponsein interfaceContext.AfterTransmission
-
responseBody
public Optional<InputStream> responseBody()
Description copied from interface:Context.AfterTransmissionTheInputStreamthat provides streaming content returned from the service.- Specified by:
responseBodyin interfaceContext.AfterTransmission
-
response
public SdkResponse response()
Description copied from interface:Context.AfterUnmarshallingTheSdkResponsethat was generated by unmarshalling theContext.AfterTransmission.httpResponse().- Specified by:
responsein interfaceContext.AfterUnmarshalling
-
-