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
public class AutoNIOSSLTransportServer extends AutoTcpTransportServer
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.ProtocolInfo
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.transport.auto.AutoTcpTransportServer
autoTransportOptions, brokerService, enabledProtocols, maxConnectionThreadPoolSize, newConnectionExecutor, protocolDetectionExecutor, protocolDetectionTimeOut, protocolVerifiers, wireFormatOptions
-
Fields inherited from class org.apache.activemq.transport.tcp.TcpTransportServer
allowLinkStealing, backlog, connectionTimeout, currentTransportCount, dynamicManagement, jmxPort, logWriterName, maximumConnections, maxInactivityDuration, maxInactivityDurationInitalDelay, minmumWireFormatVersion, selector, serverSocket, serverSocketFactory, socketBufferSize, socketHandlerThread, socketQueue, soTimeout, startLogging, trace, transportFactory, useQueueForAccept, verifyHostName, wireFormatFactory
-
-
Constructor Summary
Constructors Constructor Description AutoNIOSSLTransportServer(SSLContext context, org.apache.activemq.transport.tcp.TcpTransportFactory transportFactory, URI location, ServerSocketFactory serverSocketFactory, BrokerService brokerService, Set<String> enabledProtocols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.activemq.transport.tcp.TcpTransportServer.TransportInfo
configureTransport(org.apache.activemq.transport.tcp.TcpTransportServer server, Socket socket)
protected org.apache.activemq.transport.tcp.TcpTransport
createTransport(Socket socket, org.apache.activemq.wireformat.WireFormat format)
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)
boolean
isNeedClientAuth()
boolean
isSslServer()
boolean
isWantClientAuth()
void
setNeedClientAuth(boolean value)
void
setWantClientAuth(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, waitForProtocolDetectionFinish
-
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransportServer
bind, doHandleSocket, doStart, getBacklog, getConnectionTimeout, getCurrentTransportCount, getJmxPort, getLogWriterName, getMaximumConnections, getMaxInactivityDuration, getMaxInactivityDurationInitalDelay, getMinmumWireFormatVersion, getSocketAddress, getSocketBufferSize, getSoTimeout, getWireFormatFactory, isAllowLinkStealing, isDynamicManagement, isStartLogging, isTrace, isUseQueueForAccept, resolveHostName, run, setAllowLinkStealing, setBacklog, setBrokerInfo, setConnectionTimeout, setDynamicManagement, setJmxPort, setLogWriterName, setMaximumConnections, setMaxInactivityDuration, setMaxInactivityDurationInitalDelay, setMinmumWireFormatVersion, setSocketBufferSize, setSoTimeout, setStartLogging, setTrace, setUseQueueForAccept, started, stopped, toString
-
Methods inherited from class org.apache.activemq.transport.TransportServerThreadSupport
getStackSize, isDaemon, isJoinOnStop, setDaemon, setJoinOnStop, setStackSize
-
Methods inherited from class org.apache.activemq.transport.TransportServerSupport
getAcceptListener, getBindLocation, getConnectURI, onAcceptError, setAcceptListener, setBindLocation, setConnectURI, setTransportOption
-
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
-
-
-
-
Constructor Detail
-
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:
IOException
URISyntaxException
-
-
Method Detail
-
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:
createTransport
in classorg.apache.activemq.transport.tcp.TcpTransportServer
- Throws:
IOException
-
isSslServer
public boolean isSslServer()
- Specified by:
isSslServer
in interfaceorg.apache.activemq.transport.TransportServer
- Overrides:
isSslServer
in 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:
configureTransport
in classAutoTcpTransportServer
- Throws:
Exception
-
-