Class EPPRegistryServices

java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryServices
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRegistryServices extends Object implements EPPCodecComponent
EPP namespace URIs of the objects and object extensions supported by the server based on RFC 5730. The EPPRegistryServices contains 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 EPPRegistryServicesExt object that contains one or more Strings 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:
  • Field Details

  • Constructor Details

  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRegistryServices instance.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element Root DOM Element representing the EPPRegistryServices instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPRegistryServices instance.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPRegistryServices attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root DOM Element to decode EPPRegistryServices from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPRegistryServices compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistryServices instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPRegistryServices.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPRegistryServices
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getObjURIs

      Gets the namespace URIs representing the objects that the server is capable of managing for the zone.
      Returns:
      List of EPPRegistryServices.EPPRegistryURI instances.
    • setObjURIs

      public void setObjURIs(List<EPPRegistryServices.EPPRegistryObjURI> aObjURIs)
      Sets the namespace URIs representing the objects that the server is capable of managing for the zone.
      Parameters:
      aObjURIs - List of EPPRegistryServices.EPPRegistryURI instances.
    • 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; null otherwise.
    • setExtension

      public void setExtension(EPPRegistryServicesExt aExtension)
      Sets the extension services.
      Parameters:
      aExtension - Extension services to set.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.