Class HostHandler

java.lang.Object
com.verisign.epp.framework.EPPHostHandler
com.verisign.epp.serverstub.HostHandler
All Implemented Interfaces:
EPPEventHandler
Direct Known Subclasses:
NamestoreExtHostHandler, RZHostHandler, TtlHostHandler

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

See Also:
  • Constructor Details

    • HostHandler

      public HostHandler()
      Create an instance of HostHandler
  • Method Details

    • preHandleEvent

      protected void preHandleEvent(EPPEvent aEvent, Object aData) throws EPPHandleEventException
      Handles any common behavior that all Host commands need to execute before they execute their command specific behavior.
      Overrides:
      preHandleEvent in class EPPHostHandler
      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, Object aData) throws EPPHandleEventException
      Handles any common behavior that all Host commands need to execute after they execute their command specific behavior.
      Overrides:
      postHandleEvent in class EPPHostHandler
      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
    • doHostUpdate

      protected EPPEventResponse doHostUpdate(EPPEvent aEvent, Object aData)
      Invoked when a Host Update command is received.
      Specified by:
      doHostUpdate in class EPPHostHandler
      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.
    • doHostInfo

      protected EPPEventResponse doHostInfo(EPPEvent aEvent, Object aData)
      Invoked when a Host Info command is received.
      Specified by:
      doHostInfo in class EPPHostHandler
      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.
    • doHostDelete

      protected EPPEventResponse doHostDelete(EPPEvent aEvent, Object aData)
      Invoked when a Host Delete command is received.
      Specified by:
      doHostDelete in class EPPHostHandler
      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.
    • doHostCheck

      protected EPPEventResponse doHostCheck(EPPEvent aEvent, Object aData)
      Invoked when a Host Check command is received.
      Specified by:
      doHostCheck in class EPPHostHandler
      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.
    • doHostCreate

      protected EPPEventResponse doHostCreate(EPPEvent aEvent, Object aData)
      Invoked when a Host Create command is received.
      Specified by:
      doHostCreate in class EPPHostHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this EPPDomainHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.