Class EPPRegistryServices
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryServices
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryServices extends java.lang.Object implements EPPCodecComponent
EPP namespace URIs of the objects and object extensions supported by the server based on RFC 5730. TheEPPRegistryServicescontains the following lists:
- One or more object
Strings that contain namespace URIs representing the objects that the server is capable of managing for the zone with the required "required" attribute that defines whether the server requires the use of object represented by the URI. - An optional
EPPRegistryServicesExtobject that contains one or moreStrings that contain namespace URIs representing object extensions support by the server for the zone with the required "required" attribute that defines whether the server requires the use of the object extension represented by the URI.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPRegistryServices.EPPRegistryObjURIObject service URI that includes the URI value and a "required" attribute that indicates whether use of the object service is required.static classEPPRegistryServices.EPPRegistryURIAbstract class that represents an object or extension URI.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryServices.static java.lang.StringELM_NAMEXML root tag forEPPRegistryServices.
-
Constructor Summary
Constructors Constructor Description EPPRegistryServices()Default constructor.EPPRegistryServices(java.util.List<EPPRegistryServices.EPPRegistryObjURI> aObjURIs)Constructor that takes the list of object URIs for the zone.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObjURI(EPPRegistryServices.EPPRegistryObjURI aURI)Adds an object namespace URI to the list of object namespace URIs.java.lang.Objectclone()CloneEPPRegistryServices.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryServicesattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryServicesinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryServicescompare.EPPRegistryServicesExtgetExtension()Gets the extension services.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.List<EPPRegistryServices.EPPRegistryObjURI>getObjURIs()Gets the namespace URIs representing the objects that the server is capable of managing for the zone.voidsetExtension(EPPRegistryServicesExt aExtension)Sets the extension services.voidsetObjURIs(java.util.List<EPPRegistryServices.EPPRegistryObjURI> aObjURIs)Sets the namespace URIs representing the objects that the server is capable of managing for the zone.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 forEPPRegistryServices.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryServices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryServices
public EPPRegistryServices()
Default constructor. At least one object URI must be set prior to callingencode(Document).
-
EPPRegistryServices
public EPPRegistryServices(java.util.List<EPPRegistryServices.EPPRegistryObjURI> aObjURIs)
Constructor that takes the list of object URIs for the zone.- Parameters:
aObjURIs-ListofEPPRegistryServices.EPPRegistryObjURIinstances
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryServicesinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryServicesinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryServicesinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryServicesattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryServicesfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryServicescompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryServicesinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryServices.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryServices - 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.
-
getObjURIs
public java.util.List<EPPRegistryServices.EPPRegistryObjURI> getObjURIs()
Gets the namespace URIs representing the objects that the server is capable of managing for the zone.- Returns:
ListofEPPRegistryServices.EPPRegistryURIinstances.
-
setObjURIs
public void setObjURIs(java.util.List<EPPRegistryServices.EPPRegistryObjURI> aObjURIs)
Sets the namespace URIs representing the objects that the server is capable of managing for the zone.- Parameters:
aObjURIs-ListofEPPRegistryServices.EPPRegistryURIinstances.
-
addObjURI
public void addObjURI(EPPRegistryServices.EPPRegistryObjURI aURI)
Adds an object namespace URI to the list of object namespace URIs.- Parameters:
aURI- URI to add to list
-
getExtension
public EPPRegistryServicesExt getExtension()
Gets the extension services.- Returns:
- Extension services if defined;
nullotherwise.
-
setExtension
public void setExtension(EPPRegistryServicesExt aExtension)
Sets the extension services.- Parameters:
aExtension- Extension services to set.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-