anon.pay.xml
Class XMLPayRequest
java.lang.Object
anon.pay.xml.XMLPayRequest
- All Implemented Interfaces:
- IXMLEncodable
public class XMLPayRequest
- extends java.lang.Object
- implements IXMLEncodable
Datacontainer: This is used by the AI to signal the Jap that it wants a costconfirmation
or a balance certificate signed.
(optional, meaning: Jap should send a XMLBalance)
Timestamp
(optional, meaning: AI wants the Jap to send AccountCert.)
(optional, meaning: AI wants the Jap to sign this CC)
.... XMLEasyCC structure ....
To check if an instance of XMLPayRequest contains a BalanceRequest, AccountRequest or CC, use:
- getBalanceTimestamp != null
- isAccountRequest()
- getCC() != null
- Author:
- Bastian Voigt, Stefan Koepsell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_cc
private XMLEasyCC m_cc
m_balanceNewerThan
private java.sql.Timestamp m_balanceNewerThan
m_bIsAccountRequest
private boolean m_bIsAccountRequest
m_bInitialCCRequest
private boolean m_bInitialCCRequest
prepaidBytes
private int prepaidBytes
XML_ELEMENT_NAME
public static final java.lang.Object XML_ELEMENT_NAME
XMLPayRequest
public XMLPayRequest(java.lang.String xml)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLPayRequest
public XMLPayRequest(byte[] xml)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLPayRequest
public XMLPayRequest(org.w3c.dom.Document doc)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLPayRequest
public XMLPayRequest(org.w3c.dom.Element element)
throws java.lang.Exception
- XMLPayRequest
- Parameters:
element
- Element
- Throws:
java.lang.Exception
setValues
private void setValues(org.w3c.dom.Element elemRoot)
throws java.lang.Exception
- Throws:
java.lang.Exception
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
- Description copied from interface:
IXMLEncodable
- Return an element that can be appended to the document. This
Method must not change the document in any way!
- Specified by:
toXmlElement
in interface IXMLEncodable
- Parameters:
a_doc
- a document
- Returns:
- the interface as xml element
getCC
public XMLEasyCC getCC()
getBalanceTimestamp
public java.sql.Timestamp getBalanceTimestamp()
isAccountRequest
public boolean isAccountRequest()
- isAccountRequest
- Returns:
- boolean
isInitialCCRequest
public boolean isInitialCCRequest()
getPrepaidBytes
public int getPrepaidBytes()