Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.remoting.transport.coyote.ssl
Class RemotingServerSocketFactory

    java.lang.Object
      org.apache.tomcat.util.net.ServerSocketFactory
          org.jboss.remoting.transport.coyote.ssl.RemotingServerSocketFactory

All Implemented Interfaces:
  java.lang.Cloneable

    public class RemotingServerSocketFactory

extends org.apache.tomcat.util.net.ServerSocketFactory

Author:
  Tom Elrod

Field Summary
`protected org.jboss.logging.Logger` | `log`

Fields inherited from class org.apache.tomcat.util.net.ServerSocketFactory
`attributes`

Constructor Summary
`RemotingServerSocketFactory()`
`RemotingServerSocketFactory(java.util.Map mbeanServerMap)`

Method Summary
`java.net.Socket` | `acceptSocket(java.net.ServerSocket socket)` Wrapper function for accept().
`java.net.ServerSocket` | `createSocket(int port)` Returns a server socket which uses all network interfaces on the host, and is bound to a the specified port.
`java.net.ServerSocket` | `createSocket(int port, int backlog)` Returns a server socket which uses all network interfaces on the host, is bound to a the specified port, and uses the specified connection backlog.
`java.net.ServerSocket` | `createSocket(int port, int backlog, java.net.InetAddress ifAddress)` Returns a server socket which uses only the specified network interface on the local host, is bound to a the specified port, and uses the specified connection backlog.
`void` | `handshake(java.net.Socket sock)` Extra function to initiate the handshake.
`static void` | `setServerSocketFactory(java.lang.String locatorURI, javax.net.ServerSocketFactory svrSocketFactory)`

Methods inherited from class org.apache.tomcat.util.net.ServerSocketFactory
`getDefault, initSocket, setAttribute`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### log

    protected final org.jboss.logging.Logger log

Constructor Detail

### RemotingServerSocketFactory

    public RemotingServerSocketFactory()

### RemotingServerSocketFactory

    public RemotingServerSocketFactory(java.util.Map mbeanServerMap)

Method Detail

### createSocket

    public java.net.ServerSocket createSocket(int port)
                                       throws java.io.IOException,
                                              java.lang.InstantiationException

  Returns a server socket which uses all network interfaces on the host, and is bound to a the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory.

  Specified by:
    `createSocket` in class `org.apache.tomcat.util.net.ServerSocketFactory`
  Parameters:
    `port` - the port to listen to
  Throws:
    `java.io.IOException` - for networking errors
    `java.lang.InstantiationException` - for construction errors

### createSocket

    public java.net.ServerSocket createSocket(int port,
                                              int backlog)
                                       throws java.io.IOException,
                                              java.lang.InstantiationException

  Returns a server socket which uses all network interfaces on the host, is bound to a the specified port, and uses the specified connection backlog. The socket is configured with the socket options (such as accept timeout) given to this factory.

  Specified by:
    `createSocket` in class `org.apache.tomcat.util.net.ServerSocketFactory`
  Parameters:
    `port` - the port to listen to
    `backlog` - how many connections are queued
  Throws:
    `java.io.IOException` - for networking errors
    `java.lang.InstantiationException` - for construction errors

### createSocket

    public java.net.ServerSocket createSocket(int port,
                                              int backlog,
                                              java.net.InetAddress ifAddress)
                                       throws java.io.IOException,
                                              java.lang.InstantiationException

  Returns a server socket which uses only the specified network interface on the local host, is bound to a the specified port, and uses the specified connection backlog. The socket is configured with the socket options (such as accept timeout) given to this factory.

  Specified by:
    `createSocket` in class `org.apache.tomcat.util.net.ServerSocketFactory`
  Parameters:
    `port` - the port to listen to
    `backlog` - how many connections are queued
    `ifAddress` - the network interface address to use
  Throws:
    `java.io.IOException` - for networking errors
    `java.lang.InstantiationException` - for construction errors

### acceptSocket

    public java.net.Socket acceptSocket(java.net.ServerSocket socket)
                                 throws java.io.IOException

  Wrapper function for accept(). This allows us to trap and translate exceptions if necessary

  Specified by:
    `acceptSocket` in class `org.apache.tomcat.util.net.ServerSocketFactory`
  Throws:
    `java.io.IOException;`
    `java.io.IOException`

### handshake

    public void handshake(java.net.Socket sock)
                   throws java.io.IOException

  Extra function to initiate the handshake. Sometimes necessary for SSL

  Specified by:
    `handshake` in class `org.apache.tomcat.util.net.ServerSocketFactory`
  Throws:
    `java.io.IOException;`
    `java.io.IOException`

### setServerSocketFactory

    public static void setServerSocketFactory(java.lang.String locatorURI,
                                              javax.net.ServerSocketFactory svrSocketFactory)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.