public class PayloadProcessor extends Object
result type.
The "payload" object supplied to the process(Object, org.milyn.container.ExecutionContext)
method can be one of type:
String,Byte array,Reader,InputStream,Source,SourceResult, orJavaSource).SourceResult payload type allows full control over the filter
Source and Result.| Constructor and Description |
|---|
PayloadProcessor(Smooks smooks,
ResultType resultType)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
process(Object payload,
ExecutionContext executionContext)
Process the supplied payload.
|
void |
setJavaResultBeanId(String javaResultBeanId)
Set the bean ID to be unpacked from a
JavaResult. |
public PayloadProcessor(Smooks smooks, ResultType resultType)
smooks - The Smooks instance to be used.resultType - The required result type.public void setJavaResultBeanId(String javaResultBeanId)
JavaResult.
Only relevant for ResultType.JAVA. If not specified, the
complete result Map
will be returned as the result of the process(Object, org.milyn.container.ExecutionContext)
method call.javaResultBeanId - The bean ID to be unpacked.public final Object process(Object payload, ExecutionContext executionContext) throws SmooksException
payload - The payload to be filtered. See class level javadoc for supported data types.ResultType supplied in the
constructor.SmooksExceptionCopyright © 2020. All rights reserved.