站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

DefaultSocketFactory (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.components.net
Class DefaultSocketFactory

java.lang.Object
  extended byorg.apache.axis.components.net.DefaultSocketFactory
All Implemented Interfaces:
SocketFactory
Direct Known Subclasses:
JSSESocketFactory

public class DefaultSocketFactory
extends Object
implements SocketFactory

Default socket factory.

Author:
Davanum Srinivas (dims@yahoo.com)

Field Summary
protected  Hashtable attributes
          attributes
 
Constructor Summary
DefaultSocketFactory(Hashtable attributes)
          Constructor is used only by subclasses.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

protected Hashtable attributes
attributes

Constructor Detail

DefaultSocketFactory

public DefaultSocketFactory(Hashtable attributes)
Constructor is used only by subclasses.

Parameters:
attributes -
Method Detail

create

public Socket create(String host,
                     int port,
                     StringBuffer otherHeaders,
                     BooleanHolder useFullURL)
              throws Exception
Creates a socket.

Specified by:
create in interface SocketFactory
Parameters:
host -
port -
otherHeaders -
useFullURL -
Returns:
Socket
Throws:
Exception

isHostInNonProxyList

protected boolean isHostInNonProxyList(String host,
                                       String nonProxyHosts)
Check if the specified host is in the list of non proxy hosts.

Parameters:
host - host name
nonProxyHosts - string containing the list of non proxy hosts
Returns:
true/false

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,

Parameters:
pattern - the (non-null) pattern to match against
str - the (non-null) string that must be matched against the pattern
isCaseSensitive -
Returns:
true when the string matches against the pattern, false otherwise.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.