org.marre.sms.transport.pswincom
Class PsWinXmlResponseParser

java.lang.Object
  extended byorg.marre.sms.transport.pswincom.PsWinXmlResponseParser

public class PsWinXmlResponseParser
extends java.lang.Object

Parses the response from PsWin. Uses a DOM parser internally. Currently only looking at the LOGIN result. TODO: Rewrite to use SAX instead. We aren't really intrested in the tree structure...

Version:
$Id: PsWinXmlResponseParser.java,v 1.2 2005/11/26 16:24:23 c95men Exp $
Author:
Markus

Field Summary
protected  org.w3c.dom.Document respDoc_
           
protected  java.io.InputStream xmlInputStream_
           
 
Constructor Summary
PsWinXmlResponseParser(java.io.InputStream xmlInputStream)
          Creates the response parser.
 
Method Summary
 java.lang.String getLogon()
          Returns the logon result.
 java.lang.String getReason()
          Returns the reason result.
protected  java.lang.String getText(org.w3c.dom.Node node)
          Returns the text within the given node.
 void parse()
          Parses the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlInputStream_

protected java.io.InputStream xmlInputStream_

respDoc_

protected org.w3c.dom.Document respDoc_
Constructor Detail

PsWinXmlResponseParser

public PsWinXmlResponseParser(java.io.InputStream xmlInputStream)
Creates the response parser.

Parameters:
xmlInputStream -
Method Detail

parse

public void parse()
           throws java.io.IOException,
                  SmsException
Parses the response.

Throws:
java.io.IOException
SmsException

getLogon

public java.lang.String getLogon()
Returns the logon result.

Returns:

getReason

public java.lang.String getReason()
Returns the reason result.

Returns:

getText

protected java.lang.String getText(org.w3c.dom.Node node)
Returns the text within the given node.

Parameters:
node -
Returns:


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.