public class DefaultSocketFactory extends java.lang.Object implements SocketFactory
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable |
attributes
attributes
|
static java.lang.String |
CONNECT_TIMEOUT
Field CONNECT_TIMEOUT
|
protected static org.apache.commons.logging.Log |
log
Field log
|
| Constructor and Description |
|---|
DefaultSocketFactory(java.util.Hashtable attributes)
Constructor is used only by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
create(java.lang.String host,
int port,
java.lang.StringBuffer otherHeaders,
BooleanHolder useFullURL)
Creates a socket.
|
protected boolean |
isHostInNonProxyList(java.lang.String host,
java.lang.String nonProxyHosts)
Check if the specified host is in the list of non proxy hosts.
|
protected static boolean |
match(java.lang.String pattern,
java.lang.String str,
boolean isCaseSensitive)
Matches a string against a pattern.
|
protected static org.apache.commons.logging.Log log
public static java.lang.String CONNECT_TIMEOUT
protected java.util.Hashtable attributes
public DefaultSocketFactory(java.util.Hashtable attributes)
attributes - public java.net.Socket create(java.lang.String host,
int port,
java.lang.StringBuffer otherHeaders,
BooleanHolder useFullURL)
throws java.lang.Exception
create in interface SocketFactoryhost - port - otherHeaders - useFullURL - java.lang.Exceptionprotected boolean isHostInNonProxyList(java.lang.String host,
java.lang.String nonProxyHosts)
host - host namenonProxyHosts - string containing the list of non proxy hostsprotected static boolean match(java.lang.String pattern,
java.lang.String str,
boolean isCaseSensitive)
pattern - the (non-null) pattern to match againststr - the (non-null) string that must be matched against the
patternisCaseSensitive - true when the string matches against the pattern,
false otherwise.Copyright ? 2005 Apache Web Services Project. All Rights Reserved.