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.
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 stringresult
- the result for the connected channeloptionMap
- 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
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.