com.oaklandsw.http
Class AbstractSocketFactory

java.lang.Object
  extended bycom.oaklandsw.http.AbstractSocketFactory

public class AbstractSocketFactory
extends java.lang.Object

Creates the Socket to be used by the HTTP connection.


Constructor Summary
AbstractSocketFactory()
           
 
Method Summary
 java.net.Socket createSocket(HttpURLConnection urlCon, java.lang.String host, int port)
          Creates a socket to be used by an HTTP connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSocketFactory

public AbstractSocketFactory()
Method Detail

createSocket

public java.net.Socket createSocket(HttpURLConnection urlCon,
                                    java.lang.String host,
                                    int port)
Creates a socket to be used by an HTTP connection. The default implementation returns a standard socket. This can be overridden as required for things like a SOCKS connection. Don't include the host/port on the constructor for the socket, as a connect() call is always issued after the socket is created. These are provided only for information.

Parameters:
urlCon - the HttpURLConnection that is using this socket
host - the hostname of the socket
port - the port number of the socket
Returns:


Copyright © 2002-2007 Oakland Software Incorporated. All Rights Reserved.