Class MessageDefault
- java.lang.Object
-
- de.codecentric.reedelk.runtime.api.message.MessageDefault
-
- All Implemented Interfaces:
Message,Serializable
public class MessageDefault extends Object implements Message
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageAttributesattributes()This is a 'nice to have' method to make getting the attributes more readable from the Script language e.g.<T,StreamType,U extends TypedContent<T,StreamType>>
Ucontent()This is a 'nice to have' method to make getting the content more readable from the Script language e.g.MessageAttributesgetAttributes()This method is needed by Script engine to access this object's properties.<T,StreamType,U extends TypedContent<T,StreamType>>
UgetContent()<T> Tpayload()Returns the message payload.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.codecentric.reedelk.runtime.api.message.Message
getPayload
-
-
-
-
Method Detail
-
getContent
public <T,StreamType,U extends TypedContent<T,StreamType>> U getContent()
- Specified by:
getContentin interfaceMessage
-
content
public <T,StreamType,U extends TypedContent<T,StreamType>> U content()
Description copied from interface:MessageThis is a 'nice to have' method to make getting the content more readable from the Script language e.g. message.content() instead of message.getContent().
-
payload
public <T> T payload()
Description copied from interface:MessageReturns the message payload. This method automatically consumes the payload stream if it is a stream.
-
getAttributes
public MessageAttributes getAttributes()
Description copied from interface:MessageThis method is needed by Script engine to access this object's properties.- Specified by:
getAttributesin interfaceMessage- Returns:
- the message attributes.
-
attributes
public MessageAttributes attributes()
Description copied from interface:MessageThis is a 'nice to have' method to make getting the attributes more readable from the Script language e.g. message.attributes() instead of message.getAttributes().- Specified by:
attributesin interfaceMessage- Returns:
- the message attributes.
-
-