public class ConnectorParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CLASSNAME |
(package private) static java.lang.String |
COPYRIGHT |
private static org.apache.log4j.Logger |
logger |
private org.dom4j.Document |
requestDocument |
protected ResponseDocument |
responseDocument |
private java.lang.String |
user |
Constructor and Description |
---|
ConnectorParameters(RequestProcessor requestProcessor)
Encapsulates the incoming request and a shell representing the
outgoing result.
|
Modifier and Type | Method and Description |
---|---|
org.dom4j.Element |
addOutputField(java.lang.String parentNode,
java.lang.String fieldName)
Creates an output node
|
java.lang.String |
getInputField(java.lang.String fieldName)
Returns the text value of the node, or the attribute value as a string.
|
java.util.List |
getInputFieldList(java.lang.String fieldName)
Returns a list of nodes with the specified name criteria
|
org.dom4j.Node |
getOutputField(java.lang.String fieldName)
Returns the first node that matches the input, or null if no matches.
|
java.util.List |
getOutputFieldList(java.lang.String fieldName)
Returns a list of nodes with the specified name criteria
|
java.lang.String |
getUser() |
static final java.lang.String COPYRIGHT
private static final java.lang.String CLASSNAME
private static org.apache.log4j.Logger logger
private org.dom4j.Document requestDocument
protected ResponseDocument responseDocument
private java.lang.String user
public ConnectorParameters(RequestProcessor requestProcessor) throws java.lang.Exception
requestProcessor
- java.lang.Exception
- if there is an error creating the response documentpublic java.util.List getInputFieldList(java.lang.String fieldName)
fieldName
- an XPath representation of the input fields to returnpublic java.lang.String getInputField(java.lang.String fieldName)
fieldName
- an XPath representation of the input field or
parameter to returnpublic java.util.List getOutputFieldList(java.lang.String fieldName)
fieldName
- an XPath representation of the output fields to returnpublic org.dom4j.Node getOutputField(java.lang.String fieldName)
fieldName
- an XPath representation of the input field or
parameter to returnpublic org.dom4j.Element addOutputField(java.lang.String parentNode, java.lang.String fieldName)
parentNode
- Node the new node will reside within.fieldName
- Name of the new XML node.public java.lang.String getUser()