public interface EndpointContext
| Candidate | Description | Long-Term-Stable |
|---|---|---|
| InetSocketAddress | identity for plain coap according RFC7252 | With IPv4 and NATs too frequently not long-term-stable |
| Principal | identity for secure endpoint, requires unique credentials per client | As stable as the credentials |
| DTLS Session, cipher suite, epoch | identity for secure coaps according RFC7252 | With new or resumed DTLS session not long-term-stable |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
entries()
Gets a Set of a Map.Entry which contains the key-value pair of the
CorrelationContext.
|
String |
get(String key)
Gets a value from this context.
|
InetSocketAddress |
getPeerAddress()
Gets the inet address of the peer that the message is for or from.
|
Principal |
getPeerIdentity()
Gets the identity of the peer that the message is for or from.
|
String |
getVirtualHost()
Gets the name of the virtual host that this endpoint
is scoped to.
|
boolean |
hasCriticalEntries()
Check, if the correlation information contained, contains critical
entries relevant for matching.
|
String get(String key)
key - the key to retrieve the value for.null if this context does not contain a
value for the given key.Map<String,String> entries()
boolean hasCriticalEntries()
true, if critical entries contained, and no new
connection could match the correlation context provided in this
instance. false, if a new connection may match this
correlation context.Principal getPeerIdentity()
null, if not available.InetSocketAddress getPeerAddress()
String getVirtualHost()
null if no virtual host is set.Copyright © 2019 Eclipse Foundation. All rights reserved.