public class SslConnectionFactory extends AbstractConnectionFactory implements ConnectionFactory.Detecting
AbstractLifeCycle.AbstractLifeCycleListenerConnectionFactory.Detecting.DetectionConnectionFactory.Detecting, ConnectionFactory.UpgradingContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
SslConnectionFactory() |
SslConnectionFactory(SslContextFactory factory,
String nextProtocol) |
SslConnectionFactory(String nextProtocol) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionFactory.Detecting.Detection |
detect(ByteBuffer buffer)
Check the bytes in the given
buffer to figure out if this ConnectionFactory.Detecting instance
can work with them or not. |
String |
getNextProtocol() |
SslContextFactory |
getSslContextFactory() |
boolean |
isDirectBuffersForDecryption() |
boolean |
isDirectBuffersForEncryption() |
Connection |
newConnection(Connector connector,
EndPoint endPoint)
Creates a new
Connection with the given parameters |
void |
setDirectBuffersForDecryption(boolean useDirectBuffers) |
void |
setDirectBuffersForEncryption(boolean useDirectBuffers) |
String |
toString() |
getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSizeaddBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProtocol, getProtocolsdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedpublic SslContextFactory getSslContextFactory()
public void setDirectBuffersForEncryption(boolean useDirectBuffers)
public void setDirectBuffersForDecryption(boolean useDirectBuffers)
public boolean isDirectBuffersForDecryption()
public boolean isDirectBuffersForEncryption()
public String getNextProtocol()
public ConnectionFactory.Detecting.Detection detect(ByteBuffer buffer)
ConnectionFactory.DetectingCheck the bytes in the given buffer to figure out if this ConnectionFactory.Detecting instance
can work with them or not.
The buffer MUST be left untouched by this method: bytes MUST NOT be consumed and MUST NOT be modified.
detect in interface ConnectionFactory.Detectingbuffer - the buffer.ConnectionFactory.Detecting.Detection.RECOGNIZED if this ConnectionFactory.Detecting instance can work with the bytes in the bufferConnectionFactory.Detecting.Detection.NOT_RECOGNIZED if this ConnectionFactory.Detecting instance cannot work with the bytes in the bufferConnectionFactory.Detecting.Detection.NEED_MORE_BYTES if this ConnectionFactory.Detecting instance requires more bytes to make a decisionpublic Connection newConnection(Connector connector, EndPoint endPoint)
ConnectionFactoryCreates a new Connection with the given parameters
newConnection in interface ConnectionFactoryconnector - The Connector creating this connectionendPoint - the EndPoint associated with the connectionConnectionpublic String toString()
toString in class AbstractConnectionFactoryCopyright © 2010 - 2020 Adobe. All Rights Reserved