Package org.apache.axis.components.net
Class DefaultSocketFactory
java.lang.Object
org.apache.axis.components.net.DefaultSocketFactory
- All Implemented Interfaces:
SocketFactory
- Direct Known Subclasses:
JSSESocketFactory
Default socket factory.
- Author:
- Davanum Srinivas (dims@yahoo.com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocketFactory
(Hashtable attributes) Constructor is used only by subclasses. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(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
Matches a string against a pattern.
-
Field Details
-
log
protected static org.apache.commons.logging.Log logField log -
CONNECT_TIMEOUT
Field CONNECT_TIMEOUT -
attributes
attributes
-
-
Constructor Details
-
DefaultSocketFactory
Constructor is used only by subclasses.- Parameters:
attributes
-
-
-
Method Details
-
create
public Socket create(String host, int port, StringBuffer otherHeaders, BooleanHolder useFullURL) throws Exception Creates a socket.- Specified by:
create
in interfaceSocketFactory
- Parameters:
host
-port
-otherHeaders
-useFullURL
-- Returns:
- Socket
- Throws:
Exception
-
isHostInNonProxyList
Check if the specified host is in the list of non proxy hosts.- Parameters:
host
- host namenonProxyHosts
- string containing the list of non proxy hosts- Returns:
- true/false
-
match
Matches a string against a pattern. The pattern contains two special characters: '*' which means zero or more characters,- Parameters:
pattern
- the (non-null) pattern to match againststr
- the (non-null) string that must be matched against the patternisCaseSensitive
-- Returns:
true
when the string matches against the pattern,false
otherwise.
-