Package com.verisign.epp.codec.gen
Class EPPTransId
java.lang.Object
com.verisign.epp.codec.gen.EPPTransId
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a <trID> element of a response, which uniquely identifies a
transaction. A transaction identifier SHALL include the following child
elements:
-
An optional <clTRID> element that mirrors the optional <clID> element
in the command. Use
getClientTransIdandsetClientTransIdto get and set the element.hasClientTransIdcan be used to determine if the element exists. -
A <svTRID> element that is generated by the EPP Server that uniquely
identifies the server transaction. Use
getServerTransIdandsetServerTransIdto get and set the element.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum transaction id length.static final intMinimum transaction id length. -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPTransIdwithnulldefault attribute values.EPPTransId(String aServerTransId) Allocates a newEPPTransIdwith just a server transaction id specified.EPPTransId(String aClientTransId, String aServerTransId) Allocates a newEPPTransIdwith both the client transaction id and the server transaction id specified.EPPTransId(String aRootNS, String aRootName, String aClientTransId, String aServerTransId) Allocates a newEPPTransIdwith both the client transaction id and the server transaction id specified along with a specific root tag name. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPTransId.voiddecodeEPPTransIdfrom a DOM element tree.encodeEPPTransIdinto a DOM element tree.booleanimplements a deepEPPTransIdcompare.Gets the client specified transaction id.Returns the XML namespace associated with theEPPCodecComponent.Gets the root tag such as domain or host specific tags.Gets the root element XML namespace URI.Gets the server generated transaction id.voidsetClientTransId(String aClientTransId) Sets the client specified transaction id.voidsetRootName(String aRootNS, String aRootName) Sets the root tag such as domain or host specific tags.voidsetServerTransId(String aServerTransId) Sets the server generated transaction id.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
MIN_TRANSID_LEN
public static final int MIN_TRANSID_LENMinimum transaction id length.- See Also:
-
MAX_TRANSID_LEN
public static final int MAX_TRANSID_LENMaximum transaction id length.- See Also:
-
-
Constructor Details
-
EPPTransId
public EPPTransId()Allocates a newEPPTransIdwithnulldefault attribute values. The server transaction id must be set before callingencode. -
EPPTransId
Allocates a newEPPTransIdwith just a server transaction id specified.- Parameters:
aServerTransId- Server generated transaction id that uniquely identifies the transaction.
-
EPPTransId
Allocates a newEPPTransIdwith both the client transaction id and the server transaction id specified.- Parameters:
aClientTransId- Client specified transaction id contained in an EPP command.aServerTransId- Server generated transaction id that uniquely identifies the transaction.
-
EPPTransId
Allocates a newEPPTransIdwith both the client transaction id and the server transaction id specified along with a specific root tag name.- Parameters:
aRootNS- Root element namespace URIaRootName- Root element of trans id.aClientTransId- Client specified transaction id contained in an EPP command.aServerTransId- Server generated transaction id that uniquely identifies the transaction.
-
-
Method Details
-
getRootNS
Gets the root element XML namespace URI.- Returns:
- root element XML namespace URI
-
getRootName
Gets the root tag such as domain or host specific tags. The default value is set toELM_NAME.- Returns:
- The root tag used.
-
setRootName
Sets the root tag such as domain or host specific tags.- Parameters:
aRootNS- Namespace URI for the root tagaRootName- Sets the root tag
-
getClientTransId
Gets the client specified transaction id.- Returns:
- the client specified transaction id
Stringif defined;nullotherwise.
-
setClientTransId
Sets the client specified transaction id.- Parameters:
aClientTransId- the client specified transaction id.
-
getServerTransId
Gets the server generated transaction id.- Returns:
- the server generated transaction id
Stringif defined;nullotherwise.
-
setServerTransId
Sets the server generated transaction id.- Parameters:
aServerTransId- the server generated transaction id.
-
encode
encodeEPPTransIdinto a DOM element tree. The <trID> or the element name set withsetRootNameis creates and the attribute nodes are appended as children.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOCUMENT ME!- Returns:
- <trID> root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPTransIdfrom a DOM element tree. TheaElementargument needs to be the "trID" element, or an element that conforms to the XML structure of "trID".- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The "trID" XML element.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPTransIdcompare. -
clone
CloneEPPTransId.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- Deep copy clone of
EPPTransId - 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.
-