Class DefaultResponseElement
java.lang.Object
org.kopi.ebics.xml.DefaultEbicsRootElement
org.kopi.ebics.xml.DefaultResponseElement
- All Implemented Interfaces:
Serializable, EbicsElement, EbicsRootElement
- Direct Known Subclasses:
HPBResponseOrderDataElement, InitializationResponseElement, KeyManagementResponseElement, ReceiptResponseElement, SPRResponseElement, TransferResponseElement
The
DefaultResponseElement is the common element for
all ebics server responses.- See Also:
-
Field Summary
FieldsFields inherited from class DefaultEbicsRootElement
document, session -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultResponseElement(ContentFactory factory, String name) Constructs a new ebics response element. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckReturnCode(ReturnCode returnCode) getName()Returns the name of thisEbicsElementprotected <T extends org.apache.xmlbeans.XmlObject>
Tparse(ContentFactory factory, org.apache.xmlbeans.impl.schema.DocumentFactory<T> documentFactory) Parses the content of aContentFactoryvoidreport()Reports the return code to the user.Methods inherited from class DefaultEbicsRootElement
addNamespaceDecl, generateName, generateName, insertSchemaLocation, prettyPrint, print, save, setSaveSuggestedPrefixes, toByteArray, toPrettyString, toString, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface EbicsElement
build
-
Field Details
-
factory
-
returnCode
-
-
Constructor Details
-
DefaultResponseElement
Constructs a new ebics response element.- Parameters:
factory- the content factory containing the response.name- the element name
-
-
Method Details
-
parse
protected <T extends org.apache.xmlbeans.XmlObject> T parse(ContentFactory factory, org.apache.xmlbeans.impl.schema.DocumentFactory<T> documentFactory) throws EbicsException Parses the content of aContentFactory- Parameters:
factory- the content factory- Returns:
- the parsed document
- Throws:
EbicsException- parse error
-
report
Reports the return code to the user.- Throws:
EbicsException- request fails.
-
checkReturnCode
- Throws:
EbicsException
-
getName
Description copied from interface:EbicsElementReturns the name of thisEbicsElement- Returns:
- the name of the element
-