Class MessageTransform
java.lang.Object
com.onenetwork.platform.integ.msg.MessageTransform
- Direct Known Subclasses:
DelimiterTransform
,SplitPayloadTransform
public abstract class MessageTransform
extends java.lang.Object
Extend this base class to transform a message payload during enqueue or dequeue of a
Message
.-
Constructor Summary
Constructors Constructor Description MessageTransform()
-
Method Summary
Modifier and Type Method Description abstract void
transform(java.io.InputStream in, java.io.OutputStream out, MessageTransformContext transformContext)
Implementor should read the payload from the InputStream and write it to the OutputStream.
-
Constructor Details
-
MessageTransform
public MessageTransform()
-
-
Method Details
-
transform
public abstract void transform(java.io.InputStream in, java.io.OutputStream out, MessageTransformContext transformContext) throws java.lang.ExceptionImplementor should read the payload from the InputStream and write it to the OutputStream. It is not necessary to close the streams (the caller will close them explicitly).- Parameters:
in
- InputStream of the orginal payloadout
- OutputStream of the transformed payloadtransformContext
- Context contains user information who is performing this transformation- Throws:
java.lang.Exception
- any exception to retry the transform, orMessageTransformFailedException
to fail without retry
-