|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A ManagedConnection represents a physical connection.
It
is responsible for managing multiple Connection instances, which
perform method invocations over the physical connection.
Connection| Method Summary | |
void |
destroy()
Destroys the physical connection. |
Connection |
getConnection()
Creates a new connection handle for the underlying physical connection. |
URI |
getLocalURI()
Returns the local address that this connection is bound to. |
java.security.Principal |
getPrincipal()
Returns the principal associated with this connection. |
URI |
getRemoteURI()
Returns the remote address to which this is connected. |
void |
ping()
Ping the connection. |
void |
setConnectionEventListener(ManagedConnectionListener listener)
Registers a connection event listener. |
void |
setInvocationHandler(InvocationHandler handler)
Registers a handler for handling invocations on objects exported via this connection. |
| Method Detail |
public void setInvocationHandler(InvocationHandler handler)
throws ResourceException
handler - the invocation handlerIllegalStateException - if a handler is already registeredResourceException - for any error
public void setConnectionEventListener(ManagedConnectionListener listener)
throws ResourceException
listener - the connection event listenerResourceException - for any error
public Connection getConnection()
throws ResourceException
IllegalStateException - if an InvocationHandler hasn't
been registeredResourceException - for any error
public void ping()
throws ResourceException
IllegalStateException - if no invocation handler has been
registered, or if the connection has been
destroyedResourceException - for any error
public URI getRemoteURI()
throws ResourceException
ResourceException - for any error
public URI getLocalURI()
throws ResourceException
ResourceException - for any error
public java.security.Principal getPrincipal()
throws ResourceException
null if none is set- Throws:
ResourceException - for any error
public void destroy()
throws ResourceException
ResourceException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||