Class EPPRegistrySystemInfo
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistrySystemInfo
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistrySystemInfo extends java.lang.Object implements EPPCodecComponent
Represents the detailed information of a registry system object. Upon receiving an <info> command, with a <registry:system> element in it, the server puts a <registry:system> element in the response.
Each element in the list contains the following info:- <registry:maxConnections> - The OPTIONAL attribute that contains the maximum number of connections that the client can establish with the registry system.
- <registry:idleTimeout> - The OPTIONAL attribute that contains the
idle timeout for a connection in milliseconds. If a connection does not
receive a command within
idleTimeoutmilliseconds, the server will close the connection. - <registry:absoluteTimeout> - The OPTIONAL attribute that contains
the absolute timeout for a connection in milliseconds. The absolute timeout
represents the maximum duration in milliseconds that a connection can be
established. The server will close a connection that has been established for
more than
millisecondsmilliseconds. - <registry:commandTimeout> - The OPTIONAL attribute that contains
the command timeout for a connection in milliseconds. The server will close a
connection that has an active command that exceeds
commandTimeoutmilliseconds. - <registry:transLimit> - The OPTIONAL attribute that contains the
maximum number of transactions that can be submitted on the connection per
the "perMs" attribute milliseconds. It is up to server policy what to do with
the connection when the client exceeds the
transLimit.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistrySystemInfo.static java.lang.StringELM_NAMEXML root tag forEPPRegistrySystemInfo.
-
Constructor Summary
Constructors Constructor Description EPPRegistrySystemInfo()Default constructor.EPPRegistrySystemInfo(java.lang.Integer aMaxConnections, java.lang.Integer aIdleTimeout, java.lang.Integer aAbsoluteTimeout, java.lang.Integer aCommandTimeout, java.lang.Integer aTransLimit, java.lang.Integer aPerMs)Constructor that takes all registry system attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistrySystemInfo.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistrySystemInfoattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistrySystemInfoinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistrySystemInfocompare.java.lang.IntegergetAbsoluteTimeout()Gets the absolute timeout in milliseconds.java.lang.IntegergetCommandTimeout()Gets the command timeout in milliseconds.java.lang.IntegergetIdleTimeout()Gets the idle timeout in milliseconds.java.lang.IntegergetMaxConnections()Gets the maximum number of connections.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.IntegergetPerMs()Gets the milliseconds that the transaction limit is associated with.java.lang.IntegergetTransLimit()Gets the transaction limit.booleanhasAbsoluteTimeout()Is the absolute timeout set?booleanhasCommandTimeout()Is the command timeout set?booleanhasIdleTimeout()Is the idle timeout set?booleanhasMaxConnections()Is the maximum connections set?booleanhasPerMs()Is the per milliseconds attribute set?booleanhasTransLimit()Is the transaction limit is set?voidsetAbsoluteTimeout(java.lang.Integer aAbsoluteTimeout)Sets the absolute timeout in milliseconds.voidsetCommandTimeout(java.lang.Integer aCommandTimeout)Sets the command timeout in milliseconds.voidsetIdleTimeout(java.lang.Integer aIdleTimeout)Sets the idle timeout in milliseconds.voidsetMaxConnections(java.lang.Integer aMaxConnections)Sets the maximum number of connections.voidsetPerMs(java.lang.Integer aPerMs)Sets the milliseconds that the transaction limit is associated with.voidsetTransLimit(java.lang.Integer aTransLimit)Sets the transaction limit.voidsetTransLimit(java.lang.Integer aTransLimit, java.lang.Integer aPerMs)Sets the transaction limit with theperMsmilliseconds.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistrySystemInfo.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistrySystemInfo.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistrySystemInfo
public EPPRegistrySystemInfo()
Default constructor.
-
EPPRegistrySystemInfo
public EPPRegistrySystemInfo(java.lang.Integer aMaxConnections, java.lang.Integer aIdleTimeout, java.lang.Integer aAbsoluteTimeout, java.lang.Integer aCommandTimeout, java.lang.Integer aTransLimit, java.lang.Integer aPerMs)Constructor that takes all registry system attributes.- Parameters:
aMaxConnections- Maximum number of connections that the client can establish with the registry system. Set tonullif undefined.aIdleTimeout- Idle timeout for a connection in milliseconds. Set tonullif undefined.aAbsoluteTimeout- Absolute timeout for a connection in milliseconds. Set tonullif undefined.aCommandTimeout- Command timeout for a connection in milliseconds. Set tonullif undefined.aTransLimit- Maximum number of transactions that can be submitted on the connection per the "perMs" attribute milliseconds. Set tonullif undefined.aPerMs- Number of milliseconds associated with thetransLimitattribute. Set tonullif undefined.
-
-
Method Detail
-
hasMaxConnections
public boolean hasMaxConnections()
Is the maximum connections set?- Returns:
trueif the maximum connections is defined;falseotherwise.
-
getMaxConnections
public java.lang.Integer getMaxConnections()
Gets the maximum number of connections.- Returns:
- the maximum connections if defined;
nullotherwise.
-
setMaxConnections
public void setMaxConnections(java.lang.Integer aMaxConnections)
Sets the maximum number of connections.- Parameters:
aMaxConnections- the maximum number of connections to set. Set tonullif undefined.
-
hasIdleTimeout
public boolean hasIdleTimeout()
Is the idle timeout set?- Returns:
trueif the idle timeout is defined;falseotherwise.
-
getIdleTimeout
public java.lang.Integer getIdleTimeout()
Gets the idle timeout in milliseconds.- Returns:
- the idle timeout in milliseconds if defined;
nullotherwise.
-
setIdleTimeout
public void setIdleTimeout(java.lang.Integer aIdleTimeout)
Sets the idle timeout in milliseconds.- Parameters:
aIdleTimeout- the idle timeout in milliseconds. Set tonullif undefined.
-
hasAbsoluteTimeout
public boolean hasAbsoluteTimeout()
Is the absolute timeout set?- Returns:
trueif the absolute timeout is defined;falseotherwise.
-
getAbsoluteTimeout
public java.lang.Integer getAbsoluteTimeout()
Gets the absolute timeout in milliseconds.- Returns:
- the absolute timeout in milliseconds if defined;
nullotherwise.
-
setAbsoluteTimeout
public void setAbsoluteTimeout(java.lang.Integer aAbsoluteTimeout)
Sets the absolute timeout in milliseconds.- Parameters:
aAbsoluteTimeout- the absolute timeout in milliseconds to set. Set tonullif undefined.
-
hasCommandTimeout
public boolean hasCommandTimeout()
Is the command timeout set?- Returns:
trueif the command timeout is defined;falseotherwise.
-
getCommandTimeout
public java.lang.Integer getCommandTimeout()
Gets the command timeout in milliseconds.- Returns:
- the command timeout in milliseconds if defined;
nullotherwise.
-
setCommandTimeout
public void setCommandTimeout(java.lang.Integer aCommandTimeout)
Sets the command timeout in milliseconds.- Parameters:
aCommandTimeout- the command timeout to set. Set tonullif undefined.
-
hasTransLimit
public boolean hasTransLimit()
Is the transaction limit is set?- Returns:
trueif the transaction limit is defined;falseotherwise.
-
getTransLimit
public java.lang.Integer getTransLimit()
Gets the transaction limit. If the transaction limit is set, theperMsattribute must be set.- Returns:
- the transaction limit if defined;
nullotherwise.
-
setTransLimit
public void setTransLimit(java.lang.Integer aTransLimit)
Sets the transaction limit. If the transaction limit is set, theperMsattribute must be set.- Parameters:
aTransLimit- the transaction limit to set. Set tonullif undefined.
-
setTransLimit
public void setTransLimit(java.lang.Integer aTransLimit, java.lang.Integer aPerMs)Sets the transaction limit with theperMsmilliseconds.- Parameters:
aTransLimit- the transaction limit to set. Set tonullif undefined.aPerMs- Milliseconds that the transaction limit is associated with. Set tonullif undefined.
-
hasPerMs
public boolean hasPerMs()
Is the per milliseconds attribute set?- Returns:
trueif the per milliseconds attribute is defined;falseotherwise.
-
getPerMs
public java.lang.Integer getPerMs()
Gets the milliseconds that the transaction limit is associated with.- Returns:
- the per milliseconds if defined;
nullotherwise.
-
setPerMs
public void setPerMs(java.lang.Integer aPerMs)
Sets the milliseconds that the transaction limit is associated with.- Parameters:
aPerMs- per milliseconds to set. Set tonullif undefined.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistrySystemInfoinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistrySystemInfoinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistrySystemInfoinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistrySystemInfoattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistrySystemInfofrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistrySystemInfocompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistrySystemInfoinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistrySystemInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistrySystemInfo - 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 classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-