Class HostDeleteFlow

java.lang.Object
google.registry.flows.host.HostDeleteFlow
All Implemented Interfaces:
Flow, MutatingFlow, TransactionalFlow

@ReportingSpec(HOST_DELETE) public final class HostDeleteFlow extends Object implements MutatingFlow
An EPP flow that deletes a host.

Hosts that are in use by any domain cannot be deleted. The flow may return immediately if a quick smoke check determines that deletion is impossible due to an existing reference. However, a successful delete will always be asynchronous, as all existing domains must be checked for references to the host before the deletion is allowed to proceed. A poll message will be written with the success or failure message when the process is complete.

Expected Error
FlowUtils.NotLoggedInException, ResourceFlowUtils.ResourceDoesNotExistException, ResourceFlowUtils.ResourceNotOwnedException, ResourceStatusProhibitsOperationException, ResourceToDeleteIsReferencedException, HostFlowUtils.HostNameNotLowerCaseException, HostFlowUtils.HostNameNotNormalizedException, HostFlowUtils.HostNameNotPunyCodedException
  • Method Details

    • run

      public EppResponse run() throws EppException
      Description copied from interface: Flow
      Executes an EPP "flow" and returns a response object (or in the specific case of the "hello" flow a greeting object) that can be converted to XML and returned to the caller.

      Flows should have Flow.run() called once per instance. If a flow needs to be retried, a new instance should be created.

      Flows should get all of their parameters via injection off of FlowComponent.

      Specified by:
      run in interface Flow
      Throws:
      EppException