Class EPPTestGenMapFactory

java.lang.Object
com.verisign.epp.codec.gen.EPPMapFactory
com.verisign.epp.codec.gen.EPPTestGenMapFactory

public class EPPTestGenMapFactory extends EPPMapFactory
EPPTestGenMapFactory is a test map factory used to test the general (gen) EPP package. The fully qualified class name for EPPTestGenMapFactory is included in a call to EPPFactory.init or EPPCodec.init.

See Also:
  • Field Details

  • Constructor Details

    • EPPTestGenMapFactory

      public EPPTestGenMapFactory()
      Allocates a new EPPTestGenMapFactory. The service attribute will be initialized with the XML namespace information defined by the EPPTestGenMapFactory constants:
      • NS_PREFIX Namespace prefix of EPPTestGenMapFactory
      • NS Namespace URI of EPPTestGenMapFactory
      • NS_SCHEMA Namespace schema reference of EPPTestGenMapFactory
  • Method Details

    • createCommand

      public EPPCommand createCommand(Element aMapElement) throws EPPCodecException
      creates a concrete EPPCommand from the passed in XML Element tree. aMapElement must be the root node for the command extension. For example, <domain:create> must be the element passed for a Domain Create Command.
      Specified by:
      createCommand in class EPPMapFactory
      Parameters:
      aMapElement - Mapping Extension EPP XML Element.
      Returns:
      Concrete EPPCommand instance associated with aMapElement.
      Throws:
      EPPCodecException - Error creating concrete EPPCommand
    • createResponse

      public EPPResponse createResponse(Element aMapElement) throws EPPCodecException
      creates a concrete EPPResponse from the passed in XML Element tree. aMapElement must be the root node for the command extension. For example, <domain:info-data> must be the element passed for a Domain Info Response.
      Specified by:
      createResponse in class EPPMapFactory
      Parameters:
      aMapElement - Mapping Extension EPP XML Element.
      Returns:
      Concrete EPPResponse instance associated with aMapElement.
      Throws:
      EPPCodecException - Error creating concrete EPPResponse
    • getService

      public EPPService getService()
      Gets the EPPService associated with EPPTestGenMapFactory. The EPPService is used by EPPFactory for distributing the responsibility of creating concrete EPPCommand and EPPResponse objects by XML namespace. The XML namespace is defined in the returned EPPService.
      Specified by:
      getService in class EPPMapFactory
      Returns:
      service description for the Domain Command Mapping.