xsul.http_server.plain_impl
Class PlainServerSocketFactory

java.lang.Object
  extended byxsul.http_server.plain_impl.PlainServerSocketFactory
All Implemented Interfaces:
ServerSocketFactory

public class PlainServerSocketFactory
extends java.lang.Object
implements ServerSocketFactory

Factory that uses vanilla sockets provided by Java Net API.

Version:
$Revision: 1.7 $
Author:
Aleksander Slominski

Field Summary
static java.lang.String HTTP_TRANSPORT_SERVER_HOST_IP_PROPERTY
           
static java.lang.String HTTP_TRANSPORT_SERVER_RANGE_PROPERTY
           
 
Method Summary
 java.net.Socket accept()
          Accept new socket that can be used to read SOAP/HTTP request.
 java.net.Socket accept(java.util.Map connectionProps)
           
static java.net.InetAddress getMyIp()
           
static TcpPortRange getPortRange()
           
 java.lang.String getServerLocation()
           
 int getServerPort()
           
static ServerSocketFactory newInstance(int serverPort)
           
static void setPortRange(TcpPortRange portRange)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_TRANSPORT_SERVER_HOST_IP_PROPERTY

public static final java.lang.String HTTP_TRANSPORT_SERVER_HOST_IP_PROPERTY
See Also:
Constant Field Values

HTTP_TRANSPORT_SERVER_RANGE_PROPERTY

public static final java.lang.String HTTP_TRANSPORT_SERVER_RANGE_PROPERTY
See Also:
Constant Field Values
Method Detail

newInstance

public static ServerSocketFactory newInstance(int serverPort)
                                       throws HttpServerException
Throws:
HttpServerException

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface ServerSocketFactory

getMyIp

public static java.net.InetAddress getMyIp()
                                    throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getServerLocation

public java.lang.String getServerLocation()
                                   throws HttpServerException
Specified by:
getServerLocation in interface ServerSocketFactory
Throws:
HttpServerException

accept

public java.net.Socket accept()
                       throws java.io.IOException
Description copied from interface: ServerSocketFactory
Accept new socket that can be used to read SOAP/HTTP request.

Specified by:
accept in interface ServerSocketFactory
Throws:
java.io.IOException

accept

public java.net.Socket accept(java.util.Map connectionProps)
                       throws java.io.IOException
Specified by:
accept in interface ServerSocketFactory
Throws:
java.io.IOException

shutdown

public void shutdown()
              throws java.io.IOException,
                     HttpServerException
Specified by:
shutdown in interface ServerSocketFactory
Throws:
java.io.IOException
HttpServerException

setPortRange

public static void setPortRange(TcpPortRange portRange)

getPortRange

public static TcpPortRange getPortRange()


IU Extreme! Lab (http://www.extreme.indiana.edu)