|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.response.Response
de.knipp.rritoolkit.response.QueueReadResponse
public class QueueReadResponse
response of a queue read request
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.knipp.rritoolkit.response.Response |
---|
Response.Result |
Field Summary | |
---|---|
private Message |
message
the read message, if any |
private int |
messageCount
the number of elements in the queue |
Constructor Summary | |
---|---|
QueueReadResponse()
|
Method Summary | |
---|---|
void |
accept(ResponseVisitor visitor)
calls the suitable method of the given visitor |
protected void |
dataFromList(KVMultiList list)
subclasses that need to read additional data from the key-value pair response should override this method. |
protected void |
dataFromXml(org.w3c.dom.Element data)
subclasses that need to read additional data from the XML response should override this method. |
Message |
getMessage()
return the retrieved message |
int |
getMessageCount()
return the number of messages in the queue |
java.lang.String |
toString()
returns a string representation for debugging purposes |
Methods inherited from class de.knipp.rritoolkit.response.Response |
---|
fromList, fromXml, getClientTxnID, getResult, getResultMessages, getServerTxnID, isSuccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int messageCount
private Message message
Constructor Detail |
---|
public QueueReadResponse()
Method Detail |
---|
protected void dataFromList(KVMultiList list) throws ResponseParseException
dataFromList
in class Response
list
- the list
ResponseParseException
- if the document does not contain the
expected contentprotected void dataFromXml(org.w3c.dom.Element data) throws org.w3c.dom.DOMException, ResponseParseException
dataFromXml
in class Response
data
- the data element or null
if the data contains no additional data
org.w3c.dom.DOMException
- on DOM exceptions
ResponseParseException
- if the document does not contain the
expected contentpublic void accept(ResponseVisitor visitor)
accept
in class Response
visitor
- the visitorpublic java.lang.String toString()
toString
in class Response
public int getMessageCount()
public Message getMessage()
null
if no message is
in the queue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |