AsyncChannel
, AsyncChannelOperations
, AsyncInvokerSupport
, Channel
, ChannelListenerSupport
, ConfigurationSupport
, ConnectionInvokerSupport
, EndpointSupport
, InputChannel
, InterceptorSupport
, LogMessageFilterSupport
, MessageReceiver
, MessageReceiverManagement
, OutputChannel
, Protocol
, ProtocolDescriptionSupport
, Receiver
, ReceiverManagement
, RequestChannel
CallbackProtocol
, EmailProtocol
, OptionalRegistrationChannel
public abstract class WebmediaChannel extends ClientChannel

.
protocol = new EmailProtocol(new Endpoint("emailServer", host, port));
PropertyConfiguration conf = new PropertyConfiguration();
conf.setBoolean(
WebmediaChannel.OPTION_NAME_REPLACE_ILLEGAL_UNICODE_CHARS,
true);
conf.setOption(
WebmediaChannel.OPTION_NAME_ILLEGAL_UNICODE_CHARS_REPLACEMENT,
"?");
protocol.configure(conf);
protocol.open();
-Dcom.genesyslab.platform.WebMedia.Email.replace-illegal-unicode-chars=true
-Dcom.genesyslab.platform.WebMedia.Email.illegal-unicode-chars-replacement=?
-Dcom.genesyslab.platform.WebMedia.BasicChat.replace-illegal-unicode-chars=true
-Dcom.genesyslab.platform.WebMedia.FlexChat.replace-illegal-unicode-chars=true
-Dcom.genesyslab.platform.WebMedia.Callback.replace-illegal-unicode-chars=true
...and so on...
These options affect all instances of particular protocol type, but are overridden
with explicit configuration code on particular protocol instance.
BasicChatProtocol
,
FlexChatProtocol
,
CallbackProtocol
,
EmailProtocol
AbstractChannel.AsyncErrorNotifier
ClientChannel.BasicClientHandshakeStep, ClientChannel.ClientHandshakeStep, ClientChannel.RegistrationHandler, ClientChannel.SimpleRegistrationHandler
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
OPTION_NAME_ILLEGAL_UNICODE_CHARS_REPLACEMENT |
|
static java.lang.String |
OPTION_NAME_REPLACE_ILLEGAL_UNICODE_CHARS |
|
static java.lang.String |
OPTION_NAME_TARGET_XML_VERSION |
DEFAULT_TIMEOUT, INFINITE_TIMEOUT
messageFilter
DEF_INPUT_SIZE
Constructor | Description |
---|---|
WebmediaChannel(Endpoint endpoint,
ProtocolFactory protocolFactory,
ReferenceBuilder refBuilder,
long timeout) |
|
WebmediaChannel(ProtocolFactory protocolFactory,
ReferenceBuilder refBuilder,
long timeout) |
Modifier and Type | Method | Description |
---|---|---|
void |
applyConfiguration() |
|
protected Connection |
createConnection(Endpoint endpoint) |
|
protected abstract com.genesyslab.platform.commons.connection.impl.xml.ProtocolDialect |
getDialect() |
|
protected java.lang.String |
lookupConnectionParameter(java.lang.String propName,
PsdkCustomization.PsdkOption psdkOption) |
addChannelListener, configure, connectionContext, copyTLSSettings, fireClosed, fireErrorEvent, fireErrorEvent, generateChannelId, getChannelId, getConfiguration, getDefaultInvoker, getEndpoint, getListenerHelper, getServerContext, getState, getStateMods, getTimeout, getTimer, internal, onSetEndpoint, releaseDefaultInvoker, removeChannelListener, setConfiguration, setInvoker, setServerContext, setState, setTimeout, throwNotClosed, throwNotOpened, throwNotOpenedOnClose, throwNotOpenedOnSend, throwNull, throwNullEndpoint
getState
setInvoker
close, getTimeout, open, setTimeout
addChannelListener, removeChannelListener
beginClose, beginOpen, beginRequest, close, close, closeAsync, closeAsync, disableConnectionOperations, doBeginRequest, doBeginRequest, doRequest, endRequest, endRequest, fireUnsolicitedEvents, getCopyResponse, getInvoker, getOpenTimeoutException, getReferenceBuilder, onOpen, onReceiveMessage, onSend, onUnexpectedHandshakeMessage, open, openAsync, openAsync, request, request, requestAsync, requestAsync, setAddressResolver, setAddressResolverParams, setAddressResolverParams, setCopyResponse, setEndpoint, setHandshakeFinished, setHandshakePhase, setHandshakeUnsolicitedEventsPassLimit, setRegistrationHandler, setState, submitRegMessage, throwOnUnReferenceableRequest
configure, getConfiguration
setConnectionInvoker
addListener, cancelCloseTimeout, cancelOpenTimeout, clearInput, close, closeAsync, createChannelClosedEvent, createConnectionClosedEvent, doBeginClose, doClose, doSend, downgradeConnection, getConnectionClosedCause, getDefaultRestriction, getEnpointPrefixInfo, getInputSize, getInterceptor, getLocalEndPoint, getLocalEndpointInfo, getLogMessageFilter, getProtocolDescription, getProtocolFactory, getProtocolId, getRemoteEndPoint, getTimeoutException, initPackager, isMessageAllowed, notifyWithObject, onClose, onFireClosed, onFireErrorEvent, onFireOpened, open, openAsync, openAsync, processClose, processCloseAll, receive, receive, receivedMessage, releaseReceivers, removeListener, resetReceiver, resumeReading, send, setConnectionInvoker, setExternalTransport, setInputSize, setLogMessageFilter, setMessageHandler, setProtocolData, setReceiver, startUpgradeConnection, stopReading, toString, triggerWithObject, upgradeConnection, waitForObject, wrapInProtocolException
getEndpoint
setMessageHandler
getInterceptor
receive, receive
setReceiver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, removeListener, send
getProtocolId
getProtocolDescription
clearInput, getInputSize, releaseReceivers, setInputSize
resetReceiver
public static final java.lang.String OPTION_NAME_TARGET_XML_VERSION
public static final java.lang.String OPTION_NAME_REPLACE_ILLEGAL_UNICODE_CHARS
public static final java.lang.String OPTION_NAME_ILLEGAL_UNICODE_CHARS_REPLACEMENT
public WebmediaChannel(ProtocolFactory protocolFactory, ReferenceBuilder refBuilder, long timeout)
public WebmediaChannel(Endpoint endpoint, ProtocolFactory protocolFactory, ReferenceBuilder refBuilder, long timeout)
protected Connection createConnection(Endpoint endpoint)
createConnection
in class DuplexChannel
protected abstract com.genesyslab.platform.commons.connection.impl.xml.ProtocolDialect getDialect()
public void applyConfiguration()
applyConfiguration
in class DuplexChannel
protected java.lang.String lookupConnectionParameter(java.lang.String propName, PsdkCustomization.PsdkOption psdkOption)
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.