Class AutoNIOSSLTransportServer
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportServerSupport
org.apache.activemq.transport.TransportServerThreadSupport
org.apache.activemq.transport.tcp.TcpTransportServer
org.apache.activemq.transport.auto.AutoTcpTransportServer
org.apache.activemq.transport.auto.nio.AutoNIOSSLTransportServer
- All Implemented Interfaces:
Runnable,org.apache.activemq.Service,org.apache.activemq.transport.TransportServer,org.apache.activemq.util.ServiceListener
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.activemq.transport.auto.AutoTcpTransportServer
AutoTcpTransportServer.ProtocolInfoNested classes/interfaces inherited from class org.apache.activemq.transport.tcp.TcpTransportServer
org.apache.activemq.transport.tcp.TcpTransportServer.TransportInfo -
Field Summary
Fields inherited from class org.apache.activemq.transport.auto.AutoTcpTransportServer
autoTransportOptions, brokerService, enabledProtocols, maxConnectionThreadPoolSize, newConnectionExecutor, protocolDetectionExecutor, protocolDetectionTimeOut, protocolVerifiers, wireFormatOptionsFields inherited from class org.apache.activemq.transport.tcp.TcpTransportServer
allowLinkStealing, backlog, connectionTimeout, currentTransportCount, dynamicManagement, jmxPort, logWriterName, maximumConnections, maximumConnectionsExceededCount, maxInactivityDuration, maxInactivityDurationInitalDelay, minmumWireFormatVersion, selector, serverSocket, serverSocketFactory, socketBufferSize, socketHandlerThread, socketQueue, soTimeout, startLogging, trace, transportFactory, useQueueForAccept, verifyHostName, wireFormatFactoryFields inherited from class org.apache.activemq.transport.TransportServerSupport
transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionAutoNIOSSLTransportServer(SSLContext context, org.apache.activemq.transport.tcp.TcpTransportFactory transportFactory, URI location, ServerSocketFactory serverSocketFactory, BrokerService brokerService, Set<String> enabledProtocols) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.activemq.transport.tcp.TcpTransportServer.TransportInfoconfigureTransport(org.apache.activemq.transport.tcp.TcpTransportServer server, Socket socket) protected org.apache.activemq.transport.tcp.TcpTransportcreateTransport(Socket socket, org.apache.activemq.wireformat.WireFormat format) protected org.apache.activemq.transport.TransportcreateTransport(Socket socket, org.apache.activemq.wireformat.WireFormat format, SSLEngine engine, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer, org.apache.activemq.transport.tcp.TcpTransportFactory detectedFactory) booleanbooleanbooleanvoidsetNeedClientAuth(boolean value) voidsetWantClientAuth(boolean value) Methods inherited from class org.apache.activemq.transport.auto.AutoTcpTransportServer
append, createTransport, detectProtocol, doStop, findTransportFactory, findWireFormatFactory, getMaxConnectionThreadPoolSize, handleSocket, initOpenWireProtocolVerifier, initProtocolVerifiers, isAllProtocols, setAutoTransportOptions, setEnabledProtocols, setMaxConnectionThreadPoolSize, setProtocolDetectionTimeOut, setWireFormatFactory, setWireFormatOptions, waitForProtocolDetectionFinishMethods inherited from class org.apache.activemq.transport.tcp.TcpTransportServer
bind, doHandleSocket, doStart, getBacklog, getConnectionTimeout, getCurrentTransportCount, getJmxPort, getLogWriterName, getMaxConnectionExceededCount, getMaximumConnections, getMaxInactivityDuration, getMaxInactivityDurationInitalDelay, getMinmumWireFormatVersion, getSocketAddress, getSocketBufferSize, getSoTimeout, getWireFormatFactory, isAllowLinkStealing, isDynamicManagement, isStartLogging, isTrace, isUseQueueForAccept, resetStatistics, resolveHostName, run, setAllowLinkStealing, setBacklog, setBrokerInfo, setConnectionTimeout, setDynamicManagement, setJmxPort, setLogWriterName, setMaximumConnections, setMaxInactivityDuration, setMaxInactivityDurationInitalDelay, setMinmumWireFormatVersion, setSocketBufferSize, setSoTimeout, setStartLogging, setTrace, setUseQueueForAccept, started, stopped, toStringMethods inherited from class org.apache.activemq.transport.TransportServerThreadSupport
getStackSize, isDaemon, isJoinOnStop, setDaemon, setJoinOnStop, setStackSizeMethods inherited from class org.apache.activemq.transport.TransportServerSupport
getAcceptListener, getBindLocation, getConnectURI, onAcceptError, setAcceptListener, setBindLocation, setConnectURI, setTransportOptionMethods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.Service
start, stop
-
Constructor Details
-
AutoNIOSSLTransportServer
public AutoNIOSSLTransportServer(SSLContext context, org.apache.activemq.transport.tcp.TcpTransportFactory transportFactory, URI location, ServerSocketFactory serverSocketFactory, BrokerService brokerService, Set<String> enabledProtocols) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
-
Method Details
-
createTransport
protected org.apache.activemq.transport.Transport createTransport(Socket socket, org.apache.activemq.wireformat.WireFormat format, SSLEngine engine, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer, org.apache.activemq.transport.tcp.TcpTransportFactory detectedFactory) throws IOException - Throws:
IOException
-
createTransport
protected org.apache.activemq.transport.tcp.TcpTransport createTransport(Socket socket, org.apache.activemq.wireformat.WireFormat format) throws IOException - Overrides:
createTransportin classorg.apache.activemq.transport.tcp.TcpTransportServer- Throws:
IOException
-
isSslServer
public boolean isSslServer()- Specified by:
isSslServerin interfaceorg.apache.activemq.transport.TransportServer- Overrides:
isSslServerin classorg.apache.activemq.transport.tcp.TcpTransportServer
-
isNeedClientAuth
public boolean isNeedClientAuth() -
setNeedClientAuth
public void setNeedClientAuth(boolean value) -
isWantClientAuth
public boolean isWantClientAuth() -
setWantClientAuth
public void setWantClientAuth(boolean value) -
configureTransport
protected org.apache.activemq.transport.tcp.TcpTransportServer.TransportInfo configureTransport(org.apache.activemq.transport.tcp.TcpTransportServer server, Socket socket) throws Exception - Overrides:
configureTransportin classAutoTcpTransportServer- Throws:
Exception
-