|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectxsul.dispatcher.msg.postmail.MailBoxImpl
Implementation of MailBox.
This implementation uses 2 ConcurrentReaderHashMap to stock
responses and waiting responses.
Actualy, there is no data persitence and it is not an independant process or thread from the Dispatcher.
MailBox,
EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap| Constructor Summary | |
MailBoxImpl()
Construst a new PO Mail Box |
|
| Method Summary | |
java.net.URI |
getReplyToOf(java.lang.String logicalPath)
Get the WS-Addressing element Reply To from the original client message. |
boolean |
isWaitingResponse(java.lang.String path)
Test if the path is a logical path and is waiting response
from a WS. |
void |
putForWaitingResponse(java.lang.String logicalPath,
java.net.URI replyTo)
Put the java.net.URI of the WS-Addressing element Reply
To from the original message from the client. |
void |
putResponse(java.lang.String logicalPath,
XmlElement el)
Put response from WS in the PO Mail Box Service to keep it. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MailBoxImpl()
| Method Detail |
public void putForWaitingResponse(java.lang.String logicalPath,
java.net.URI replyTo)
MailBoxjava.net.URI of the WS-Addressing element Reply
To from the original message from the client.
putForWaitingResponse in interface MailBoxlogicalPath - the key of the forwarded message.replyTo - WS-Addressing element Reply To from the client
message.MailBox.putForWaitingResponse(java.lang.String,
java.net.URI)public boolean isWaitingResponse(java.lang.String path)
MailBoxpath is a logical path and is waiting response
from a WS.
isWaitingResponse in interface MailBoxpath - the path.
true if is waiting response from WS, else
false.MailBox.isWaitingResponse(java.lang.String)
public void putResponse(java.lang.String logicalPath,
XmlElement el)
MailBox
putResponse in interface MailBoxlogicalPath - the key of the forwarded message.el - the message to keep.xsul.dispatcher.msg.postmail.MailBox#putResponse(java.lang.String,
org.xmlpull.v1.builder.XmlElement)public java.net.URI getReplyToOf(java.lang.String logicalPath)
MailBox
getReplyToOf in interface MailBoxlogicalPath - the key of the message.
URI from client message element Reply To
.MailBox.getReplyToOf(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||