public class AddFailureMetadata extends ReturnParserImpl
In the adapter configuration file this class is aliased as sapjco3-bapireturn-add-failure-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 |
---|
AddFailureMetadata() |
AddFailureMetadata(java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMetadataKey() |
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 |
setMetadataKey(java.lang.String s) |
isFailure, parseType
public AddFailureMetadata()
public AddFailureMetadata(java.lang.String key)
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 getMetadataKey()
public void setMetadataKey(java.lang.String s)
Copyright Adaptris