org.apache.activemq.transport
Interface TransportServer

All Superinterfaces:
Service
All Known Implementing Classes:
HttpsTransportServer, HttpTransportServer, NIOSSLTransportServer, SslTransportServer, TcpTransportServer, TransportServerFilter, TransportServerSupport, TransportServerThreadSupport, UdpTransportServer, VMTransportServer, WebTransportServerSupport, WSSTransportServer, WSTransportServer

public interface TransportServer
extends Service

A TransportServer asynchronously accepts Transport objects and then delivers those objects to a TransportAcceptListener.


Method Summary
 URI getConnectURI()
           
 InetSocketAddress getSocketAddress()
           
 boolean isSslServer()
          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.
 void setAcceptListener(TransportAcceptListener acceptListener)
          Registers an TransportAcceptListener which is notified of accepted channels.
 void setBrokerInfo(BrokerInfo brokerInfo)
          Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Method Detail

setAcceptListener

void setAcceptListener(TransportAcceptListener acceptListener)
Registers an TransportAcceptListener which is notified of accepted channels.

Parameters:
acceptListener -

setBrokerInfo

void setBrokerInfo(BrokerInfo brokerInfo)
Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.

Parameters:
brokerInfo -

getConnectURI

URI getConnectURI()

getSocketAddress

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.

isSslServer

boolean isSslServer()
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.

Returns:
true if this transport server provides SSL level security over its connections.


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.