anon.pay.xml
Class XMLPayRequest

java.lang.Object
  extended by 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:

Author:
Bastian Voigt, Stefan Koepsell

Field Summary
private  java.sql.Timestamp m_balanceNewerThan
           
private  boolean m_bInitialCCRequest
           
private  boolean m_bIsAccountRequest
           
private  XMLEasyCC m_cc
           
private  int prepaidBytes
           
static java.lang.Object XML_ELEMENT_NAME
           
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
 
Constructor Summary
XMLPayRequest(byte[] xml)
           
XMLPayRequest(org.w3c.dom.Document doc)
           
XMLPayRequest(org.w3c.dom.Element element)
          XMLPayRequest
XMLPayRequest(java.lang.String xml)
           
 
Method Summary
 java.sql.Timestamp getBalanceTimestamp()
           
 XMLEasyCC getCC()
           
 int getPrepaidBytes()
           
 boolean isAccountRequest()
          isAccountRequest
 boolean isInitialCCRequest()
           
private  void setValues(org.w3c.dom.Element elemRoot)
           
 org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
          Return an element that can be appended to the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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()