public class TcpEndpointContext extends MapBasedEndpointContext
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CONNECTION_ID
Key for TCP connection ID.
|
KEY_PREFIX_NONE_CRITICALID_TRUNC_LENGTH| Modifier | Constructor and Description |
|---|---|
protected |
TcpEndpointContext(InetSocketAddress peerAddress,
Principal peerIdentity,
String... attributes)
Creates a new endpoint context.
|
|
TcpEndpointContext(InetSocketAddress peerAddress,
String connectionId)
Creates a new endpoint context from TCP connection ID.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConnectionId() |
String |
toString() |
addEntries, entries, get, hasCriticalEntriesgetPeerAddress, getPeerAddressAsString, getPeerIdentity, getVirtualHostpublic static final String KEY_CONNECTION_ID
public TcpEndpointContext(InetSocketAddress peerAddress, String connectionId)
peerAddress - peer address of endpoint contextconnectionId - the connectionn's ID.NullPointerException - if connectionId or peer address is
null.protected TcpEndpointContext(InetSocketAddress peerAddress, Principal peerIdentity, String... attributes)
KEY_CONNECTION_ID attribute MUST be
included in the attributes list.peerAddress - peer address of endpoint contextpeerIdentity - peer identity of endpoint contextattributes - list of attributes (name-value pairs, e.g. key_1,
value_1, key_2, value_2 ...), the pair
KEY_CONNECTION_ID, "id" must be contained in the
attributes.public String getConnectionId()
public String toString()
toString in class MapBasedEndpointContextCopyright © 2019 Eclipse Foundation. All rights reserved.