|
|||||||||
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(EPR epr)
Create a new call, whose To field is set to the supplied EPR. |
Method Summary | |
---|---|
void |
copy(Call from)
Copy the instance specified. |
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 |
toString()
|
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(EPR epr)
epr
- the To field.Method Detail |
---|
public void setTo(EPR epr)
epr
- the To field value.public EPR getTo() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is invalid.public void setFrom(EPR from)
from
- the value of the field.public EPR getFrom() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is invalid.public void setReplyTo(EPR replyTo)
replyTo
- the value of the field.public EPR getReplyTo() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is invalid.public void setFaultTo(EPR uri)
uri
- the value of the field.public EPR getFaultTo() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is invalid.public void setRelatesTo(java.net.URI uri)
uri
- the value to set.public java.net.URI getRelatesTo() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the field is invalid.public void setAction(java.net.URI uri)
uri
- the value to set.public java.net.URI getAction() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the field is invalid.public void setMessageID(java.net.URI uri)
uri
- the value to use.public java.net.URI getMessageID() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the value is invalid.public void copy(Call from)
from
- the instance to copy.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 |