Class AutoInitNioSSLTransport
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportSupport
org.apache.activemq.transport.TransportThreadSupport
org.apache.activemq.transport.tcp.TcpTransport
org.apache.activemq.transport.nio.NIOTransport
org.apache.activemq.transport.nio.NIOSSLTransport
org.apache.activemq.transport.nio.AutoInitNioSSLTransport
- All Implemented Interfaces:
Runnable,org.apache.activemq.Service,org.apache.activemq.transport.Transport
public class AutoInitNioSSLTransport
extends org.apache.activemq.transport.nio.NIOSSLTransport
This transport initializes the SSLEngine and reads the first command before
handing off to the detected transport.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.activemq.transport.tcp.TcpTransport
org.apache.activemq.transport.tcp.TcpTransport.InitBuffer -
Field Summary
Fields inherited from class org.apache.activemq.transport.nio.NIOSSLTransport
enabledCipherSuites, enabledProtocols, handshakeInProgress, handshakeStatus, initialized, needClientAuth, sslContext, sslEngine, sslSession, status, taskRunnerFactory, verifyHostName, wantClientAuthFields inherited from class org.apache.activemq.transport.nio.NIOTransport
channel, currentBuffer, inputBuffer, nextFrameSize, selectionFields inherited from class org.apache.activemq.transport.tcp.TcpTransport
buffOut, closeAsync, connectionTimeout, dataIn, dataOut, diffServChosen, dynamicManagement, initBuffer, ioBufferSize, jmxPort, localLocation, logWriterName, minmumWireFormatVersion, receiveCounter, remoteLocation, socket, socketBufferSize, socketFactory, socketOptions, soTimeout, startLogging, stoppedLatch, trace, trafficClass, typeOfServiceChosen, useLocalHost, wireFormat -
Constructor Summary
ConstructorsConstructorDescriptionAutoInitNioSSLTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket) AutoInitNioSSLTransport(org.apache.activemq.wireformat.WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddoStart()protected voiddoStop(org.apache.activemq.util.ServiceStopper stopper) byte[]protected voidprotected voidprocessCommand(ByteBuffer plain) voidvoidsetSslContext(SSLContext sslContext) Methods inherited from class org.apache.activemq.transport.nio.NIOSSLTransport
doConsume, doHandshake, doInit, finishHandshake, getEnabledCipherSuites, getEnabledProtocols, getPeerCertificates, isNeedClientAuth, isVerifyHostName, isWantClientAuth, secureRead, setEnabledCipherSuites, setEnabledProtocols, setNeedClientAuth, setVerifyHostName, setWantClientAuthMethods inherited from class org.apache.activemq.transport.nio.NIOTransport
readFromBufferMethods inherited from class org.apache.activemq.transport.tcp.TcpTransport
closeStreams, connect, doRun, getConnectionTimeout, getDiffServ, getIoBufferSize, getJmxPort, getKeepAlive, getLogWriterName, getMinmumWireFormatVersion, getReceiveCounter, getRemoteAddress, getSocketBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTypeOfService, getWireFormat, initialiseSocket, isCloseAsync, isDynamicManagement, isStartLogging, isTrace, isUseLocalHost, narrow, oneway, readCommand, resolveHostName, run, setCloseAsync, setConnectionTimeout, setDiffServ, setDynamicManagement, setIoBufferSize, setJmxPort, setKeepAlive, setLogWriterName, setMinmumWireFormatVersion, setPeerCertificates, setSocketBufferSize, setSocketOptions, setSoLinger, setSoTimeout, setStartLogging, setTcpNoDelay, setTrace, setTypeOfService, setUseLocalHost, stop, toStringMethods inherited from class org.apache.activemq.transport.TransportThreadSupport
getStackSize, isDaemon, setDaemon, setStackSizeMethods inherited from class org.apache.activemq.transport.TransportSupport
asyncRequest, checkStarted, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, onException, reconnect, request, request, setTransportListener, updateURIsMethods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.Service
startMethods inherited from interface org.apache.activemq.transport.Transport
asyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, reconnect, request, request, setTransportListener, updateURIs
-
Constructor Details
-
AutoInitNioSSLTransport
public AutoInitNioSSLTransport(org.apache.activemq.wireformat.WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException - Throws:
UnknownHostExceptionIOException
-
AutoInitNioSSLTransport
public AutoInitNioSSLTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket) throws IOException - Throws:
IOException
-
-
Method Details
-
setSslContext
- Overrides:
setSslContextin classorg.apache.activemq.transport.nio.NIOSSLTransport
-
getInputBuffer
-
initializeStreams
- Overrides:
initializeStreamsin classorg.apache.activemq.transport.nio.NIOSSLTransport- Throws:
IOException
-
doOpenWireInit
- Overrides:
doOpenWireInitin classorg.apache.activemq.transport.nio.NIOSSLTransport- Throws:
Exception
-
getSslSession
-
getReadData
public byte[] getReadData() -
getReadSize
-
serviceRead
public void serviceRead()- Overrides:
serviceReadin classorg.apache.activemq.transport.nio.NIOSSLTransport
-
processCommand
- Overrides:
processCommandin classorg.apache.activemq.transport.nio.NIOSSLTransport- Throws:
Exception
-
doStart
- Overrides:
doStartin classorg.apache.activemq.transport.nio.NIOSSLTransport- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.activemq.transport.nio.NIOSSLTransport- Throws:
Exception
-