xsul.dispatcher.msg.postmail
Interface MailBox

All Known Implementing Classes:
MailBoxImpl

public interface MailBox

Interface which is representing a simple PO Mailbox Service.

The PO Mailbox aims to stock informations from the original client message and keep response from WS.

To identify message, use a logical path as key. This is used like path in the forwarded message in the WS-Addressing element Reply To .

Author:
Alexandre di Costanzo

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.
 

Method Detail

putForWaitingResponse

public 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.

Parameters:
logicalPath - the key of the forwarded message.
replyTo - WS-Addressing element Reply To from the client message.

isWaitingResponse

public boolean isWaitingResponse(java.lang.String path)
Test if the path is a logical path and is waiting response from a WS.

Parameters:
path - the path.
Returns:
true if is waiting response from WS, else false.

putResponse

public void putResponse(java.lang.String logicalPath,
                        XmlElement el)
Put response from WS in the PO Mail Box Service to keep it.

Parameters:
logicalPath - the key of the forwarded message.
el - the message to keep.

getReplyToOf

public java.net.URI getReplyToOf(java.lang.String logicalPath)
Get the WS-Addressing element Reply To from the original client message.

Parameters:
logicalPath - the key of the message.
Returns:
the URI from client message element Reply To .


IU Extreme! Lab (http://www.extreme.indiana.edu)