public class HttpHostFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static HttpHostFactory |
DEFAULT
The default factory.
|
protected Protocol |
httpProtocol |
protected Protocol |
httpsProtocol |
| Constructor and Description |
|---|
HttpHostFactory(Protocol httpProtocol,
Protocol httpsProtocol) |
| Modifier and Type | Method and Description |
|---|---|
HttpHost |
getHost(HostConfiguration old,
String scheme,
String host,
int port)
Get a host for the given parameters.
|
protected Protocol |
getProtocol(HostConfiguration old,
String scheme,
String host,
int port)
Get a Protocol for the given parameters.
|
public static final HttpHostFactory DEFAULT
protected final Protocol httpProtocol
protected final Protocol httpsProtocol
public HttpHost getHost(HostConfiguration old, String scheme, String host, int port)
protected Protocol getProtocol(HostConfiguration old, String scheme, String host, int port)
Copyright © 2012 Apache Software Foundation. All Rights Reserved.