org.jboss.remoting.security
Class SSLServerSocketFactoryService

java.lang.Object
  extended byjavax.net.ServerSocketFactory
      extended byorg.jboss.remoting.security.SSLServerSocketFactoryService
All Implemented Interfaces:
ServerSocketFactoryMBean, SSLServerSocketFactoryServiceMBean

public class SSLServerSocketFactoryService
extends javax.net.ServerSocketFactory
implements SSLServerSocketFactoryServiceMBean

This is a basic wrapper around the SSLSocketBuilder which is needed because it extneds the javax.net.ServerSocketFactory class and implements the SSLServerSocketFactoryServiceMBean. It has no other function.

Author:
Tom Elrod

Constructor Summary
SSLServerSocketFactoryService()
           
 
Method Summary
 void create()
          create the service, do expensive operations etc
 java.net.ServerSocket createServerSocket()
          Returns an unbound server socket.
 java.net.ServerSocket createServerSocket(int i)
          Returns a server socket bound to the specified port.
 java.net.ServerSocket createServerSocket(int i, int i1)
          Returns a server socket bound to the specified port, and uses the specified connection backlog.
 java.net.ServerSocket createServerSocket(int i, int i1, java.net.InetAddress inetAddress)
          Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
 void destroy()
          destroy the service, tear down
 void setSSLSocketBuilder(SSLSocketBuilderMBean sslSocketBuilder)
           
 void start()
          start the service, create is already called
 void stop()
          stop the service
 
Methods inherited from class javax.net.ServerSocketFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLServerSocketFactoryService

public SSLServerSocketFactoryService()
Method Detail

setSSLSocketBuilder

public void setSSLSocketBuilder(SSLSocketBuilderMBean sslSocketBuilder)
Specified by:
setSSLSocketBuilder in interface SSLServerSocketFactoryServiceMBean

createServerSocket

public java.net.ServerSocket createServerSocket()
                                         throws java.io.IOException
Description copied from interface: ServerSocketFactoryMBean
Returns an unbound server socket. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in interface ServerSocketFactoryMBean
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int i)
                                         throws java.io.IOException
Description copied from interface: ServerSocketFactoryMBean
Returns a server socket bound to the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in interface ServerSocketFactoryMBean
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int i,
                                                int i1)
                                         throws java.io.IOException
Description copied from interface: ServerSocketFactoryMBean
Returns a server socket bound to 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:
createServerSocket in interface ServerSocketFactoryMBean
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int i,
                                                int i1,
                                                java.net.InetAddress inetAddress)
                                         throws java.io.IOException
Description copied from interface: ServerSocketFactoryMBean
Returns a server socket bound to the specified port, with a specified listen backlog and local IP. The bindAddr argument can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in interface ServerSocketFactoryMBean
Throws:
java.io.IOException

start

public void start()
           throws java.lang.Exception
start the service, create is already called

Specified by:
start in interface SSLServerSocketFactoryServiceMBean
Throws:
java.lang.Exception

create

public void create()
            throws java.lang.Exception
create the service, do expensive operations etc

Specified by:
create in interface SSLServerSocketFactoryServiceMBean
Throws:
java.lang.Exception

stop

public void stop()
stop the service

Specified by:
stop in interface SSLServerSocketFactoryServiceMBean

destroy

public void destroy()
destroy the service, tear down

Specified by:
destroy in interface SSLServerSocketFactoryServiceMBean


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