public class MessageView extends Object implements XMessageView
XMessageView
Constructor and Description |
---|
MessageView(MessageContext messageContext,
int maxPayloadSizeKbs) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Get the content type of the message if set.
|
List<StringPair> |
getContextProperties()
Return current context properties
|
String |
getDestinationURI()
Get the current destination URI for this message.
|
List<StringPair> |
getMessageProperties()
Return current message properties
|
String |
getPayload()
Get the current payload of the message
|
int |
getResponseCode()
Gets the response code of the message
|
List<StringTrio> |
getScopeVariables()
Returns the scope variables associated with each scope of the message context.
|
List<StringPair> |
getTransportHeaders()
Get the map of transport header values ignoring duplicates
|
void |
setContentType(String contentType) |
void |
setDestinationURI(String destinationURI) |
void |
setResponseCode(int responseCode) |
public MessageView(MessageContext messageContext, int maxPayloadSizeKbs)
public String getPayload()
XMessageView
getPayload
in interface XMessageView
String
public List<StringPair> getTransportHeaders()
XMessageView
getTransportHeaders
in interface XMessageView
StringPair
with StringPair.leftValue
as transport key and StringPair.rightValue
as transport valuepublic List<StringPair> getMessageProperties()
XMessageView
getMessageProperties
in interface XMessageView
StringPair
with StringPair.leftValue
as
property key and StringPair.rightValue
as property valuepublic List<StringPair> getContextProperties()
XMessageView
getContextProperties
in interface XMessageView
StringPair
with StringPair.leftValue
as
property key and StringPair.rightValue
as property valuepublic String getDestinationURI()
XMessageView
getDestinationURI
in interface XMessageView
public void setDestinationURI(String destinationURI)
public String getContentType()
XMessageView
getContentType
in interface XMessageView
public void setContentType(String contentType)
public int getResponseCode()
XMessageView
getResponseCode
in interface XMessageView
public void setResponseCode(int responseCode)
public List<StringTrio> getScopeVariables()
XMessageView
getScopeVariables
in interface XMessageView
StringTrio
s with
StringTrio.leftValue
being the scope name,
StringTrio.middleValue
being the variable name and
StringTrio.rightValue
being the variable valueCopyright © 2016–2019 AdroitLogic. All rights reserved.