Package com.verisign.epp.serverstub
Class NameWatchHandler
- java.lang.Object
-
- com.verisign.epp.framework.EPPNameWatchHandler
-
- com.verisign.epp.serverstub.NameWatchHandler
-
- All Implemented Interfaces:
EPPEventHandler
public class NameWatchHandler extends EPPNameWatchHandler
TheNameWatchHandler
class is a concrete implementation of the abstractcom.verisign.epp.framework.EPPNameWatchHandler
class. It defines the Server's response to all received EPP NameWatch Commands.- See Also:
EPPEvent
,EPPEventResponse
-
-
Constructor Summary
Constructors Constructor Description NameWatchHandler()
Constructs an instance of NameWatchHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EPPEventResponse
doNameWatchCreate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Create command is received.protected EPPEventResponse
doNameWatchDelete(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Delete command is received.protected EPPEventResponse
doNameWatchInfo(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Info command is received.protected EPPEventResponse
doNameWatchRenew(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Renew command is received.protected EPPEventResponse
doNameWatchTransfer(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Transfer command is received.protected EPPEventResponse
doNameWatchUpdate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Update command is received.protected void
postHandleEvent(EPPEvent aEvent, java.lang.Object aData)
Handles any common behavior that all NameWatch 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 NameWatch commands need to execute before they execute their command specific behavior.-
Methods inherited from class com.verisign.epp.framework.EPPNameWatchHandler
getNamespace, handleEvent
-
-
-
-
Method Detail
-
preHandleEvent
protected void preHandleEvent(EPPEvent aEvent, java.lang.Object aData) throws EPPHandleEventException
Handles any common behavior that all NameWatch commands need to execute before they execute their command specific behavior.- Overrides:
preHandleEvent
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchHandler
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 NameWatch commands need to execute after they execute their command specific behavior.- Overrides:
postHandleEvent
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchHandler
- Throws:
EPPHandleEventException
- Thrown if an error condition occurs. It must contain anEPPEventResponse
-
doNameWatchRenew
protected EPPEventResponse doNameWatchRenew(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Renew command is received.- Specified by:
doNameWatchRenew
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchdHandler
- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameWatchDelete
protected EPPEventResponse doNameWatchDelete(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Delete command is received.- Specified by:
doNameWatchDelete
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchdHandler
- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameWatchCreate
protected EPPEventResponse doNameWatchCreate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Create command is received.- Specified by:
doNameWatchCreate
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchdHandler
- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameWatchTransfer
protected EPPEventResponse doNameWatchTransfer(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Transfer command is received.- Specified by:
doNameWatchTransfer
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchdHandler
- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameWatchUpdate
protected EPPEventResponse doNameWatchUpdate(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Update command is received.- Specified by:
doNameWatchUpdate
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchdHandler
- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameWatchInfo
protected EPPEventResponse doNameWatchInfo(EPPEvent aEvent, java.lang.Object aData)
Invoked when a NameWatch Info command is received.- Specified by:
doNameWatchInfo
in classEPPNameWatchHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPNameWatchdHandler
- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
-