|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.transport.TransportServerChannelSupport
An abstract base class useful for implementation inheritance
| Constructor Summary | |
TransportServerChannelSupport(java.lang.String url)
|
|
TransportServerChannelSupport(java.net.URI url)
|
|
| Method Summary | |
void |
addClient(TransportChannel channel)
Add a channel |
java.net.InetSocketAddress |
getSocketAddress()
An optional method to return the socket address if there is one on which this channel is listening. |
TransportChannelListener |
getTransportChannelListener()
|
java.lang.String |
getUrl()
Returns the URL to connect to this connector |
void |
removeClient(TransportChannel channel)
remove a channel |
protected java.lang.String |
resolveHostName(java.lang.String hostName)
|
void |
setTransportChannelListener(TransportChannelListener listener)
Registers the listener to be used when new clients connect or disconnect |
void |
setUrl(java.lang.String url)
|
void |
start()
start listeneing for events |
void |
stop()
close the ServerChannel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransportServerChannelSupport(java.net.URI url)
public TransportServerChannelSupport(java.lang.String url)
| Method Detail |
public void start()
throws javax.jms.JMSException
TransportServerChannel
start in interface TransportServerChanneljavax.jms.JMSException - if an error occurs
public void stop()
throws javax.jms.JMSException
TransportServerChannel
stop in interface TransportServerChanneljavax.jms.JMSExceptionpublic TransportChannelListener getTransportChannelListener()
public void setTransportChannelListener(TransportChannelListener listener)
TransportServerChannel
setTransportChannelListener in interface TransportServerChannellistener - the listener to be invoked when a client connects
or disconnectspublic java.lang.String getUrl()
TransportServerChannel
getUrl in interface TransportServerChannelpublic void setUrl(java.lang.String url)
public java.net.InetSocketAddress getSocketAddress()
TransportServerChannel
getSocketAddress in interface TransportServerChannelpublic void addClient(TransportChannel channel)
channel - public void removeClient(TransportChannel channel)
channel - protected java.lang.String resolveHostName(java.lang.String hostName)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||