public abstract class AbstractResponseResolver extends Object implements ResponseResolver
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractResponseResolver(ResolverConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected Authenticator |
getAuthenticator() |
protected ResolverConfiguration |
getConfiguration() |
protected ProxyAuthenticator |
getProxyAuthenticator() |
HTTPResponse |
resolve(HTTPRequest request)
Resolves the given request into a response.
|
protected abstract HTTPResponse |
resolveImpl(HTTPRequest request) |
protected HTTPResponse |
resolveProxy(HTTPRequest request,
HTTPResponse response) |
protected HTTPResponse |
resolveUnauthorized(HTTPRequest request,
HTTPResponse response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdownprotected AbstractResponseResolver(ResolverConfiguration configuration)
protected final ProxyAuthenticator getProxyAuthenticator()
protected final Authenticator getAuthenticator()
protected final ResolverConfiguration getConfiguration()
public final HTTPResponse resolve(HTTPRequest request) throws IOException
ResponseResolverresolve in interface ResponseResolverrequest - the request to resolve.IOException - if an IOException occurs e.g: java.net.ConnectException.protected HTTPResponse resolveProxy(HTTPRequest request, HTTPResponse response) throws IOException
IOExceptionprotected HTTPResponse resolveUnauthorized(HTTPRequest request, HTTPResponse response) throws IOException
IOExceptionprotected abstract HTTPResponse resolveImpl(HTTPRequest request) throws IOException
IOExceptionCopyright © 2008–2017. All rights reserved.