|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A ManagedConnectionAcceptor waits for a connection request to
come in over the network, and constructs a ManagedConnection
object to handle it.
ManagedConnection,
Messenger| Method Summary | |
ManagedConnection |
accept()
Listens for a connection to be made to this acceptor and accepts it |
void |
accept(java.lang.String uri,
ConnectionHandler handler)
Register a connection handler to accept new Connection
instances |
void |
addAcceptorEventListener(AcceptorEventListener listener)
Add a listener for connection acceptor events |
void |
close()
Close the acceptor, freeing all associated resources |
void |
close(java.lang.String uri)
Stop accepting connections for the specified URI |
java.lang.String |
getURI()
Returns the URI that connections are being accepted on |
void |
removeAcceptorEventListener(AcceptorEventListener listener)
Remove a listener of connection acceptor events |
| Method Detail |
public java.lang.String getURI()
public void accept(java.lang.String uri,
ConnectionHandler handler)
throws java.net.MalformedURLException,
java.rmi.RemoteException
Connection
instances
uri - the URI that the handler accepts connections forhandler - the connection handler
java.net.MalformedURLException - if uri is an invalid URI
java.rmi.RemoteException - if the handler cannot be registered
java.lang.IllegalArgumentException - if any argument is null
public void close(java.lang.String uri)
throws java.net.MalformedURLException,
java.rmi.RemoteException
uri - the URI to close
java.net.MalformedURLException - if uri is an invalid URI
java.rmi.RemoteException - if an error occurs closing the connection
java.lang.IllegalArgumentException - if uri is null
public ManagedConnection accept()
throws java.rmi.RemoteException
java.rmi.RemoteException - if an error occurs when waiting for a
connection
public void close()
throws java.rmi.RemoteException
java.rmi.RemoteException - if an error occurspublic void addAcceptorEventListener(AcceptorEventListener listener)
listener - the listener to addpublic void removeAcceptorEventListener(AcceptorEventListener listener)
listener - the listener to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||