public final class InterceptorContext extends Object implements Context.AfterExecution, 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 |
---|---|
static InterceptorContext.Builder |
builder() |
SdkHttpFullRequest |
httpRequest()
The
SdkHttpFullRequest that was created as a result of marshalling the Context.BeforeExecution.request() . |
SdkHttpFullResponse |
httpResponse()
The HTTP response returned by the service with which the SDK is communicating.
|
SdkRequest |
request()
The
SdkRequest to be executed. |
SdkResponse |
response()
The
SdkResponse that was generated by unmarshalling the Context.AfterTransmission.httpResponse() . |
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 SdkHttpFullRequest httpRequest()
Context.AfterMarshalling
SdkHttpFullRequest
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 SdkHttpFullResponse httpResponse()
Context.AfterTransmission
httpResponse
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 © 2018. All rights reserved.