public class DefaultSocketFactory extends Object implements SocketFactory
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
attributes
attributes
|
static String |
CONNECT_TIMEOUT
Field CONNECT_TIMEOUT
|
protected static org.apache.commons.logging.Log |
log
Field log
|
| Constructor and Description |
|---|
DefaultSocketFactory(Hashtable attributes)
Constructor is used only by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
create(String host,
int port,
StringBuffer otherHeaders,
BooleanHolder useFullURL)
Creates a socket.
|
protected boolean |
isHostInNonProxyList(String host,
String nonProxyHosts)
Check if the specified host is in the list of non proxy hosts.
|
protected static boolean |
match(String pattern,
String str,
boolean isCaseSensitive)
Matches a string against a pattern.
|
protected static org.apache.commons.logging.Log log
public static String CONNECT_TIMEOUT
protected Hashtable attributes
public DefaultSocketFactory(Hashtable attributes)
attributes - public Socket create(String host, int port, StringBuffer otherHeaders, BooleanHolder useFullURL) throws Exception
create in interface SocketFactoryhost - port - otherHeaders - useFullURL - Exceptionprotected boolean isHostInNonProxyList(String host, String nonProxyHosts)
host - host namenonProxyHosts - string containing the list of non proxy hostsprotected static boolean match(String pattern, 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 © The Apache Software Foundation. All Rights Reserved.