Package com.verisign.epp.serverstub
Class ContactHandler
java.lang.Object
com.verisign.epp.framework.EPPContactHandler
com.verisign.epp.serverstub.ContactHandler
- All Implemented Interfaces:
EPPEventHandler
- Direct Known Subclasses:
AddlEmailContactHandler
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EPPEventResponsedoContactCheck(EPPEvent aEvent, Object aData) Invoked when a Contact Check command is received.protected EPPEventResponsedoContactCreate(EPPEvent aEvent, Object aData) Invoked when a Contact Create command is received.protected EPPEventResponsedoContactDelete(EPPEvent aEvent, Object aData) Invoked when a Contact Delete command is received.protected EPPEventResponsedoContactInfo(EPPEvent aEvent, Object aData) Invoked when a Contact Info command is received.protected EPPEventResponsedoContactTransfer(EPPEvent aEvent, Object aData) Invoked when a Contact Transfer command is received.protected EPPEventResponsedoContactUpdate(EPPEvent aEvent, Object aData) Invoked when a Contact Update command is received.protected EPPContactInfoRespCreates default RFC compliant contact info response that sets all the mandatory attributes in the response per RFC.protected EPPContactInfoRespCreates relaxed validation compliant contact info response that sets the minimum set of attributes.protected EPPContactInfoRespCreates relaxed validation compliant contact info response that sets only some of the mandatory attributes per the RFC.protected voidpostHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all Contact commands need to execute after they execute their command specific behavior.protected voidpreHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all Contact commands need to execute before they execute their command specific behavior.Methods inherited from class com.verisign.epp.framework.EPPContactHandler
getNamespace, handleEvent
-
Constructor Details
-
ContactHandler
public ContactHandler()Constructs an instance ofContactHandler
-
-
Method Details
-
preHandleEvent
Handles any common behavior that all Contact commands need to execute before they execute their command specific behavior.- Overrides:
preHandleEventin classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomainHandlerThis is assumed to be an instance of SessionData here.- Throws:
EPPHandleEventException- Thrown if an error condition occurs. It must contain anEPPEventResponse
-
postHandleEvent
Handles any common behavior that all Contact commands need to execute after they execute their command specific behavior.- Overrides:
postHandleEventin classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomainHandler- Throws:
EPPHandleEventException- Thrown if an error condition occurs. It must contain anEPPEventResponse
-
doContactDelete
Invoked when a Contact Delete command is received.- Specified by:
doContactDeletein classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomaindHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doContactCreate
Invoked when a Contact Create command is received.- Specified by:
doContactCreatein classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomaindHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doContactUpdate
Invoked when a Contact Update command is received.- Specified by:
doContactUpdatein classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomaindHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doContactInfo
Invoked when a Contact Info command is received.- Specified by:
doContactInfoin classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomaindHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
getDefaultInfoResponseWithAllElements
Creates default RFC compliant contact info response that sets all the mandatory attributes in the response per RFC.- Parameters:
aCommand- The contact info command to return the response for.- Returns:
- contact info response associated with the command
-
getPartialInfoResponseWithAllElements
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:
- name
- street
- city
- Parameters:
aCommand- The contact info command to return the response for.- Returns:
- contact info response associated with the command
-
getMinimalInfoResponseWithAllElements
Creates relaxed validation compliant contact info response that sets the minimum set of attributes. The fields required by RFC that are NOT provided include:
- name
- street
- city
- country
- Parameters:
aCommand- The contact info command to return the response for.- Returns:
- contact info response associated with the command
-
doContactTransfer
Invoked when a Contact Transfer command is received.- Specified by:
doContactTransferin classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomaindHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doContactCheck
Invoked when a Contact Check command is received.- Specified by:
doContactCheckin classEPPContactHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomaindHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-