|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.sms.transport.pswincom.PsWinXmlResponseParser
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...
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 |
protected java.io.InputStream xmlInputStream_
protected org.w3c.dom.Document respDoc_
Constructor Detail |
public PsWinXmlResponseParser(java.io.InputStream xmlInputStream)
xmlInputStream
- Method Detail |
public void parse() throws java.io.IOException, SmsException
java.io.IOException
SmsException
public java.lang.String getLogon()
public java.lang.String getReason()
protected java.lang.String getText(org.w3c.dom.Node node)
node
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |