|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The MessageDescription interface represents the description of a message, for the purpose of classifying and transforming it.
A ConversationPolicyHandler processes an inbound message by attempting to match it against MessageDescriptions associated with the transitions of the conversation policy it is executing. When a match is found, that transition is taken. Similarly, it processes outbound decision data by testing whether the decision data can be transformed into a message matching the MessageDescription associated with the transition given by the decision data's name.
A MessageDescription consists of a two-level description of a message: the "ContentType" and the "Schema". ContentType and Schema are more-or-less arbitrary designations, meant only to permit message descriptions to follow a "genus/species" naming convention.
This interface can be used to describe a great variety of different messages. For example:
{ContentType="wsdl-message", Schema="PurchageOrderMessage"}
.{ContentType="wsdl-operation", Schema="POPortType.sendPurchaseOrder"}
.{ContentType="xml", Schema="myMessage.xsd"}
{ContentType="KQML", Schema="inform"}
.
Field Summary | |
---|---|
static java.lang.String |
ANY
Indicates that any value (e.g., of schema or contentType) should be considered as a match to this MessageDescription. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns this MessageDescription's content-type string. |
java.lang.String |
getSchema()
Returns this MessageDescription's schema string. |
boolean |
isAnyContentType()
Indicates whether any string, regardless of content, will be considered a match to this MessageDescription's content type. |
boolean |
isAnySchema()
Indicates whether any string, regardless of content, will be considered a match to this MessageDescription's schema. |
boolean |
matches(MessageDescription d)
Indicates whether this MessageDescription matches the given MessageDescription. |
Field Detail |
public static final java.lang.String ANY
Method Detail |
public java.lang.String getContentType()
public java.lang.String getSchema()
public boolean isAnyContentType()
public boolean isAnySchema()
public boolean matches(MessageDescription d)
Matching is done first against the contentType, then against the schema. If either description has MessageDescription.ANY for a part, that part is considered to match against all values.
Matching is reflexive: a.matches(b) == b.matches(a)
d
- The MessageDescription to match against.
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |