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.Objectclone()CloneEPPLogoutCmd.protected voiddoGenDecode(org.w3c.dom.Element aElement)decodeEPPLogoutCmdfrom a DOM element tree.protected org.w3c.dom.ElementdoGenEncode(org.w3c.dom.Document aDocument)encodeEPPLoginCmdinto a DOM element tree.booleanequals(java.lang.Object aObject)implements a deepEPPLogoutCmdcompare.java.lang.StringgetNamespace()Get the EPP command Namespace associated withEPPLogoutCmd.java.lang.StringgetType()Get the EPP command type associated withEPPLogoutCmd.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation 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:
getTypein classEPPCommand- Returns:
EPPCommand.TYPE_LOGOUT
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPLogoutCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPCodec.NS
-
doGenEncode
protected org.w3c.dom.Element doGenEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionencodeEPPLoginCmdinto 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, whereEPPCommandprovides the publicencodeand calls the abstractdoGenEncode.- Specified by:
doGenEncodein 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 EPPDecodeExceptiondecodeEPPLogoutCmdfrom a DOM element tree. The "logout" element needs to be the value of theaElementargument. This method is part of the Template Design Pattern, whereEPPCommandprovides the publicdecodeand calls the abstractdoGenDecode.- Specified by:
doGenDecodein 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 deepEPPLogoutCmdcompare.- Overrides:
equalsin classEPPCommand- Parameters:
aObject-EPPLogoutCmdinstance to compare with- Returns:
trueif equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPLogoutCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-