|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionContext<T extends ServerContext>
Context gather all the configuration of connection and protocol in one place. It contains ConnectionConfiguration which is simple data such as ADDP or client port binding. It also contains server contexts which configure registration of client at the server. And finally it contains complex configuration objects - attributes - the data can not be passed as simple strings or integers
Field Summary | |
---|---|
static java.lang.String |
PROTOCOL_NAME_KEY
|
static java.lang.String |
PROTOCOL_SDK_NAME_KEY
|
static java.lang.String |
SERVER_TYPE_KEY
|
static java.lang.String |
SSL_CONTEXT_KEY
Deprecated. Use Endpoint to provide SSLContext |
static java.lang.String |
SSL_OPTIONS_KEY
Deprecated. Use Endpoint to provide SSLExtendedOptions |
Method Summary | |
---|---|
ConnectionConfiguration |
configuration()
|
void |
configure(ConnectionConfiguration config)
|
java.lang.Object |
getAttribute(java.lang.String key)
Retrieves attribute with given key. |
T |
serverContext()
Returns server context or null if no context is needed for protocol. |
java.lang.Object |
setAttribute(java.lang.String key,
java.lang.Object attribute)
Adds or replaces attribute with given key. |
Field Detail |
---|
static final java.lang.String SERVER_TYPE_KEY
static final java.lang.String PROTOCOL_NAME_KEY
static final java.lang.String PROTOCOL_SDK_NAME_KEY
static final java.lang.String SSL_CONTEXT_KEY
SSLContext
,
Constant Field Valuesstatic final java.lang.String SSL_OPTIONS_KEY
SSLExtendedOptions
,
Constant Field ValuesMethod Detail |
---|
java.lang.Object setAttribute(java.lang.String key, java.lang.Object attribute)
key
- attribute keyattribute
- attribute value
java.lang.Object getAttribute(java.lang.String key)
key
- attribute key
T serverContext()
void configure(ConnectionConfiguration config)
ConnectionConfiguration configuration()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |