public class QueueReadRequest extends Request
Modifier and Type | Field and Description |
---|---|
private Message.Type |
typeLimitation
the requested message type
|
Constructor and Description |
---|
QueueReadRequest()
constructor
|
QueueReadRequest(Message.Type type)
constructor
|
Modifier and Type | Method and Description |
---|---|
QueueReadResponse |
execute(Port port)
execute the this request on the given port.
|
protected java.lang.String |
getActionCode()
return the action string for this request
|
Message.Type |
getTypeLimitation()
return the message type to which the read request is limited
|
protected void |
requestToKVList(KVList list)
method that needs to be implemented by subclasses for the
key-value list conversion
|
protected void |
requestToXml(org.w3c.dom.Node node)
method that needs to be implemented by subclasses for the XML conversion
|
void |
setTypeLimitation(Message.Type type)
set the message type to which the read request shall be limited
|
java.lang.String |
toString()
return a string representation for debugging purposes
|
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml
private Message.Type typeLimitation
public QueueReadRequest()
public QueueReadRequest(Message.Type type)
type
- the type of message to readpublic Message.Type getTypeLimitation()
null
if the request
is not limitedpublic void setTypeLimitation(Message.Type type)
type
- the type or null
if the request
shall not be limitedpublic QueueReadResponse execute(Port port) throws java.io.IOException
protected void requestToXml(org.w3c.dom.Node node) throws org.w3c.dom.DOMException, EncodeException
requestToXml
in class Request
node
- the node where the request shall be added toorg.w3c.dom.DOMException
- on DOM exceptionsEncodeException
- if the encoding fails for some reasonprotected java.lang.String getActionCode()
getActionCode
in class Request
protected void requestToKVList(KVList list) throws EncodeException
requestToKVList
in class Request
list
- the list that has to be filledEncodeException
- if the encoding fails for some reasonCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH