|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transformer.AbstractTransformer
org.mule.transformer.AbstractMessageTransformer
org.mule.transport.legstar.transformer.AbstractHostMuleTransformer
org.mule.transport.legstar.cixs.transformer.AbstractHostToExecRequestMuleTransformer
public abstract class AbstractHostToExecRequestMuleTransformer
Code common to host to transformers that produce mainframe program execution requests.
Source data is already in mainframe format. These transformers wrap that mainframe payload into a messaging envelope understood by the target execution environment on the mainframe.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mule.transport.legstar.transformer.AbstractHostMuleTransformer |
|---|
AbstractHostMuleTransformer.HolderGetter, AbstractHostMuleTransformer.HolderSetter |
| Field Summary | |
|---|---|
static String |
LEGSTAR_HOST_TRACE_ON_KEY
Property name that holds true if mainframe should trace execution requests. |
| Fields inherited from class org.mule.transformer.AbstractTransformer |
|---|
encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.AnnotatedObject |
|---|
PROPERTY_NAME |
| Constructor Summary | |
|---|---|
AbstractHostToExecRequestMuleTransformer()
Constructor registers source and return classes. |
|
| Method Summary | |
|---|---|
String |
getHostCompatibleCorrelationId(String id)
Creates a correlation ID that is compatible with mainframe transports. |
HostProgram |
getHostProgram()
|
String |
getReplyTo()
|
Object |
hostTransform(org.mule.api.MuleMessage esbMessage,
String outputEncoding)
Specialized classes perform the actual transformation. |
boolean |
isHostTraceOn()
|
void |
setHostProgram(HostProgram hostProgram)
|
void |
setHostTraceOn(boolean traceOn)
|
abstract void |
setMessageProperties(org.mule.api.MuleMessage esbMessage)
Allows derived classes to set additional properties on the esb message. |
void |
setReplyTo(String to)
|
abstract byte[] |
wrapHostData(byte[] hostData,
org.mule.api.MuleMessage esbMessage)
This method wraps a single part payload into a mainframe program execution request message. |
abstract byte[] |
wrapHostData(Map<String,byte[]> hostDataMap,
org.mule.api.MuleMessage esbMessage)
If the mainframe is expecting a formatted mainframe program execution request message, this method wraps a multi part payloads into a mainframe program execution request message. |
| Methods inherited from class org.mule.transport.legstar.transformer.AbstractHostMuleTransformer |
|---|
getHostCharset, getHostCharset, getI18NMessages, setHostCharset, transformMessage |
| Methods inherited from class org.mule.transformer.AbstractMessageTransformer |
|---|
checkReturnClass, doTransform, isSourceDataTypeSupported, transform, transform, transform |
| Methods inherited from class org.mule.transformer.AbstractTransformer |
|---|
dispose, generateTransformerName, getAnnotation, getAnnotations, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, initialise, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setAnnotations, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, unregisterSourceType, unregisterSourceType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mule.api.transformer.Transformer |
|---|
getEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform |
| Methods inherited from interface org.mule.api.processor.MessageProcessor |
|---|
process |
| Methods inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
initialise |
| Methods inherited from interface org.mule.api.lifecycle.Disposable |
|---|
dispose |
| Methods inherited from interface org.mule.api.NameableObject |
|---|
setName |
| Methods inherited from interface org.mule.api.NamedObject |
|---|
getName |
| Methods inherited from interface org.mule.api.context.MuleContextAware |
|---|
setMuleContext |
| Methods inherited from interface org.mule.endpoint.EndpointAware |
|---|
setEndpoint |
| Field Detail |
|---|
public static final String LEGSTAR_HOST_TRACE_ON_KEY
| Constructor Detail |
|---|
public AbstractHostToExecRequestMuleTransformer()
| Method Detail |
|---|
public Object hostTransform(org.mule.api.MuleMessage esbMessage,
String outputEncoding)
throws org.mule.api.transformer.TransformerException
hostTransform in class AbstractHostMuleTransformeresbMessage - the Mule messageoutputEncoding - the payload encoding
org.mule.api.transformer.TransformerException - if transform fails
public abstract byte[] wrapHostData(byte[] hostData,
org.mule.api.MuleMessage esbMessage)
throws org.mule.api.transformer.TransformerException
hostData - the single part mainframe payloadesbMessage - the original mule message
org.mule.api.transformer.TransformerException - if wrapping fails
public abstract byte[] wrapHostData(Map<String,byte[]> hostDataMap,
org.mule.api.MuleMessage esbMessage)
throws org.mule.api.transformer.TransformerException
hostDataMap - the multi part mainframe payload (one entry per container)esbMessage - the original mule message
org.mule.api.transformer.TransformerException - if wrapping failspublic abstract void setMessageProperties(org.mule.api.MuleMessage esbMessage)
esbMessage - the original mule messagepublic String getHostCompatibleCorrelationId(String id)
id - the ID as Mule would have it
public HostProgram getHostProgram()
public void setHostProgram(HostProgram hostProgram)
hostProgram - target mainframe program attributespublic String getReplyTo()
public void setReplyTo(String to)
to - reply URL. This is useful when the request needs to instruct the mainframe on
where to store the replypublic boolean isHostTraceOn()
public void setHostTraceOn(boolean traceOn)
traceOn - true if mainframe server is to produce detailed traces
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||