|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionFactory
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 |
---|
boolean canConnect(URI uri)
uri
- the connection address
true
if this factory supports the URI;
false
otherwiseConnection getConnection(java.security.Principal principal, URI uri) throws ResourceException
principal
- the security principal. May be null
uri
- the connection address
uri
ResourceException
- if a connection cannot be establishedConnection 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 properties
uri
ResourceException
- if a connection cannot be establishedboolean canAccept(URI uri)
uri
- the connection address
true
if this factory supports the URI;
false
otherwisevoid accept(URI uri) throws ResourceException
uri
- the connection address
ResourceException
- if connections can't be accepted on the
specified URIvoid 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |