Package org.apache.activemq.transport.ws
Class WSTransportServer
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportServerSupport
org.apache.activemq.transport.WebTransportServerSupport
org.apache.activemq.transport.ws.WSTransportServer
- All Implemented Interfaces:
org.apache.activemq.broker.BrokerServiceAware,org.apache.activemq.Service,org.apache.activemq.transport.TransportServer
- Direct Known Subclasses:
WSSTransportServer
public class WSTransportServer
extends WebTransportServerSupport
implements org.apache.activemq.broker.BrokerServiceAware
Creates a web server and registers web socket server
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.activemq.transport.WebTransportServerSupport
WebTransportServerSupport.HttpOptions, WebTransportServerSupport.JettyOptions -
Field Summary
Fields inherited from class org.apache.activemq.transport.WebTransportServerSupport
bindAddress, connector, host, httpOptions, jettyOptions, server, socketConnectorFactoryFields inherited from class org.apache.activemq.transport.TransportServerSupport
allowLinkStealing, transportOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()protected voiddoStop(ServiceStopper stopper) longbooleanvoidvoidsetBrokerInfo(org.apache.activemq.command.BrokerInfo brokerInfo) voidsetBrokerService(org.apache.activemq.broker.BrokerService brokerService) protected voidsetConnector(org.eclipse.jetty.server.Connector connector) voidsetTransportOption(Map<String, Object> transportOptions) Methods inherited from class org.apache.activemq.transport.WebTransportServerSupport
bind, configureTraceMethod, createServer, setHttpOptions, setJettyOptionsMethods inherited from class org.apache.activemq.transport.TransportServerSupport
getAcceptListener, getBindLocation, getConnectURI, isAllowLinkStealing, onAcceptError, setAcceptListener, setAllowLinkStealing, setBindLocation, setConnectURIMethods 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, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.Service
start, stop
-
Constructor Details
-
WSTransportServer
-
-
Method Details
-
doStart
- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
doStop
- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
getSocketAddress
- Specified by:
getSocketAddressin interfaceorg.apache.activemq.transport.TransportServer
-
setBrokerInfo
public void setBrokerInfo(org.apache.activemq.command.BrokerInfo brokerInfo) - Specified by:
setBrokerInfoin interfaceorg.apache.activemq.transport.TransportServer
-
setConnector
protected void setConnector(org.eclipse.jetty.server.Connector connector) -
setTransportOption
- Overrides:
setTransportOptionin classorg.apache.activemq.transport.TransportServerSupport
-
isSslServer
public boolean isSslServer()- Specified by:
isSslServerin interfaceorg.apache.activemq.transport.TransportServer
-
setBrokerService
public void setBrokerService(org.apache.activemq.broker.BrokerService brokerService) - Specified by:
setBrokerServicein interfaceorg.apache.activemq.broker.BrokerServiceAware
-
getMaxConnectionExceededCount
public long getMaxConnectionExceededCount()- Specified by:
getMaxConnectionExceededCountin interfaceorg.apache.activemq.transport.TransportServer
-
resetStatistics
public void resetStatistics()- Specified by:
resetStatisticsin interfaceorg.apache.activemq.transport.TransportServer
-