public interface ConnectionHandler extends HandleableCloseable<ConnectionHandler>
HandleableCloseable.Key| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
getLocalAddress()
Get the local address, if any.
|
org.wildfly.security.auth.server.SecurityIdentity |
getLocalIdentity()
Get the local identity corresponding to the peer authentication which was performed on this connection, if it
is an incoming connection.
|
org.wildfly.security.auth.server.SecurityIdentity |
getLocalIdentity(int id)
Get the local identity associated with the given ID that was previously shared to the peer.
|
SocketAddress |
getPeerAddress()
Get the peer address, if any.
|
int |
getPeerIdentityId()
The the ID number for the peer identity which is currently associated with the calling thread.
|
String |
getRemoteEndpointName()
Get the name of the remote endpoint.
|
SSLSession |
getSslSession()
/**
Get the underlying
SSLSession for this connection if one is established. |
org.xnio.Cancellable |
open(String serviceType,
org.xnio.Result<Channel> result,
org.xnio.OptionMap optionMap)
Open a request handler.
|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsyncorg.xnio.Cancellable open(String serviceType, org.xnio.Result<Channel> result, org.xnio.OptionMap optionMap)
serviceType - the service type stringresult - the result for the connected channeloptionMap - the options for this serviceSSLSession getSslSession()
SSLSession for this connection if one is established.SSLSession for the connection if one is established, otherwise returns null.String getRemoteEndpointName()
SocketAddress getLocalAddress()
null if there is noneSocketAddress getPeerAddress()
null if there is noneorg.wildfly.security.auth.server.SecurityIdentity getLocalIdentity()
null for this property.null if the connection is not inboundorg.wildfly.security.auth.server.SecurityIdentity getLocalIdentity(int id)
id - the numeric IDnull if the the given ID is not validint getPeerIdentityId()
Copyright © 2016 JBoss, a division of Red Hat, Inc.. All rights reserved.