Package com.verisign.epp.codec.gen
Class EPPLogoutCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPLogoutCmd
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPMessage
,java.io.Serializable
,java.lang.Cloneable
public class EPPLogoutCmd extends EPPCommand
The EPP <logout> command is used to end a session with an EPP server. In addition to the standard EPP command elements, the <logout> command SHALL contain an empty <logout> command element. A server MAY also end a session asynchronously due to client inactivity or excessive client session longevity. The parameters for determining excessive client inactivity or session longevity are a matter of server policy and are not specified by this protocol.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE
-
-
Constructor Summary
Constructors Constructor Description EPPLogoutCmd()
Default constructor for EPPLogoutCmd.EPPLogoutCmd(java.lang.String aTransId)
Constructor that takes the transaction id required of allEPPCommand
's.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPLogoutCmd
.protected void
doGenDecode(org.w3c.dom.Element aElement)
decodeEPPLogoutCmd
from a DOM element tree.protected org.w3c.dom.Element
doGenEncode(org.w3c.dom.Document aDocument)
encodeEPPLoginCmd
into a DOM element tree.boolean
equals(java.lang.Object aObject)
implements a deepEPPLogoutCmd
compare.java.lang.String
getNamespace()
Get the EPP command Namespace associated withEPPLogoutCmd
.java.lang.String
getType()
Get the EPP command type associated withEPPLogoutCmd
.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the EPP command type associated withEPPLogoutCmd
.- Specified by:
getType
in classEPPCommand
- Returns:
EPPCommand.TYPE_LOGOUT
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPLogoutCmd
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Specified by:
getNamespace
in classEPPCommand
- Returns:
EPPCodec.NS
-
doGenEncode
protected org.w3c.dom.Element doGenEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encodeEPPLoginCmd
into a DOM element tree. The <logout> element is created and there are currently no attribute nodes are appended as children. This method is part of the Template Design Pattern, whereEPPCommand
provides the publicencode
and calls the abstractdoGenEncode
.- Specified by:
doGenEncode
in classEPPCommand
- Parameters:
aDocument
- DOM Document to create elements from- Returns:
- <logout> root element tree.
- Throws:
EPPEncodeException
- Error encoding the DOM element tree.
-
doGenDecode
protected void doGenDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
decodeEPPLogoutCmd
from a DOM element tree. The "logout" element needs to be the value of theaElement
argument. This method is part of the Template Design Pattern, whereEPPCommand
provides the publicdecode
and calls the abstractdoGenDecode
.- Specified by:
doGenDecode
in classEPPCommand
- Parameters:
aElement
- <logout> root element tree.- Throws:
EPPDecodeException
- Error decoding the DOM element tree.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLogoutCmd
compare.- Overrides:
equals
in classEPPCommand
- Parameters:
aObject
-EPPLogoutCmd
instance to compare with- Returns:
true
if equal;false
otherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPLogoutCmd
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPCommand
- Returns:
- clone of
EPPLogoutCmd
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPCommand
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
-