Package com.verisign.epp.serverstub
Class HostHandler
java.lang.Object
com.verisign.epp.framework.EPPHostHandler
com.verisign.epp.serverstub.HostHandler
- All Implemented Interfaces:
EPPEventHandler
- Direct Known Subclasses:
NamestoreExtHostHandler,RZHostHandler,TtlHostHandler
The
HostHandler class is a concrete implementation of the abstract
com.verisign.epp.framework.EPPHostHandler class. It defines the
Server's response to all received EPP Host Commands. - See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EPPEventResponsedoHostCheck(EPPEvent aEvent, Object aData) Invoked when a Host Check command is received.protected EPPEventResponsedoHostCreate(EPPEvent aEvent, Object aData) Invoked when a Host Create command is received.protected EPPEventResponsedoHostDelete(EPPEvent aEvent, Object aData) Invoked when a Host Delete command is received.protected EPPEventResponsedoHostInfo(EPPEvent aEvent, Object aData) Invoked when a Host Info command is received.protected EPPEventResponsedoHostUpdate(EPPEvent aEvent, Object aData) Invoked when a Host Update command is received.protected voidpostHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all Host commands need to execute after they execute their command specific behavior.protected voidpreHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all Host commands need to execute before they execute their command specific behavior.Methods inherited from class com.verisign.epp.framework.EPPHostHandler
getNamespace, handleEvent
-
Constructor Details
-
HostHandler
public HostHandler()Create an instance ofHostHandler
-
-
Method Details
-
preHandleEvent
Handles any common behavior that all Host commands need to execute before they execute their command specific behavior.- Overrides:
preHandleEventin classEPPHostHandler- 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 Host commands need to execute after they execute their command specific behavior.- Overrides:
postHandleEventin classEPPHostHandler- 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
-
doHostUpdate
Invoked when a Host Update command is received.- Specified by:
doHostUpdatein classEPPHostHandler- 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.
-
doHostInfo
Invoked when a Host Info command is received.- Specified by:
doHostInfoin classEPPHostHandler- 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.
-
doHostDelete
Invoked when a Host Delete command is received.- Specified by:
doHostDeletein classEPPHostHandler- 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.
-
doHostCheck
Invoked when a Host Check command is received.- Specified by:
doHostCheckin classEPPHostHandler- 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.
-
doHostCreate
Invoked when a Host Create command is received.- Specified by:
doHostCreatein classEPPHostHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPDomainHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-