|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.net.connector.AbstractManagedConnection
org.exolab.jms.net.multiplexer.MultiplexedManagedConnection
org.exolab.jms.net.socket.SocketManagedConnection
public abstract class SocketManagedConnection
SocketManagedConnection
manages multiple Connection
instances over a single socket.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
_log
The logger. |
Constructor Summary | |
---|---|
SocketManagedConnection(java.security.Principal principal,
SocketRequestInfo info)
Construct a new client SocketManagedConnection . |
|
SocketManagedConnection(URI uri,
java.net.Socket socket,
Authenticator authenticator)
Construct a new server SocketManagedConnection . |
Method Summary | |
---|---|
protected Endpoint |
createEndpoint()
Returns the endpoint to multiplex data over. |
protected java.net.Socket |
createSocket(SocketRequestInfo info)
Creates a new socket. |
protected java.net.Socket |
createSocket(java.lang.String host,
int port)
Creates a new socket. |
URI |
getAlternativeURI()
The alternative URI that the remote address is known as. |
URI |
getLocalURI()
Returns the local address that this connection is bound to. |
URI |
getRemoteURI()
Returns the remote address to which this is connected. |
protected void |
init(URI uri,
java.net.Socket socket)
Initialises this connection. |
Methods inherited from class org.exolab.jms.net.multiplexer.MultiplexedManagedConnection |
---|
closed, createMultiplexer, createMultiplexer, destroy, error, getCaller, getConnection, getDisplayName, getPrincipal, getThreadGroup, hasPrincipal, invoke, isClient, ping, pinged, request, setInvocationHandler |
Methods inherited from class org.exolab.jms.net.connector.AbstractManagedConnection |
---|
getConnectionEventListener, notifyClosed, notifyError, setConnectionEventListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log _log
Constructor Detail |
---|
public SocketManagedConnection(java.security.Principal principal, SocketRequestInfo info) throws ResourceException
SocketManagedConnection
.
principal
- the security principalinfo
- the connection request info
ResourceException
- if a socket cannot be createdpublic SocketManagedConnection(URI uri, java.net.Socket socket, Authenticator authenticator) throws ResourceException
SocketManagedConnection
.
uri
- the URI the acceptor was listening onsocket
- the socketauthenticator
- the connection authenticator
ResourceException
- if an error occurs accessing the socketMethod Detail |
---|
public URI getRemoteURI()
public URI getLocalURI()
public URI getAlternativeURI()
null
.protected java.net.Socket createSocket(SocketRequestInfo info) throws ResourceException
info
- the connection request info
ResourceException
- if a socket can't be createdprotected java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
host
- the host to connect toport
- the port to connect to
java.io.IOException
- for any I/O error
java.lang.SecurityException
- if permission is deniedprotected Endpoint createEndpoint() throws java.io.IOException
createEndpoint
in class MultiplexedManagedConnection
java.io.IOException
- for any I/O errorprotected void init(URI uri, java.net.Socket socket) throws ResourceException
uri
- the URI representing this connectionsocket
- the socket
ResourceException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |