Class ContactHandler

  • All Implemented Interfaces:
    EPPEventHandler
    Direct Known Subclasses:
    EAIContactHandler

    public class ContactHandler
    extends EPPContactHandler
    The ContactHandler class is a concrete implementation of the abstract com.verisign.epp.framework.EPPContactHandler class. It defines the Server's response to all received EPP Host Commands.

    See Also:
    EPPEvent, EPPEventResponse
    • Constructor Detail

      • ContactHandler

        public ContactHandler()
        Constructs an instance of ContactHandler
    • Method Detail

      • preHandleEvent

        protected void preHandleEvent​(EPPEvent aEvent,
                                      java.lang.Object aData)
                               throws EPPHandleEventException
        Handles any common behavior that all Contact commands need to execute before they execute their command specific behavior.
        Overrides:
        preHandleEvent in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomainHandler This is assumed to be an instance of SessionData here.
        Throws:
        EPPHandleEventException - Thrown if an error condition occurs. It must contain an EPPEventResponse
      • postHandleEvent

        protected void postHandleEvent​(EPPEvent aEvent,
                                       java.lang.Object aData)
                                throws EPPHandleEventException
        Handles any common behavior that all Contact commands need to execute after they execute their command specific behavior.
        Overrides:
        postHandleEvent in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomainHandler
        Throws:
        EPPHandleEventException - Thrown if an error condition occurs. It must contain an EPPEventResponse
      • doContactDelete

        protected EPPEventResponse doContactDelete​(EPPEvent aEvent,
                                                   java.lang.Object aData)
        Invoked when a Contact Delete command is received.
        Specified by:
        doContactDelete in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomaindHandler
        Returns:
        EPPEventResponse The response that should be sent back to the client.
      • doContactCreate

        protected EPPEventResponse doContactCreate​(EPPEvent aEvent,
                                                   java.lang.Object aData)
        Invoked when a Contact Create command is received.
        Specified by:
        doContactCreate in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomaindHandler
        Returns:
        EPPEventResponse The response that should be sent back to the client.
      • doContactUpdate

        protected EPPEventResponse doContactUpdate​(EPPEvent aEvent,
                                                   java.lang.Object aData)
        Invoked when a Contact Update command is received.
        Specified by:
        doContactUpdate in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomaindHandler
        Returns:
        EPPEventResponse The response that should be sent back to the client.
      • doContactInfo

        protected EPPEventResponse doContactInfo​(EPPEvent aEvent,
                                                 java.lang.Object aData)
        Invoked when a Contact Info command is received.
        Specified by:
        doContactInfo in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomaindHandler
        Returns:
        EPPEventResponse The response that should be sent back to the client.
      • getDefaultInfoResponseWithAllElements

        protected EPPContactInfoResp getDefaultInfoResponseWithAllElements​(EPPContactInfoCmd theCommand)
        Creates default RFC compliant contact info response that sets all the mandatory attributes in the response per RFC.
        Parameters:
        theCommand - The contact info command to return the response for.
        Returns:
        contact info response associated with the command
      • getPartialInfoResponseWithAllElements

        protected EPPContactInfoResp getPartialInfoResponseWithAllElements​(EPPContactInfoCmd theCommand)
        Creates relaxed validation compliant contact info response that sets only some of the mandatory attributes per the RFC. The fields required by RFC that are NOT provided include:
        1. name
        2. street
        3. city
        Parameters:
        theCommand - The contact info command to return the response for.
        Returns:
        contact info response associated with the command
      • getMinimalInfoResponseWithAllElements

        protected EPPContactInfoResp getMinimalInfoResponseWithAllElements​(EPPContactInfoCmd theCommand)
        Creates relaxed validation compliant contact info response that sets the minimum set of attributes. The fields required by RFC that are NOT provided include:
        1. name
        2. street
        3. city
        4. country
        5. e-mail
        Parameters:
        theCommand - The contact info command to return the response for.
        Returns:
        contact info response associated with the command
      • doContactTransfer

        protected EPPEventResponse doContactTransfer​(EPPEvent aEvent,
                                                     java.lang.Object aData)
        Invoked when a Contact Transfer command is received.
        Specified by:
        doContactTransfer in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomaindHandler
        Returns:
        EPPEventResponse The response that should be sent back to the client.
      • doContactCheck

        protected EPPEventResponse doContactCheck​(EPPEvent aEvent,
                                                  java.lang.Object aData)
        Invoked when a Contact Check command is received.
        Specified by:
        doContactCheck in class EPPContactHandler
        Parameters:
        aEvent - The EPPEvent that is being handled
        aData - Any data that a Server needs to send to this EPPDomaindHandler
        Returns:
        EPPEventResponse The response that should be sent back to the client.