| java.lang.Object org.apache.commons.httpclient.HostConfiguration org.apache.commons.httpclient.contrib.ssl.HostConfigurationWithHostFactory
HostConfigurationWithHostFactory | class HostConfigurationWithHostFactory extends HostConfiguration (Code) | | A kind of HostConfiguration that gets its Host from a factory. This is useful
for integrating a specialized Protocol or SocketFactory; for example, a
SecureSocketFactory that authenticates via SSL. Use
HttpClient.setHostConfiguration to install a HostConfigurationWithHostFactory
that contains the specialized HostFactory, Protocol or SocketFactory.
An alternative is to use Protocol.registerProtocol to register a specialized
Protocol. But that has drawbacks: it makes it hard to integrate modules (e.g.
web applications in a servlet container) with different strategies, because
they share the specialized Protocol (Protocol.PROTOCOLS is static). And it
can't support different Protocols for different hosts or ports (since the
host and port aren't parameters to Protocol.getProtocol).
author: John Kristian |
|
|