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,Serializable,Cloneable
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:
-
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
ConstructorsConstructorDescriptionDefault constructor for EPPLogoutCmd.EPPLogoutCmd(String aTransId) Constructor that takes the transaction id required of allEPPCommand's. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPLogoutCmd.protected voiddoGenDecode(Element aElement) decodeEPPLogoutCmdfrom a DOM element tree.protected ElementdoGenEncode(Document aDocument) encodeEPPLoginCmdinto a DOM element tree.booleanimplements a deepEPPLogoutCmdcompare.Get the EPP command Namespace associated withEPPLogoutCmd.getType()Get the EPP command type associated withEPPLogoutCmd.toString()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, getKey, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Constructor Details
-
EPPLogoutCmd
public EPPLogoutCmd()Default constructor for EPPLogoutCmd. -
EPPLogoutCmd
Constructor that takes the transaction id required of allEPPCommand's.- Parameters:
aTransId- Client transaction identifier
-
-
Method Details
-
getType
Get the EPP command type associated withEPPLogoutCmd.- Specified by:
getTypein classEPPCommand- Returns:
EPPCommand.TYPE_LOGOUT
-
getNamespace
Get the EPP command Namespace associated withEPPLogoutCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPCodec.NS
-
doGenEncode
encodeEPPLoginCmdinto 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
decodeEPPLogoutCmdfrom 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
implements a deepEPPLogoutCmdcompare.- Overrides:
equalsin classEPPCommand- Parameters:
aObject-EPPLogoutCmdinstance to compare with- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPLogoutCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPLogoutCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-