public class AddBasicMetadata extends ReturnParserImpl
No parsing is done of the TYPE field, empty MESSAGE fields will be ignored. Generally these are the accepted values and meanings
Value | Meaning |
---|---|
S | Success Message (A blank type, will be substituted with this value) |
E | Error Message |
W | Warning Message |
I | Informational Message |
A | Termination (aborted) |
In the adapter configuration file this class is aliased as sapjco3-bapireturn-add-basic-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
BAPIRET2_FIELD, BAPIRET2_ID, BAPIRET2_LOG_MSG_NO, BAPIRET2_LOG_NO, BAPIRET2_MESSAGE, BAPIRET2_NUMBER, BAPIRET2_PARAMETER, BAPIRET2_ROW, BAPIRET2_TYPE, BAPIRETURN_CODE, BAPIRETURN_LOG_MSG_NO, BAPIRETURN_LOG_NO, BAPIRETURN_MESSAGE, BAPIRETURN_TYPE, BAPIRETURN1_ID, BAPIRETURN1_LOG_MSG_NO, BAPIRETURN1_LOG_NO, BAPIRETURN1_MESSAGE, BAPIRETURN1_NUMBER, BAPIRETURN1_TYPE
Constructor and Description |
---|
AddBasicMetadata() |
AddBasicMetadata(java.lang.String returnTypeKey,
java.lang.String returnMessageKey) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReturnMessageKey() |
java.lang.String |
getReturnTypeKey() |
void |
handle(com.sap.conn.jco.JCoStructure returnStruct,
com.adaptris.core.AdaptrisMessage msg)
Handle the return structure in some fashion.
|
void |
handle(com.sap.conn.jco.JCoTable returnTable,
com.adaptris.core.AdaptrisMessage msg)
Handle the return structure in some fashion.
|
void |
setReturnMessageKey(java.lang.String metadatakey)
Set the metadata key for the return message.
|
void |
setReturnTypeKey(java.lang.String metadatakey)
Set the metadata key for the return type.
|
isFailure, parseType
public AddBasicMetadata()
public AddBasicMetadata(java.lang.String returnTypeKey, java.lang.String returnMessageKey)
public void handle(com.sap.conn.jco.JCoStructure returnStruct, com.adaptris.core.AdaptrisMessage msg) throws com.adaptris.core.ProduceException
BapiReturnParser
returnStruct
- the JCoStructure containing the BAPIRETURNmsg
- the AdaptrisMessage.com.adaptris.core.ProduceException
- if it should be treated as a ProduceExceptionpublic void handle(com.sap.conn.jco.JCoTable returnTable, com.adaptris.core.AdaptrisMessage msg) throws com.adaptris.core.ProduceException
BapiReturnParser
returnTable
- the JCoTable containing the BAPIRETURNmsg
- the AdaptrisMessage.com.adaptris.core.ProduceException
- if it should be treated as a ProduceExceptionpublic java.lang.String getReturnTypeKey()
public void setReturnTypeKey(java.lang.String metadatakey)
metadatakey
- the key, default bapiReturnType
public java.lang.String getReturnMessageKey()
public void setReturnMessageKey(java.lang.String metadatakey)
metadatakey
- the key, default bapiReturnMessage
Copyright Adaptris