public abstract class Agent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logR |
Modifier | Constructor and Description |
---|---|
protected |
Agent(java.lang.Class logCategory) |
protected |
Agent(java.lang.String logCategory) |
Modifier and Type | Method and Description |
---|---|
protected com.sap.conn.jco.JCoDestination |
connect(com.adaptris.core.AdaptrisMessage msg) |
static com.sap.conn.jco.JCoDestination |
connect(RfcConnection c,
com.adaptris.core.AdaptrisMessage msg)
Helper method for create JCoDestination instances.
|
protected abstract RfcConnection |
getConnection()
Get the underlying JcoRfcConnection available to the producer / consumer.
|
protected abstract java.util.List |
getExportParameters()
Get the configured ExportParameters.
|
protected abstract java.util.List |
getImportParameters()
Get the configured ImportParameters.
|
abstract com.adaptris.core.AdaptrisMessage |
invoke(com.adaptris.core.AdaptrisMessage msg) |
protected void |
invoke(java.lang.String name,
com.adaptris.core.AdaptrisMessage msg,
com.sap.conn.jco.JCoFunction function,
com.sap.conn.jco.JCoDestination destination) |
protected Agent(java.lang.String logCategory)
protected Agent(java.lang.Class logCategory)
protected abstract RfcConnection getConnection()
protected abstract java.util.List getImportParameters()
protected abstract java.util.List getExportParameters()
public abstract com.adaptris.core.AdaptrisMessage invoke(com.adaptris.core.AdaptrisMessage msg) throws com.adaptris.core.CoreException
com.adaptris.core.CoreException
protected void invoke(java.lang.String name, com.adaptris.core.AdaptrisMessage msg, com.sap.conn.jco.JCoFunction function, com.sap.conn.jco.JCoDestination destination) throws com.adaptris.core.CoreException, com.sap.conn.jco.JCoException
com.adaptris.core.CoreException
com.sap.conn.jco.JCoException
protected com.sap.conn.jco.JCoDestination connect(com.adaptris.core.AdaptrisMessage msg) throws JcoException
JcoException
public static com.sap.conn.jco.JCoDestination connect(RfcConnection c, com.adaptris.core.AdaptrisMessage msg) throws JcoException
This is really a work-around for castor; as this method could quite happily live in RfcConnection, but because RfcConnection is designed to be marshalled, there may be ClassNotFoundExceptions related to non-existence of the SAP classes due to licensing.
JcoException
- wrapping exceptions thrown by JCoDestinationManagerCopyright Adaptris