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, socketConnectorFactory
-
-
Constructor Summary
Constructors Constructor Description WSTransportServer(URI location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()protected voiddoStop(ServiceStopper stopper)longgetMaxConnectionExceededCount()InetSocketAddressgetSocketAddress()booleanisSslServer()voidresetStatistics()voidsetBrokerInfo(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, setJettyOptions
-
Methods inherited from class org.apache.activemq.transport.TransportServerSupport
getAcceptListener, getBindLocation, getConnectURI, isAllowLinkStealing, onAcceptError, setAcceptListener, setAllowLinkStealing, setBindLocation, setConnectURI
-
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
-
-
-
-
Constructor Detail
-
WSTransportServer
public WSTransportServer(URI location)
-
-
Method Detail
-
doStart
protected void doStart() throws Exception- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
doStop
protected void doStop(ServiceStopper stopper) throws Exception
- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
getSocketAddress
public InetSocketAddress 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
public void setTransportOption(Map<String,Object> transportOptions)
- 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
-
-