public class MessageProcessor extends java.lang.Object implements ItemProcessor<java.lang.String,java.lang.String>
Simple ItemProcessor
implementation to append a "processed on" Date
to a received message.
Constructor and Description |
---|
MessageProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
process(java.lang.String message)
Process the provided item, returning a potentially modified or new item for continued
processing.
|
public java.lang.String process(java.lang.String message) throws java.lang.Exception
ItemProcessor
process
in interface ItemProcessor<java.lang.String,java.lang.String>
message
- to be processedjava.lang.Exception