org.apache.avalon.cornerstone.services.sockets
Interface SocketManager


public interface SocketManager

Service to manager the socket factories.

Author:
Peter Donald

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 ServerSocketFactory getServerSocketFactory(java.lang.String name)
          Retrieve a server socket factory by name.
 SocketFactory getSocketFactory(java.lang.String name)
          Retrieve a client socket factory by name.
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

getServerSocketFactory

ServerSocketFactory getServerSocketFactory(java.lang.String name)
                                           throws java.lang.Exception
Retrieve a server socket factory by name.

Parameters:
name - the name of server socket factory
Returns:
the ServerSocketFactory
Throws:
java.lang.Exception - if server socket factory is not available

getSocketFactory

SocketFactory getSocketFactory(java.lang.String name)
                               throws java.lang.Exception
Retrieve a client socket factory by name.

Parameters:
name - the name of client socket factory
Returns:
the SocketFactory
Throws:
java.lang.Exception - if socket factory is not available


Copyright © 2011 Apache Software Foundation. All Rights Reserved.