Class TransferRequestElement
java.lang.Object
org.kopi.ebics.xml.DefaultEbicsRootElement
org.kopi.ebics.xml.TransferRequestElement
- All Implemented Interfaces:
Serializable, EbicsElement, EbicsRootElement
- Direct Known Subclasses:
DownloadTransferRequestElement, UploadTransferRequestElement
The
TransferRequestElement is the common root element
for all ebics transfer for the bank server.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected byte[]Fields inherited from class DefaultEbicsRootElement
document, session -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransferRequestElement(EbicsSession session, String name, EbicsOrderType type, int segmentNumber, boolean lastSegment, byte[] transactionId) Constructs a newTransferRequestElementelement. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()Builds theEbicsElementXML fragmentabstract voidBuilds the transfer request.byte[]Returns the digest value of the authenticated XML portions.getName()Returns the name of thisEbicsElementReturns the order type of the element.byte[]Converts theEbicsElementto a byte arrayMethods inherited from class DefaultEbicsRootElement
addNamespaceDecl, generateName, generateName, insertSchemaLocation, prettyPrint, print, save, setSaveSuggestedPrefixes, toPrettyString, toString, validate
-
Field Details
-
segmentNumber
protected int segmentNumber -
lastSegment
protected boolean lastSegment -
transactionId
protected byte[] transactionId
-
-
Constructor Details
-
TransferRequestElement
protected TransferRequestElement(EbicsSession session, String name, EbicsOrderType type, int segmentNumber, boolean lastSegment, byte[] transactionId) Constructs a newTransferRequestElementelement.- Parameters:
session- the current ebics sessionname- the element nametype- the order typesegmentNumber- the segment number to be sentlastSegment- is it the last segment?transactionId- the transaction ID
-
-
Method Details
-
build
Description copied from interface:EbicsElementBuilds theEbicsElementXML fragment- Throws:
EbicsException
-
getName
Description copied from interface:EbicsElementReturns the name of thisEbicsElement- Returns:
- the name of the element
-
getDigest
Returns the digest value of the authenticated XML portions.- Returns:
- the digest value.
- Throws:
EbicsException- Failed to retrieve the digest value.
-
getOrderType
Returns the order type of the element.- Returns:
- the order type element.
-
toByteArray
public byte[] toByteArray()Description copied from interface:EbicsRootElementConverts theEbicsElementto a byte array- Specified by:
toByteArrayin interfaceEbicsRootElement- Overrides:
toByteArrayin classDefaultEbicsRootElement- Returns:
- the equivalent byte array of this
EbicsElement
-
buildTransfer
Builds the transfer request.- Throws:
EbicsException
-