JBoss Remoting 3 3.2.13.GA-redhat-1

org.jboss.remoting3
Interface Connection

All Superinterfaces:
Attachable, Closeable, HandleableCloseable<Connection>

public interface Connection
extends HandleableCloseable<Connection>, Attachable

A connection to a remote peer.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.remoting3.HandleableCloseable
HandleableCloseable.Key
 
Method Summary
 Endpoint getEndpoint()
          Get the local endpoint.
 Collection<Principal> getPrincipals()
          Get the authenticated principals for this connection.
 String getRemoteEndpointName()
          Get the name of the remote endpoint, if it has one.
 UserInfo getUserInfo()
          Get the UserInfo for this connection.
 org.xnio.IoFuture<Channel> openChannel(String serviceType, org.xnio.OptionMap optionMap)
          Open a channel to a remote service on this connection.
 
Methods inherited from interface org.jboss.remoting3.HandleableCloseable
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsync
 
Methods inherited from interface org.jboss.remoting3.Attachable
getAttachments
 

Method Detail

getPrincipals

Collection<Principal> getPrincipals()
Get the authenticated principals for this connection.

Returns:
the authenticated principals

getUserInfo

UserInfo getUserInfo()
Get the UserInfo for this connection.

Returns:
the authenticated UserInfo

openChannel

org.xnio.IoFuture<Channel> openChannel(String serviceType,
                                       org.xnio.OptionMap optionMap)
Open a channel to a remote service on this connection.

Parameters:
serviceType - the service type
optionMap - the option map
Returns:
the future channel

getRemoteEndpointName

String getRemoteEndpointName()
Get the name of the remote endpoint, if it has one.

Returns:
the remote endpoint name or null if it is anonymous

getEndpoint

Endpoint getEndpoint()
Get the local endpoint.

Returns:
the local endpoint

JBoss Remoting 3 3.2.13.GA-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.