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
  • Constructor Details

    • WSTransportServer

      public WSTransportServer(URI location)
  • Method Details

    • doStart

      protected void doStart() throws Exception
      Specified by:
      doStart in class ServiceSupport
      Throws:
      Exception
    • doStop

      protected void doStop(ServiceStopper stopper) throws Exception
      Specified by:
      doStop in class ServiceSupport
      Throws:
      Exception
    • getSocketAddress

      public InetSocketAddress getSocketAddress()
      Specified by:
      getSocketAddress in interface org.apache.activemq.transport.TransportServer
    • setBrokerInfo

      public void setBrokerInfo(org.apache.activemq.command.BrokerInfo brokerInfo)
      Specified by:
      setBrokerInfo in interface org.apache.activemq.transport.TransportServer
    • setConnector

      protected void setConnector(org.eclipse.jetty.server.Connector connector)
    • setTransportOption

      public void setTransportOption(Map<String,Object> transportOptions)
      Overrides:
      setTransportOption in class org.apache.activemq.transport.TransportServerSupport
    • isSslServer

      public boolean isSslServer()
      Specified by:
      isSslServer in interface org.apache.activemq.transport.TransportServer
    • setBrokerService

      public void setBrokerService(org.apache.activemq.broker.BrokerService brokerService)
      Specified by:
      setBrokerService in interface org.apache.activemq.broker.BrokerServiceAware
    • getMaxConnectionExceededCount

      public long getMaxConnectionExceededCount()
      Specified by:
      getMaxConnectionExceededCount in interface org.apache.activemq.transport.TransportServer
    • resetStatistics

      public void resetStatistics()
      Specified by:
      resetStatistics in interface org.apache.activemq.transport.TransportServer