Class EPPHostMapFactory


  • public class EPPHostMapFactory
    extends EPPMapFactory
    EPPHostMapFactory represents the EPPCommand and EPPResponse factory for the EPP Host Mapping with the XML Namespace URI "urn:ietf:params:xmlns:host". The fully qualified class name for EPPHostMapFactory is included in a call to EPPFactory.init or EPPCodec.init.

    See Also:
    EPPCodec, EPPFactory, EPPCommand, EPPResponse
    • Field Detail

      • NS

        public static final java.lang.String NS
        Namespace URI associated with EPPHostMapFactory.
        See Also:
        Constant Field Values
      • NS_PREFIX

        public static final java.lang.String NS_PREFIX
        Namespace prefix associated with EPPHostMapFactory.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EPPHostMapFactory

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

      • createCommand

        public EPPCommand createCommand​(org.w3c.dom.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, <host:create> must be the element passed for a Host 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​(org.w3c.dom.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, <host:info-data> must be the element passed for a Host 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 EPPHostMapFactory. 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 Host Command Mapping.
      • getXmlSchemas

        public java.util.Set getXmlSchemas()
        Gets the list of XML schemas that need to be pre-loaded into the XML Parser.
        Overrides:
        getXmlSchemas in class EPPMapFactory
        Returns:
        Set of String XML Schema names that should be pre-loaded in the XML Parser.
        See Also:
        EPPMapFactory.getXmlSchemas()