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:
EAIContactHandler
public class ContactHandler extends EPPContactHandler
TheContactHandler
class is a concrete implementation of the abstractcom.verisign.epp.framework.EPPContactHandler
class. It defines the Server's response to all received EPP Host Commands.
- See Also:
EPPEvent
,EPPEventResponse
-
-
Constructor Summary
Constructors Constructor Description ContactHandler()
Constructs an instance ofContactHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EPPEventResponse
doContactCheck(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Check command is received.protected EPPEventResponse
doContactCreate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Create command is received.protected EPPEventResponse
doContactDelete(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Delete command is received.protected EPPEventResponse
doContactInfo(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Info command is received.protected EPPEventResponse
doContactTransfer(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Transfer command is received.protected EPPEventResponse
doContactUpdate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Update command is received.protected EPPContactInfoResp
getDefaultInfoResponseWithAllElements(EPPContactInfoCmd theCommand)
Creates default RFC compliant contact info response that sets all the mandatory attributes in the response per RFC.protected EPPContactInfoResp
getMinimalInfoResponseWithAllElements(EPPContactInfoCmd theCommand)
Creates relaxed validation compliant contact info response that sets the minimum set of attributes.protected EPPContactInfoResp
getPartialInfoResponseWithAllElements(EPPContactInfoCmd theCommand)
Creates relaxed validation compliant contact info response that sets only some of the mandatory attributes per the RFC.protected void
postHandleEvent(EPPEvent aEvent, java.lang.Object aData)
Handles any common behavior that all Contact commands need to execute after they execute their command specific behavior.protected void
preHandleEvent(EPPEvent aEvent, java.lang.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
-
-
-
-
Method Detail
-
preHandleEvent
protected void preHandleEvent(EPPEvent aEvent, java.lang.Object aData) throws EPPHandleEventException
Handles any common behavior that all Contact commands need to execute before they execute their command specific behavior.- Overrides:
preHandleEvent
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPDomainHandler
This is assumed to be an instance of SessionData here.- Throws:
EPPHandleEventException
- Thrown if an error condition occurs. It must contain anEPPEventResponse
-
postHandleEvent
protected void postHandleEvent(EPPEvent aEvent, java.lang.Object aData) throws EPPHandleEventException
Handles any common behavior that all Contact commands need to execute after they execute their command specific behavior.- Overrides:
postHandleEvent
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that 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
protected EPPEventResponse doContactDelete(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Delete command is received.- Specified by:
doContactDelete
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that 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
protected EPPEventResponse doContactCreate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Create command is received.- Specified by:
doContactCreate
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that 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
protected EPPEventResponse doContactUpdate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Update command is received.- Specified by:
doContactUpdate
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that 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
protected EPPEventResponse doContactInfo(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Info command is received.- Specified by:
doContactInfo
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that 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
protected EPPContactInfoResp getDefaultInfoResponseWithAllElements(EPPContactInfoCmd theCommand)
Creates default RFC compliant contact info response that sets all the mandatory attributes in the response per RFC.- Parameters:
theCommand
- The contact info command to return the response for.- Returns:
- contact info response associated with the command
-
getPartialInfoResponseWithAllElements
protected EPPContactInfoResp getPartialInfoResponseWithAllElements(EPPContactInfoCmd theCommand)
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:
theCommand
- The contact info command to return the response for.- Returns:
- contact info response associated with the command
-
getMinimalInfoResponseWithAllElements
protected EPPContactInfoResp getMinimalInfoResponseWithAllElements(EPPContactInfoCmd theCommand)
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:
theCommand
- The contact info command to return the response for.- Returns:
- contact info response associated with the command
-
doContactTransfer
protected EPPEventResponse doContactTransfer(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Transfer command is received.- Specified by:
doContactTransfer
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that 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
protected EPPEventResponse doContactCheck(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Contact Check command is received.- Specified by:
doContactCheck
in classEPPContactHandler
- Parameters:
aEvent
- TheEPPEvent
that 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.
-
-