org.apache.activemq.transport.http
Class HttpTransportServer

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.transport.TransportServerSupport
          extended by org.apache.activemq.transport.http.HttpTransportServer
All Implemented Interfaces:
Service, TransportServer
Direct Known Subclasses:
HttpsTransportServer

public class HttpTransportServer
extends TransportServerSupport

Version:
$Revision$

Constructor Summary
HttpTransportServer(URI uri)
           
 
Method Summary
protected  TextWireFormat createWireFormat()
           
protected  void doStart()
           
protected  void doStop(ServiceStopper stopper)
           
 InetSocketAddress getSocketAddress()
           
 TextWireFormat getWireFormat()
           
 void setBrokerInfo(BrokerInfo brokerInfo)
          Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.
protected  void setConnector(org.mortbay.jetty.Connector connector)
           
 void setWireFormat(TextWireFormat wireFormat)
           
 
Methods inherited from class org.apache.activemq.transport.TransportServerSupport
getAcceptListener, getBindLocation, getConnectURI, onAcceptError, setAcceptListener, setBindLocation, setConnectURI
 
Methods inherited from class org.apache.activemq.util.ServiceSupport
dispose, isStarted, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Constructor Detail

HttpTransportServer

public HttpTransportServer(URI uri)
Method Detail

setBrokerInfo

public void setBrokerInfo(BrokerInfo brokerInfo)
Description copied from interface: TransportServer
Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.


getWireFormat

public TextWireFormat getWireFormat()

setWireFormat

public void setWireFormat(TextWireFormat wireFormat)

createWireFormat

protected TextWireFormat createWireFormat()

setConnector

protected void setConnector(org.mortbay.jetty.Connector connector)

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()
Returns:
The socket address that this transport is accepting connections on or null if this does not or is not currently accepting connections on a socket.


Copyright © 2011 Apache Software Foundation. All Rights Reserved.