Class EPPRegistrySystemInfo
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistrySystemInfo
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistrySystemInfo.voidDecode theEPPRegistrySystemInfoattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistrySystemInfoinstance.booleanimplements a deepEPPRegistrySystemInfocompare.Gets the absolute timeout in milliseconds.Gets the command timeout in milliseconds.Gets the idle timeout in milliseconds.Gets the maximum number of connections.Returns the XML namespace associated with theEPPCodecComponent.getPerMs()Gets the milliseconds that the transaction limit is associated with.Gets the transaction limit.booleanIs the absolute timeout set?booleanIs the command timeout set?booleanIs the idle timeout set?booleanIs the maximum connections set?booleanhasPerMs()Is the per milliseconds attribute set?booleanIs the transaction limit is set?voidsetAbsoluteTimeout(Integer aAbsoluteTimeout) Sets the absolute timeout in milliseconds.voidsetCommandTimeout(Integer aCommandTimeout) Sets the command timeout in milliseconds.voidsetIdleTimeout(Integer aIdleTimeout) Sets the idle timeout in milliseconds.voidsetMaxConnections(Integer aMaxConnections) Sets the maximum number of connections.voidSets the milliseconds that the transaction limit is associated with.voidsetTransLimit(Integer aTransLimit) Sets the transaction limit.voidsetTransLimit(Integer aTransLimit, Integer aPerMs) Sets the transaction limit with theperMsmilliseconds.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistrySystemInfo.- See Also:
-
ELM_NAME
XML root tag forEPPRegistrySystemInfo.- See Also:
-
-
Constructor Details
-
EPPRegistrySystemInfo
public EPPRegistrySystemInfo()Default constructor. -
EPPRegistrySystemInfo
public EPPRegistrySystemInfo(Integer aMaxConnections, Integer aIdleTimeout, Integer aAbsoluteTimeout, Integer aCommandTimeout, Integer aTransLimit, 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 Details
-
hasMaxConnections
public boolean hasMaxConnections()Is the maximum connections set?- Returns:
trueif the maximum connections is defined;falseotherwise.
-
getMaxConnections
Gets the maximum number of connections.- Returns:
- the maximum connections if defined;
nullotherwise.
-
setMaxConnections
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
Gets the idle timeout in milliseconds.- Returns:
- the idle timeout in milliseconds if defined;
nullotherwise.
-
setIdleTimeout
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
Gets the absolute timeout in milliseconds.- Returns:
- the absolute timeout in milliseconds if defined;
nullotherwise.
-
setAbsoluteTimeout
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
Gets the command timeout in milliseconds.- Returns:
- the command timeout in milliseconds if defined;
nullotherwise.
-
setCommandTimeout
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
Gets the transaction limit. If the transaction limit is set, theperMsattribute must be set.- Returns:
- the transaction limit if defined;
nullotherwise.
-
setTransLimit
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
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
Gets the milliseconds that the transaction limit is associated with.- Returns:
- the per milliseconds if defined;
nullotherwise.
-
setPerMs
Sets the milliseconds that the transaction limit is associated with.- Parameters:
aPerMs- per milliseconds to set. Set tonullif undefined.
-
encode
Encode 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
Decode 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
implements a deepEPPRegistrySystemInfocompare. -
clone
CloneEPPRegistrySystemInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistrySystemInfo - 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.
-