Interface HttpClientContextHandler
-
@ThreadSafe public interface HttpClientContextHandlerExtension that allows theHttpClientContextto be externally manipulated before use.- Since:
- 7.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinvokeAfter(org.apache.http.client.protocol.HttpClientContext context, org.apache.http.client.methods.HttpUriRequest request)Perform any desired context modifications after use.voidinvokeBefore(org.apache.http.client.protocol.HttpClientContext context, org.apache.http.client.methods.HttpUriRequest request)Perform any desired context modifications before use.
-
-
-
Method Detail
-
invokeBefore
void invokeBefore(@Nonnull org.apache.http.client.protocol.HttpClientContext context, @Nonnull org.apache.http.client.methods.HttpUriRequest request) throws IOExceptionPerform any desired context modifications before use.- Parameters:
context- the context to operate onrequest- the request that will be executed- Throws:
IOException- if the call should be aborted
-
invokeAfter
void invokeAfter(@Nonnull org.apache.http.client.protocol.HttpClientContext context, @Nonnull org.apache.http.client.methods.HttpUriRequest request) throws IOExceptionPerform any desired context modifications after use.- Parameters:
context- the context to operate onrequest- the request that was executed- Throws:
IOException- if the call should be aborted
-
-