|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.arch.wctp.WctpFactory | +--com.arch.wctp.WctpClientReceive
WctpClientReceive
Contains functionality to work with responses recieved from a WCTP gateway.
This is beta software that is still in development. Use at your own risk.
New from the previous version 1.1 Beta:
* This class now extends WctpFactory
* Both methods used to read server responses have been moved to WctpFactory
* This class now checks for a reply in a ClientQueryResponse using method checkForReply(String)
Copyright 2000-2001 Arch Wireless Holdings, Inc.
Constructor Summary | |
WctpClientReceive()
|
Method Summary | |
java.lang.String |
checkForReply(java.lang.String response)
This method checks a ClientQueryResponse for a reply. |
boolean |
checkIfDelivered(java.lang.String response)
This method checks to see if a message has been delivered. |
boolean |
checkIfQueued(java.lang.String response)
This method checks to see if the message has been queued. |
java.lang.String |
findCode(int wctpCode)
Version 1.1 Error and Success Code definitions |
int |
getResponseCode(java.lang.String inputLine)
Extracts an error or success code from a WCTP packet and gives an appropriate message |
java.lang.String |
getToken(java.lang.String inputLine)
Get's a token from a WCTP packet. |
java.lang.String |
getTrackingCode(java.lang.String inputLine)
Extracts a tracking code from a XML document and gives an appropriate response message. |
Methods inherited from class com.arch.wctp.WctpFactory |
convertAll,
convertAmp,
convertApos,
convertCR,
convertGreaterThan,
convertLessThan,
convertLF,
convertQuote,
getTimestamp,
readByteResponse,
readResponse,
sendWctpPacket,
sendWctpPacket,
sendWctpPacket |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public WctpClientReceive()
Method Detail |
public boolean checkIfDelivered(java.lang.String response)
response
- java.lang.String the entire response XML received from a server.public boolean checkIfQueued(java.lang.String response)
response
- java.lang.String the entire response XML received from a server.public java.lang.String findCode(int wctpCode)
wctpCode
- the wctp codepublic int getResponseCode(java.lang.String inputLine)
inputLine
- an XML document generated by the WCTP gatewaypublic java.lang.String getToken(java.lang.String inputLine)
body
- java.lang.String the entire XML packet received from a server.public java.lang.String getTrackingCode(java.lang.String inputLine)
inputLine
- an XML document generated by the WCTP gatewaypublic java.lang.String checkForReply(java.lang.String response)
response
- java.lang.String the entire response XML received from a server.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |