Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.connection.configuration
Interface ConnectionContext<T extends ServerContext>


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

SERVER_TYPE_KEY

static final java.lang.String SERVER_TYPE_KEY
See Also:
Constant Field Values

PROTOCOL_NAME_KEY

static final java.lang.String PROTOCOL_NAME_KEY
See Also:
Constant Field Values

PROTOCOL_SDK_NAME_KEY

static final java.lang.String PROTOCOL_SDK_NAME_KEY
See Also:
Constant Field Values

SSL_CONTEXT_KEY

static final java.lang.String SSL_CONTEXT_KEY
Deprecated. Use Endpoint to provide SSLContext
Key for passing SSLContext to connection implementation. Note that availability of SSLContext is not automatically means that SSL will be used. Some connection implementation don't support SSL at all and some can rely on configuration to use TLS (see Connection.TLS_KEY). But any implementation that support TLS should use this context to configure TLS parameters. Also there is a case of auto-detect (StartTLS) where connection is not secured from the start but later on.

See Also:
SSLContext, Constant Field Values

SSL_OPTIONS_KEY

static final java.lang.String SSL_OPTIONS_KEY
Deprecated. Use Endpoint to provide SSLExtendedOptions
When PSDK will be dropping support of Java 1.5, it will be possible to configure all options in SSLContext via SSLParameters and reduce explicit configuration of SSLEngine. This key will become deprecated then.

See Also:
SSLExtendedOptions, Constant Field Values
Method Detail

setAttribute

java.lang.Object setAttribute(java.lang.String key,
                              java.lang.Object attribute)
Adds or replaces attribute with given key. Returns old value of attribute or null if attribute does not exist.

Parameters:
key - attribute key
attribute - attribute value
Returns:
old value or null

getAttribute

java.lang.Object getAttribute(java.lang.String key)
Retrieves attribute with given key.

Parameters:
key - attribute key
Returns:
attribute value or null

serverContext

T serverContext()
Returns server context or null if no context is needed for protocol.

Returns:
Server context or null

configure

void configure(ConnectionConfiguration config)

configuration

ConnectionConfiguration configuration()

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.