|
||||||||||
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
otherwisepublic Connection getConnection(java.security.Principal principal, URI uri) throws ResourceException
principal
- the security principal. May be null
uri
- the connection addressuri
ResourceException
- if a connection cannot be establishedpublic Connection getConnection(java.security.Principal principal, URI uri, java.util.Map properties) throws ResourceException
principal
- the security principal. May be null
uri
- the connection addressproperties
- connection properties. If null
, use the
default connection propertiesuri
ResourceException
- if a connection cannot be establishedpublic boolean canAccept(URI uri)
uri
- the connection addresstrue
if this factory supports the URI;
false
otherwisepublic void accept(URI uri) throws ResourceException
uri
- the connection addressResourceException
- if connections can't be accepted on the
specified URIpublic void accept(URI uri, java.util.Map properties) throws ResourceException
uri
- the connection addressproperties
- acceptor properties. May be null
ResourceException
- 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 |