Class XmlParser
java.lang.Object
XmlParser
- public class XmlParser
- extends java.lang.Object
The XmlParser class is parsing objects to and from XML.
Utilizing the KXML-parser, which is a lightweight xml parser developed for
use on mobile handsets.
- Since:
- May 9, 2007
- Author:
- Håvard Holje
Method Summary |
java.lang.String |
createAuthenticationResponse(java.lang.String userPin)
Creates the xml AuthenticationRequest with user PIN |
UserSession |
getAuthenticationResponse(java.lang.String input)
This method creates a AuthenticationRequest-object from the
xml data parsed from the inputStream |
private void |
readXMLData(org.kxml2.io.KXmlParser parser)
This method parses the xml data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private java.lang.String root
session
private UserSession session
XmlParser
public XmlParser()
getAuthenticationResponse
public UserSession getAuthenticationResponse(java.lang.String input)
- This method creates a AuthenticationRequest-object from the
xml data parsed from the inputStream
- Parameters:
input
-
- Returns:
- AuthenticationRequest
readXMLData
private void readXMLData(org.kxml2.io.KXmlParser parser)
throws java.io.IOException,
org.xmlpull.v1.XmlPullParserException
- This method parses the xml data
- Parameters:
parser
-
- Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException
createAuthenticationResponse
public java.lang.String createAuthenticationResponse(java.lang.String userPin)
- Creates the xml AuthenticationRequest with user PIN
- Parameters:
userPin
-
- Returns:
- String xmlAuthResponse