org.apache.axis.components.net
Class DefaultSocketFactory
java.lang.Object
org.apache.axis.components.net.DefaultSocketFactory
- SocketFactory
public class DefaultSocketFactory
extends java.lang.Object
Default socket factory.
- Davanum Srinivas (dims@yahoo.com)
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.
|
CONNECT_TIMEOUT
public static String CONNECT_TIMEOUT
Field CONNECT_TIMEOUT
attributes
protected Hashtable attributes
attributes
log
protected static Log log
Field log
DefaultSocketFactory
public DefaultSocketFactory(Hashtable attributes)
Constructor is used only by subclasses.
create
public Socket create(String host,
int port,
StringBuffer otherHeaders,
BooleanHolder useFullURL)
throws Exception
Creates a socket.
- create in interface SocketFactory
host
- port
- otherHeaders
- useFullURL
-
isHostInNonProxyList
protected boolean isHostInNonProxyList(String host,
String nonProxyHosts)
Check if the specified host is in the list of non proxy hosts.
host
- host namenonProxyHosts
- string containing the list of non proxy hosts
match
protected static boolean match(String pattern,
String str,
boolean isCaseSensitive)
Matches a string against a pattern. The pattern contains two special
characters:
'*' which means zero or more characters,
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 B) 2005 Apache Web Services Project. All Rights Reserved.