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

All Known Implementing Classes:
DefaultSocketManager

public interface SocketManager

Service to manager the socket factories.

Author:
Peter Donald

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

Field Detail

ROLE

public static final String ROLE
Method Detail

getServerSocketFactory

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

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

getSocketFactory

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

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


Copyright © Apache Software Foundation. All Rights Reserved.