|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.addressing.Call
public class Call
Represents an interaction pattern for a specific message exchange. When sending a message the sender application can specify where errors are to be returned, where responses are to go, along with other interaction information. A call represents an exchange pattern for this message. It is built up as the message flows through the ESB and identifies where the message should go, along with any routing information for faults, replies etc. To: the destination. MANDATORY. From: the sender. OPTIONAL. If not defined, then the sender MAY be inferred from the transport. ReplyTo: the destination for any response. OPTIONAL. FaultTo: the destination for any error message. OPTIONAL. RelatesTo: used to indicate that this message is related to another. OPTIONAL. Action: used by the sender to indicate the semantics of the message. Must be unique. MANDATORY. MessageID: used to uniquely identify this message. OPTIONAL.
Constructor Summary | |
---|---|
Call()
Create a new (empty) call. |
|
Call(Call copy)
Copy constructor. |
|
Call(EPR epr)
Create a new call, whose To field is set to the supplied EPR. |
Method Summary | |
---|---|
void |
copy(Call from)
Deprecated. use the copy constructor. |
boolean |
empty()
|
java.net.URI |
getAction()
|
EPR |
getFaultTo()
|
EPR |
getFrom()
|
java.net.URI |
getMessageID()
|
java.net.URI |
getRelatesTo()
|
EPR |
getReplyTo()
|
EPR |
getTo()
|
void |
setAction(java.net.URI uri)
Set the Action field. |
void |
setFaultTo(EPR uri)
Set the FaultTo field. |
void |
setFrom(EPR from)
Set the From field. |
void |
setMessageID(java.net.URI uri)
Set the MessageID for this instance. |
void |
setRelatesTo(java.net.URI uri)
Set the RelatesTo field. |
void |
setReplyTo(EPR replyTo)
Set the ReplyTo field. |
void |
setTo(EPR epr)
Set the To field. |
java.lang.String |
stringForm()
Prints the entire contents of the Call, even if most of the fields are null. |
java.lang.String |
toString()
Print the content of this header, ignoring all null fields. |
boolean |
valid()
This instance is valid if all mandatory elements are set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Call()
public Call(Call copy) throws java.net.URISyntaxException
copy
-
java.net.URISyntaxException
public Call(EPR epr)
epr
- the To field.Method Detail |
---|
public void setTo(EPR epr)
epr
- the To field value.public EPR getTo()
public void setFrom(EPR from)
from
- the value of the field.public EPR getFrom()
java.net.URISyntaxException
- thrown if the address is invalid.public void setReplyTo(EPR replyTo)
replyTo
- the value of the field.public EPR getReplyTo()
java.net.URISyntaxException
- thrown if the address is invalid.public void setFaultTo(EPR uri)
uri
- the value of the field.public EPR getFaultTo()
public void setRelatesTo(java.net.URI uri)
uri
- the value to set.public java.net.URI getRelatesTo()
public void setAction(java.net.URI uri)
uri
- the value to set.public java.net.URI getAction()
public void setMessageID(java.net.URI uri)
uri
- the value to use.public java.net.URI getMessageID()
public final boolean empty()
public void copy(Call from)
from
- the instance to copy.public java.lang.String stringForm()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean valid()
true
if all mandatory elements are set, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |