@ComponentProfile(summary="Receive an IDoc from SAP", tag="consumer,sap,idoc", recommended=IdocConsumeConnection.class) public class IdocConsumer extends com.adaptris.core.AdaptrisMessageConsumerImp implements IdocContext, com.adaptris.core.licensing.LicensedComponent
Implementation of AdaptrisMessageConsumer
based on SAP JCO
libraries.
In order to use these classes you will have previously downloaded, installed and configured SAP Java Connector and SAP Java Connector IDoc Class Library. The jar files should be copied into the adapter's lib directory, but any native libraries should be configured as per the SAP Java Connector documentation.
Note that because of the nature of the SAP libraries, all ConsumeDestination
configuration is ignored.
Note : The classes here were compiled against SAP Java Connector3 3.0.3, SAP IDoc Class Library 3.0.1 They will not work with SAP Java Connector 2.x and SAP Java Connector IDoc Class Library 1.x
In the adapter configuration file this class is aliased as sapjco3-idoc-consumer which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: ENTERPRISE
Constructor and Description |
---|
IdocConsumer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
IdocFormat.Format |
configuredIdocXmlFormat()
Get the IDoc XML Format that will be used to parsing or rendering.
|
java.lang.String |
configuredOptions()
Get the options for parsing or rendering the IDoc.
|
IdocConnection |
currentConnection()
Get the current connection.
|
com.adaptris.core.ConsumeDestination |
getDestination() |
IdocFormat.Format |
getIdocXmlFormat() |
java.lang.String |
getRenderingOptions() |
com.adaptris.core.sap.jco3.idoc.ConsumerAgent |
getServer() |
void |
init() |
boolean |
isEnabled(com.adaptris.core.licensing.License license) |
protected java.lang.String |
newThreadName() |
void |
prepare() |
java.lang.String |
renameThread() |
void |
setDestination(com.adaptris.core.ConsumeDestination destination) |
void |
setIdocXmlFormat(IdocFormat.Format format)
Set the IDoc XML format.
|
void |
setRenderingOptions(java.lang.String options)
Set the rendering options.
|
void |
setServer(com.adaptris.core.sap.jco3.idoc.ConsumerAgent server) |
void |
start() |
void |
stop() |
changeState, registerAdaptrisMessageListener, requestClose, requestInit, requestStart, requestStop, retrieveAdaptrisMessageListener, retrieveComponentState
createName, createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory, withUniqueID
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IdocConsumer()
public void init() throws com.adaptris.core.CoreException
init
in interface com.adaptris.core.ComponentLifecycle
com.adaptris.core.CoreException
ComponentLifecycle.init()
public void prepare() throws com.adaptris.core.CoreException
prepare
in interface com.adaptris.core.ComponentLifecycleExtension
com.adaptris.core.CoreException
public boolean isEnabled(com.adaptris.core.licensing.License license)
isEnabled
in interface com.adaptris.core.licensing.LicensedComponent
public void start() throws com.adaptris.core.CoreException
start
in interface com.adaptris.core.ComponentLifecycle
com.adaptris.core.CoreException
ComponentLifecycle.start()
public void stop()
stop
in interface com.adaptris.core.ComponentLifecycle
ComponentLifecycle.stop()
public void close()
close
in interface com.adaptris.core.ComponentLifecycle
ComponentLifecycle.close()
public java.lang.String renameThread()
renameThread
in class com.adaptris.core.AdaptrisMessageConsumerImp
public IdocFormat.Format getIdocXmlFormat()
public void setIdocXmlFormat(IdocFormat.Format format)
format
- the IDoc XML FormatIdocFormat.Format
public java.lang.String getRenderingOptions()
public void setRenderingOptions(java.lang.String options)
options
- the rendering optionsRenderingOptions
,
RenderingOptions.Option
public IdocFormat.Format configuredIdocXmlFormat()
IdocContext
configuredIdocXmlFormat
in interface IdocContext
IdocFormat.Format
public java.lang.String configuredOptions()
IdocContext
configuredOptions
in interface IdocContext
ParsingOptions
,
RenderingOptions
public IdocConnection currentConnection()
IdocContext
currentConnection
in interface IdocContext
public com.adaptris.core.sap.jco3.idoc.ConsumerAgent getServer()
public void setServer(com.adaptris.core.sap.jco3.idoc.ConsumerAgent server)
protected java.lang.String newThreadName()
newThreadName
in class com.adaptris.core.AdaptrisMessageConsumerImp
public com.adaptris.core.ConsumeDestination getDestination()
public void setDestination(com.adaptris.core.ConsumeDestination destination)
Copyright Adaptris