Class DelimiterTransform
java.lang.Object
com.onenetwork.platform.integ.msg.MessageTransform
com.onenetwork.platform.integ.msg.DelimiterTransform
public class DelimiterTransform extends MessageTransform
Use this transform to write the payload with a custom delimiter instead of the delimiter specified on the interface for outbound messages
and for inbound messages, use this transform to convert the payload with a custom delimiter to the one specified on the interface.
This transform class can be used to transform the delimiter of a message payload during enqueue or dequeue of a ~~~~ or ~
LocalValue -
Message
.
The custom delimiter must be specified by adding ExternalReference records as follows -
RefType - "DelimiterTransform:Field"
ExternalValue - -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REFTYPE_FOR_CUSTOM_FIELD_DELIM
-
Constructor Summary
Constructors Constructor Description DelimiterTransform()
-
Method Summary
Modifier and Type Method Description 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.
-
Field Details
-
REFTYPE_FOR_CUSTOM_FIELD_DELIM
public static final java.lang.String REFTYPE_FOR_CUSTOM_FIELD_DELIM- See Also:
- Constant Field Values
-
-
Constructor Details
-
DelimiterTransform
public DelimiterTransform()
-
-
Method Details
-
transform
public void transform(java.io.InputStream in, java.io.OutputStream out, MessageTransformContext transformContext) throws java.lang.ExceptionDescription copied from class:MessageTransform
Implementor 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).- Specified by:
transform
in classMessageTransform
- 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- See Also:
MessageTransform.transform(java.io.InputStream, java.io.OutputStream, com.onenetwork.platform.integ.msg.MessageTransformContext)
-