Class HttpTransportServer
- java.lang.Object
-
- org.apache.activemq.util.ServiceSupport
-
- org.apache.activemq.transport.TransportServerSupport
-
- org.apache.activemq.transport.WebTransportServerSupport
-
- org.apache.activemq.transport.http.HttpTransportServer
-
- All Implemented Interfaces:
Service,TransportServer
- Direct Known Subclasses:
HttpsTransportServer
public class HttpTransportServer extends WebTransportServerSupport
-
-
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
-
Fields inherited from class org.apache.activemq.transport.TransportServerSupport
allowLinkStealing, transportOptions
-
-
Constructor Summary
Constructors Constructor Description HttpTransportServer(URI uri, HttpTransportFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TextWireFormatcreateWireFormat()protected voiddoStart()protected voiddoStop(ServiceStopper stopper)InetSocketAddressgetSocketAddress()TextWireFormatgetWireFormat()booleanisSslServer()For TransportServers that provide SSL connections to their connected peers they should return true here if and only if they populate the ConnectionInfo command presented to the Broker with the peers certificate chain so that the broker knows it can use that information to authenticate the connected peer.voidsetBrokerInfo(BrokerInfo brokerInfo)Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.protected voidsetConnector(org.eclipse.jetty.server.Connector connector)voidsetTransportOption(Map<String,Object> transportOptions)voidsetWireFormat(TextWireFormat wireFormat)voidsetWireFormatOptions(Map<String,Object> wireFormatOptions)-
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
-
HttpTransportServer
public HttpTransportServer(URI uri, HttpTransportFactory factory)
-
-
Method Detail
-
setBrokerInfo
public void setBrokerInfo(BrokerInfo brokerInfo)
Description copied from interface:TransportServerAssociates 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.eclipse.jetty.server.Connector connector)
-
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()
- 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.
-
setTransportOption
public void setTransportOption(Map<String,Object> transportOptions)
- Overrides:
setTransportOptionin classTransportServerSupport
-
isSslServer
public boolean isSslServer()
Description copied from interface:TransportServerFor TransportServers that provide SSL connections to their connected peers they should return true here if and only if they populate the ConnectionInfo command presented to the Broker with the peers certificate chain so that the broker knows it can use that information to authenticate the connected peer.- Returns:
- true if this transport server provides SSL level security over its connections.
-
-