|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.HostConfiguration
eu.emi.client.security.CustomHostConfiguration
public class CustomHostConfiguration
Code from Apache Commons HTTPClient "contrib"
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).
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.httpclient.HostConfiguration |
|---|
ANY_HOST_CONFIGURATION |
| Constructor Summary | |
|---|---|
CustomHostConfiguration(HttpHostFactory factory)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
void |
setHost(String host)
|
void |
setHost(String host,
int port)
|
void |
setHost(String host,
int port,
String scheme)
|
| Methods inherited from class org.apache.commons.httpclient.HostConfiguration |
|---|
equals, getHost, getHostURL, getLocalAddress, getParams, getPort, getProtocol, getProxyHost, getProxyPort, getVirtualHost, hashCode, hostEquals, isHostSet, isProxySet, proxyEquals, setHost, setHost, setHost, setHost, setLocalAddress, setParams, setProxy, setProxyHost, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CustomHostConfiguration(HttpHostFactory factory)
| Method Detail |
|---|
public Object clone()
clone in class org.apache.commons.httpclient.HostConfigurationpublic void setHost(String host)
setHost in class org.apache.commons.httpclient.HostConfiguration
public void setHost(String host,
int port)
setHost in class org.apache.commons.httpclient.HostConfiguration
public void setHost(String host,
int port,
String scheme)
setHost in class org.apache.commons.httpclient.HostConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||