Package com.verisign.epp.codec.gen
Class EPPMsgQueue
java.lang.Object
com.verisign.epp.codec.gen.EPPMsgQueue
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPMsgQueue describes messages queued for client retrieval. A
<msgQ> element MUST NOT be present if there are no messages queued for
client retrieval. A <msgQ> element MAY be present in responses to EPP
commands other than the <pol> command if messages are queued for
retrieval. A <msgQ> element MUST be present in responses to the EPP
<poll> command if messages are queued for retrieval. The <msgQ>
element contains the following attributes: - A "count" attribute that describes the number of messages that exist in the queue.
- An "id" attribute used to uniquely identify the message at the head of the queue.
- A <qDate> element that contains the date and time that the message was enqueued.
- A <msg> element containing a human-readable message. The language of the response is identified via an OPTIONAL "lang" attribute. If not specified, the default attribute value MUST be "en" (English). This element MAY contain XML content for formatting purposes, but the XML content is not specified by the protocol and will thus not be processed for validity.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required for serialization.EPPMsgQueue(Long aCount, String aId) Allocates a newEPPMsgQueuewith the required attributes.EPPMsgQueue(Long aCount, String aId, Date aQDate, String aMsg) Allocates a newEPPMsgQueuewith all of the attributes.EPPMsgQueue(Long aCount, String aId, Date aQDate, NodeList aMsgNodeList) Allocates a newEPPMsgQueuewith all of the attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPMsgQueue.voiddecodeEPPMsgQueuefrom a DOM element tree.encodeEPPMsgQueueinto a DOM element tree.booleanimplements a deepEPPMsgQueuecompare.getCount()Gets the number of messages that exist in the queue.getId()Gets the id that uniquely identifies the message at the head of the queue.getLang()Gets the message language.getMsg()Gets the optional human-readable message.Gets the message DOMNodeListrepresenting mixed XML content for the message.Returns the XML namespace associated with theEPPCodecComponent.getQDate()Gets the optional date and time that the message was enqueued.voidSets the number of messages that exist in the queue.voidGets the id that uniquely identifies the message at the head of the queue.voidSets the message language.voidSets the optional human-readable message.voidsetMsgNodeList(NodeList aMsgNodeList) Sets the message DOMNodeListrepresenting mixed XML content for the message.voidSets the optional date and time that the message was enqueued.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
DEFAULT_LANG
The default language of the reason "en".- See Also:
-
-
Constructor Details
-
EPPMsgQueue
public EPPMsgQueue()Default constructor required for serialization. Thecountandidattributes must be set before callingencode. -
EPPMsgQueue
Allocates a newEPPMsgQueuewith the required attributes. The optional attributes are initialized tonull.- Parameters:
aCount- The number of messages that exist in the queueaId- uniquely identify the message at the head of the queue
-
EPPMsgQueue
Allocates a newEPPMsgQueuewith all of the attributes.- Parameters:
aCount- The number of messages that exist in the queueaId- uniquely identify the message at the head of the queueaQDate- date and time that the message was enqueuedaMsg- human-readable message. The language defaults toDEFAULT_LANG, but can be set withsetLang(String).
-
EPPMsgQueue
Allocates a newEPPMsgQueuewith all of the attributes.- Parameters:
aCount- The number of messages that exist in the queueaId- uniquely identify the message at the head of the queueaQDate- date and time that the message was enqueuedaMsgNodeList- Mixed XML content for the message.
-
-
Method Details
-
getCount
Gets the number of messages that exist in the queue.- Returns:
- Number of messages in the queue
-
setCount
Sets the number of messages that exist in the queue.- Parameters:
aCount- Number of messages in the queue
-
getId
Gets the id that uniquely identifies the message at the head of the queue.- Returns:
- id for message
-
setId
Gets the id that uniquely identifies the message at the head of the queue.- Parameters:
aId- Message id
-
getQDate
Gets the optional date and time that the message was enqueued.- Returns:
- Date and time that the message was enqueued if defined;
nullotherwise.
-
setQDate
Sets the optional date and time that the message was enqueued.- Parameters:
aDate- The date and time that the message was enqueued
-
getLang
Gets the message language. The Language must be structured as documented in [RFC1766].- Returns:
- Language of the message, with the default of
DEFAULT_LANG.
-
setLang
Sets the message language. The Language must be structured as documented in [RFC1766].- Parameters:
aLang- Language of the message.
-
getMsg
Gets the optional human-readable message. The language defaults toDEFAULT_LANG, but the value can be retrieved with thegetLang()method.- Returns:
- the human-readable message if defined;
nullotherwise.
-
setMsg
Sets the optional human-readable message. The language defaults toDEFAULT_LANG, but can be set with thesetLang(String)method.- Parameters:
aMsg- human-readable message
-
getMsgNodeList
Gets the message DOMNodeListrepresenting mixed XML content for the message. This is an alternative to using a simpleStringfor the message.- Returns:
- Message
NodeListif defined;nullotherwise
-
setMsgNodeList
Sets the message DOMNodeListrepresenting mixed XML content for the message. This is an alternative to using a simpleStringfor the message.- Parameters:
aMsgNodeList-NodeListcontaining mixed XML content
-
encode
encodeEPPMsgQueueinto a DOM element tree.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- Factory for DOM components- Returns:
- <extValue> root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPMsgQueuefrom a DOM element tree. TheaElementargument needs to be the "extValue" element.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The "extValue" XML element.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPMsgQueuecompare. -
clone
CloneEPPMsgQueue.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- Deep copy clone of
EPPMsgQueue - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-