List of usage examples for com.amazonaws Request getHandlerContext
<X> X getHandlerContext(HandlerContextKey<X> key);
From source file:com.ibm.og.s3.v4.AWSS3V4Signer.java
License:Open Source License
/** * @return True if chunked encoding has been explicitly disabled per the request. False otherwise. *///from w ww . j ava2 s .com private boolean isChunkedEncodingDisabled(final SignableRequest<?> signableRequest) { if (signableRequest instanceof Request) { final Request<?> request = (Request<?>) signableRequest; final Boolean isChunkedEncodingDisabled = request .getHandlerContext(S3HandlerContextKeys.IS_CHUNKED_ENCODING_DISABLED); return isChunkedEncodingDisabled != null && isChunkedEncodingDisabled; } return false; }
From source file:io.opentracing.contrib.aws.TracingRequestHandler.java
License:Apache License
/** * {@inheritDoc}/* w ww . j a v a 2s . c om*/ */ @Override public void afterResponse(Request<?> request, Response<?> response) { Span span = request.getHandlerContext(contextKey); SpanDecorator.onResponse(response, span); span.finish(); }
From source file:io.opentracing.contrib.aws.TracingRequestHandler.java
License:Apache License
/** * {@inheritDoc}//from w ww .j a v a2 s . c o m */ @Override public void afterError(Request<?> request, Response<?> response, Exception e) { Span span = request.getHandlerContext(contextKey); SpanDecorator.onError(e, span); span.finish(); }