|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.jms.server.http.HttpJmsSessionSender
public class HttpJmsSessionSender
This class contains the http connection to a receiver or subscriber for passing messages.
JmsServerSession,
HttpClient| Constructor Summary | |
|---|---|
HttpJmsSessionSender(HttpJmsSessionConnection connection,
org.exolab.core.http.HttpClient client,
JmsServerSession session,
java.lang.String host,
java.lang.String port)
Create a connection to the client listener for sending JmsMessages. |
|
| Method Summary | |
|---|---|
void |
close()
Remove the callback from the JmsServerSession. |
void |
onMessage(javax.jms.Message message)
Send a message to a listener. |
void |
onMessageAvailable(long clientId)
Notify the specified client that a message avaiable. |
void |
onMessages(java.util.Vector messages)
Send the collection of messages to the client. |
protected void |
ping()
Ping the client to see if its still active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpJmsSessionSender(HttpJmsSessionConnection connection,
org.exolab.core.http.HttpClient client,
JmsServerSession session,
java.lang.String host,
java.lang.String port)
connection - the session connectionclient - the connection to the client.session - the session this connection belongs tohost - the host the client session runs onport - the port the client session is listening on| Method Detail |
|---|
public void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenermessage - The message to send.public void onMessages(java.util.Vector messages)
onMessages in interface JmsMessageListenermessages - - collection of MessageImpl objectspublic void onMessageAvailable(long clientId)
onMessageAvailable in interface JmsMessageListenerclinet - - the client identityprotected void ping()
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||