public final class ServerConnectionManager extends Object
A ServerConnectionManager is created by a
 connection-based ServerEndpoint implemention to manage
 connections.  The handleConnection method
 is used to manage connections for a particular ServerConnection.
 
Each session of the Jini ERI multiplexing protocol is mapped to a new request. Request data is read as the data received for the session, and response data is written as the data sent for the session.
| Constructor and Description | 
|---|
ServerConnectionManager()
Creates a new  
ServerConnectionManager. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
handleConnection(ServerConnection conn,
                RequestDispatcher dispatcher)
Starts handling requests received on the specified newly
 accepted connection, dispatching them to the specified request
 dispatcher asynchronously, and returns immediately. 
 | 
public ServerConnectionManager()
ServerConnectionManager.public void handleConnection(ServerConnection conn, RequestDispatcher dispatcher)
The Jini ERI multiplexing protocol is started on the
 connection (as the server).  As each request is received, the
 processRequestData
 method of the connection will be invoked with the request input
 stream and the response output stream of the InboundRequest created for the request, to obtain a handle for
 the request.  The checkPermissions method of the connection is then invoked with
 that handle, and if it returns normally,
 dispatcher is invoked with the
 InboundRequest.  All of this processing is
 performed using the same security context in force when this
 handleConnection method was invoked.  The checkPermissions, checkConstraints, and populateContext methods of each
 InboundRequest created are implemented by
 delegating to the corresponding method of the connection
 passing the handle for the request and the other arguments (if
 any).
 
The implementation may close the connection if it determines
 that the client has closed its side of the connection, if there
 is an unrecoverable problem with the connection, or for other
 implementation-specific reasons.  The caller is responsible for
 closing the connection when the close method
 of the associated ListenHandle is
 invoked.
conn - the server connectiondispatcher - the request dispatcher to use to dispatch
 requests received on the specified connectionNullPointerException - if conn or
 dispatcher is null