Further responsibilities such as communication with the opposite endpoint is delegated to the next executor in the request execution chain.
| Modifier and Type | Field and Description |
|---|---|
| private final AuthCacheKeeper | |
| private final HttpAuthenticator | |
| private static final Logger | |
| private final AuthenticationStrategy | |
| private final SchemePortResolver | |
| private final AuthenticationStrategy |
| Access | Constructor and Description |
|---|---|
| public | ProtocolExec(final AuthenticationStrategy targetAuthStrategy, final AuthenticationStrategy proxyAuthStrategy, final SchemePortResolver schemePortResolver, final boolean authCachingDisabled)
|
| Modifier and Type | Method and Description |
|---|---|
| public ClassicHttpResponse | execute(final ClassicHttpRequest
the actual request. userRequest, final ExecChain.the execution scope . scope,the next element in the request execution chain. chain)Implements org. |
| private boolean | needAuthentication(final AuthExchange targetAuthExchange, final AuthExchange proxyAuthExchange, final HttpHost proxy, final HttpHost target, final String pathPrefix, final HttpResponse response, final HttpClientContext context)
|
| authCacheKeeper | back to summary |
|---|---|
| private final AuthCacheKeeper authCacheKeeper | |
| authenticator | back to summary |
|---|---|
| private final HttpAuthenticator authenticator | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| proxyAuthStrategy | back to summary |
|---|---|
| private final AuthenticationStrategy proxyAuthStrategy | |
| schemePortResolver | back to summary |
|---|---|
| private final SchemePortResolver schemePortResolver | |
| targetAuthStrategy | back to summary |
|---|---|
| private final AuthenticationStrategy targetAuthStrategy | |
| ProtocolExec | back to summary |
|---|---|
| public ProtocolExec(final AuthenticationStrategy targetAuthStrategy, final AuthenticationStrategy proxyAuthStrategy, final SchemePortResolver schemePortResolver, final boolean authCachingDisabled) | |
| execute | back to summary |
|---|---|
| public ClassicHttpResponse execute(final ClassicHttpRequest userRequest, final ExecChain. Implements org. Doc from org. Executes the actual HTTP request. The handler can choose to return a response message or delegate request execution to the next element in the execution chain.
| |
| needAuthentication | back to summary |
|---|---|
| private boolean needAuthentication(final AuthExchange targetAuthExchange, final AuthExchange proxyAuthExchange, final HttpHost proxy, final HttpHost target, final String pathPrefix, final HttpResponse response, final HttpClientContext context) | |