|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.net.connector.ConnectionContext
public final class ConnectionContext
ConnectionContext
enables connectors to associate a Connection
and ConnectionFactory
with th current thread, to enable
deserialized Proxy
instances to resolve a
Connection
back to the server.
Method Summary | |
---|---|
static Connection |
getConnection(URI uri)
Returns a connection using the principal and connection factory associated with the current thread. |
static ConnectionFactory |
getConnectionFactory()
Returns the connection factory for the current thread. |
static void |
pop()
Removes the last-pushed context for the current thread. |
static void |
push(java.security.Principal principal,
ConnectionFactory factory)
Adds the connection context for the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void push(java.security.Principal principal, ConnectionFactory factory)
principal
- the security principalfactory
- the connection factorypublic static void pop()
public static Connection getConnection(URI uri)
uri
- the URI
null
if a connection can't
be establishedpublic static ConnectionFactory getConnectionFactory()
null
if no factory is set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |