com.verisign.epp.serverstub

## Class DomainPollHandler

- java.lang.Object
- - com.verisign.epp.serverstub.DomainPollHandler

- All Implemented Interfaces:
    EPPPollHandler

      public class DomainPollHandler
      extends java.lang.Object
      implements EPPPollHandler

  The `DomainPollHandler` implements `EPPPollHandler` for Domain Name Mapping.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DomainPollHandler()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getKind()` Gets the kind of poll messages it handles.
    `EPPResponse` | `toResponse(EPPPollDataRecord aRecord)` Converts a poll queue `EPPPollDataRecord` to an `EPPResponse`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DomainPollHandler

          public DomainPollHandler()

  - ### Method Detail

    - #### getKind

          public java.lang.String getKind()

      Gets the kind of poll messages it handles.
      Specified by:
        `getKind` in interface `EPPPollHandler`
      Returns:
        The domain name XML namespace represented by `@link EPPDomainMapFactory.NS`.

    - #### toResponse

          public EPPResponse toResponse(EPPPollDataRecord aRecord)
                                 throws EPPPollQueueException

      Converts a poll queue `EPPPollDataRecord` to an `EPPResponse`.
      Specified by:
        `toResponse` in interface `EPPPollHandler`
      Parameters:
        `aRecord` - Poll queue record to convert to an `EPPResponse`.
      Returns:
        An `EPPResponse` that represents the poll queue record.
      Throws:
        `EPPPollQueueException` - Error converting the `EPPPollDataRecord` to an `EPPResponse`.