public interface Connection extends HandleableCloseable<Connection>, Attachable
HandleableCloseable.Key
Modifier and Type | Method and Description |
---|---|
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.
|
IoFuture<Channel> |
openChannel(String serviceType,
OptionMap optionMap)
Open a channel to a remote service on this connection.
|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsync
getAttachments
Collection<Principal> getPrincipals()
UserInfo getUserInfo()
IoFuture<Channel> openChannel(String serviceType, OptionMap optionMap)
serviceType
- the service typeoptionMap
- the option mapString getRemoteEndpointName()
null
if it is anonymousEndpoint getEndpoint()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.