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.
|
SSLSession |
getSslSession()
Get the underlying
SSLSession for this connection if one is established. |
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()
SSLSession getSslSession()
SSLSession
for this connection if one is established.SSLSession
for the connection if one is established, otherwise returns null
.IoFuture<Channel> openChannel(String serviceType, OptionMap optionMap)
serviceType
- the service typeoptionMap
- the option mapString getRemoteEndpointName()
null
if it is anonymousEndpoint getEndpoint()
Copyright © 2016 JBoss by Red Hat. All rights reserved.