Class BalanceDomainHandler

All Implemented Interfaces:
EPPEventHandler

public class BalanceDomainHandler extends DomainHandler
The BalanceDomainHandler class extends DomainHandler to include handling the low balance poll message.
  • Constructor Details

    • BalanceDomainHandler

      public BalanceDomainHandler()
      Constructs an instance of BalanceDomainHandler
  • Method Details

    • preHandleEvent

      protected void preHandleEvent(EPPEvent aEvent, Object aData) throws EPPHandleEventException
      Implement any needed pre-handling of a command.
      Overrides:
      preHandleEvent in class DomainHandler
      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
    • doDomainCreate

      protected EPPEventResponse doDomainCreate(EPPEvent aEvent, Object aData)
      Override base handler doDomainCreate method to accept a domain create of a domain name with the ABNF "balance-domain-v" 2DIGIT ".example" that will place a low balance poll message in the poll queue for consumption by the client.
      Overrides:
      doDomainCreate in class DomainHandler
      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.