public abstract class ApplicationConnector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CLASSNAME |
private static B2bRepository |
config |
private java.lang.String |
connectorClassName |
(package private) static java.lang.String |
COPYRIGHT |
private static org.apache.log4j.Logger |
logger |
private org.dom4j.Document |
request |
protected RequestProcessor |
requestProcessor |
Modifier | Constructor and Description |
---|---|
protected |
ApplicationConnector(RequestProcessor request)
Retrieves the connector configuration for the request type.
|
Modifier and Type | Method and Description |
---|---|
protected org.dom4j.Document |
connectorNotAllowed()
Throws an exception.
|
protected org.dom4j.Document |
connectorRequired()
Throws an exception.
|
org.dom4j.Document |
process()
Starts the actual flow of calling the custom application logic
for this request type.
|
protected abstract org.dom4j.Document |
processWithConnector()
Called when a application connector is defined for the request type.
|
protected abstract org.dom4j.Document |
processWithoutConnector()
Called when no connector is defined for the request type.
|
protected org.dom4j.Document |
runConnector()
Runs the connector defined in connectorConfig.
|
static final java.lang.String COPYRIGHT
protected RequestProcessor requestProcessor
private org.dom4j.Document request
private java.lang.String connectorClassName
private static final java.lang.String CLASSNAME
private static org.apache.log4j.Logger logger
private static B2bRepository config
protected ApplicationConnector(RequestProcessor request)
request
- the incoming requestpublic org.dom4j.Document process() throws B2bException
B2bException
protected abstract org.dom4j.Document processWithConnector() throws B2bException
B2bException
protected org.dom4j.Document runConnector() throws B2bException
B2bException
protected org.dom4j.Document connectorNotAllowed() throws B2bException
B2bException
protected abstract org.dom4j.Document processWithoutConnector() throws B2bException
B2bException
protected org.dom4j.Document connectorRequired() throws B2bException
B2bException