|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connector
A Connector is a factory for Connection
and
ManagedConnectionAcceptor
objects, for a specific communications
protocol.
Connection
,
ConnectionAcceptor
,
Messenger
Method Summary | |
---|---|
Connection |
getConnection(java.lang.String uri,
ConnectionProperties properties)
Returns a connection for the specified URI and connection properties |
ManagedConnectionAcceptor |
getManagedConnectionAcceptor(java.lang.String uri,
ConnectionProperties properties)
Returns a connection acceptor for the specified URI and connection properties |
java.lang.String |
getScheme()
Returns the protocol that the connector supports |
Method Detail |
---|
Connection getConnection(java.lang.String uri, ConnectionProperties properties) throws java.net.MalformedURLException, java.rmi.RemoteException
uri
- the connection addressproperties
- connection properties (may be null)
null
java.net.MalformedURLException
- if uri
is an invalid URI
java.rmi.RemoteException
- if a connection cannot be established
java.lang.IllegalArgumentException
- if uri
is nullManagedConnectionAcceptor getManagedConnectionAcceptor(java.lang.String uri, ConnectionProperties properties) throws java.net.MalformedURLException, java.rmi.RemoteException
uri
- the address to accept connections onproperties
- connection properties (may be null)
java.net.MalformedURLException
- if uri
is an invalid URI
java.rmi.RemoteException
- if an I/O error occurs
java.lang.IllegalArgumentException
- if uri
is nulljava.lang.String getScheme()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |