|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A factory for establishing connections, and accepting them.
| Method Summary | |
void |
accept(URI uri)
Listen for new connections on the specified URI, using the default connection acceptor properties. |
void |
accept(URI uri,
java.util.Map properties)
Listen for new connections on the specified URI, using the specified acceptor properties |
boolean |
canAccept(URI uri)
Determines if this factory supports listening for new connections on the specified URI. |
boolean |
canConnect(URI uri)
Determines if this factory supports connections to the specified URI. |
Connection |
getConnection(java.security.Principal principal,
URI uri)
Returns a connection to the specified URI, using the default connection properties. |
Connection |
getConnection(java.security.Principal principal,
URI uri,
java.util.Map properties)
Returns a connection to the specified URI, using the specified connection properties. |
| Method Detail |
public boolean canConnect(URI uri)
uri - the connection addresstrue if this factory supports the URI;
false otherwise
public Connection getConnection(java.security.Principal principal,
URI uri)
throws ResourceException
principal - the security principal. May be nulluri - the connection addressuriResourceException - if a connection cannot be established
public Connection getConnection(java.security.Principal principal,
URI uri,
java.util.Map properties)
throws ResourceException
principal - the security principal. May be nulluri - the connection addressproperties - connection properties. If null, use the
default connection propertiesuriResourceException - if a connection cannot be establishedpublic boolean canAccept(URI uri)
uri - the connection addresstrue if this factory supports the URI;
false otherwise
public void accept(URI uri)
throws ResourceException
uri - the connection addressResourceException - if connections can't be accepted on the
specified URI
public void accept(URI uri,
java.util.Map properties)
throws ResourceException
uri - the connection addressproperties - acceptor properties. May be nullResourceException - if connections can't be accepted on the
specified URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||