JBoss Remoting 3 3.2.0.Beta2-redhat-1

org.jboss.remoting3.spi
Interface ConnectionHandler

All Superinterfaces:
Closeable, HandleableCloseable<ConnectionHandler>

public interface ConnectionHandler
extends HandleableCloseable<ConnectionHandler>

A connection to a foreign endpoint. This interface is implemented by the protocol implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.remoting3.HandleableCloseable
HandleableCloseable.Key
 
Method Summary
 Collection<Principal> getPrincipals()
          Get the authenticated principals for this connection.
 org.xnio.Cancellable open(String serviceType, org.xnio.Result<Channel> result, org.xnio.OptionMap optionMap)
          Open a request handler.
 
Methods inherited from interface org.jboss.remoting3.HandleableCloseable
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsync
 

Method Detail

open

org.xnio.Cancellable open(String serviceType,
                          org.xnio.Result<Channel> result,
                          org.xnio.OptionMap optionMap)
Open a request handler.

Parameters:
serviceType - the service type string
result - the result for the connected channel
optionMap - the options for this service
Returns:
a handle which may be used to cancel the pending operation

getPrincipals

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

Returns:
the authenticated principals

JBoss Remoting 3 3.2.0.Beta2-redhat-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.