org.apache.activemq.transport
Class TransportServerSupport

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.transport.TransportServerSupport
All Implemented Interfaces:
Service, TransportServer
Direct Known Subclasses:
TransportServerThreadSupport, UdpTransportServer, WebTransportServerSupport

public abstract class TransportServerSupport
extends ServiceSupport
implements TransportServer

A useful base class for implementations of TransportServer


Field Summary
protected  Map<String,Object> transportOptions
           
 
Constructor Summary
TransportServerSupport()
           
TransportServerSupport(URI location)
           
 
Method Summary
 TransportAcceptListener getAcceptListener()
           
 URI getBindLocation()
           
 URI getConnectURI()
           
protected  void onAcceptError(Exception e)
           
 void setAcceptListener(TransportAcceptListener acceptListener)
          Registers an accept listener
 void setBindLocation(URI bindLocation)
           
 void setConnectURI(URI location)
           
 void setTransportOption(Map<String,Object> transportOptions)
           
 
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, doStart, doStop, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, 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.transport.TransportServer
getSocketAddress, isSslServer, setBrokerInfo
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Field Detail

transportOptions

protected Map<String,Object> transportOptions
Constructor Detail

TransportServerSupport

public TransportServerSupport()

TransportServerSupport

public TransportServerSupport(URI location)
Method Detail

getAcceptListener

public TransportAcceptListener getAcceptListener()
Returns:
Returns the acceptListener.

setAcceptListener

public void setAcceptListener(TransportAcceptListener acceptListener)
Registers an accept listener

Specified by:
setAcceptListener in interface TransportServer
Parameters:
acceptListener -

getConnectURI

public URI getConnectURI()
Specified by:
getConnectURI in interface TransportServer
Returns:
Returns the location.

setConnectURI

public void setConnectURI(URI location)
Parameters:
location - The location to set.

onAcceptError

protected void onAcceptError(Exception e)

getBindLocation

public URI getBindLocation()

setBindLocation

public void setBindLocation(URI bindLocation)

setTransportOption

public void setTransportOption(Map<String,Object> transportOptions)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.