Package com.verisign.epp.serverstub
Class BalanceHandler
java.lang.Object
com.verisign.epp.framework.EPPBalanceHandler
com.verisign.epp.serverstub.BalanceHandler
- All Implemented Interfaces:
EPPEventHandler
The
BalanceHandler class is a concrete implementation of the
abstract com.verisign.epp.framework.EPPBalanceHandler class. It
defines the Server's response to all received EPP Balance Commands.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EPPEventResponsedoBalanceInfo(EPPEvent aEvent, Object aData) Invoked when a Balance Info command is received.protected voidpostHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all Balance commands need to execute after they execute their command specific behavior.protected voidpreHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all Balance commands need to execute before they execute their command specific behavior.Methods inherited from class com.verisign.epp.framework.EPPBalanceHandler
getNamespace, handleEvent
-
Constructor Details
-
BalanceHandler
public BalanceHandler()Constructs an instance of BalanceHandler
-
-
Method Details
-
preHandleEvent
Handles any common behavior that all Balance commands need to execute before they execute their command specific behavior.- Overrides:
preHandleEventin classEPPBalanceHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPBalanceHandlerThis 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 Balance commands need to execute after they execute their command specific behavior.- Overrides:
postHandleEventin classEPPBalanceHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPBalanceHandler- Throws:
EPPHandleEventException- Thrown if an error condition occurs. It must contain anEPPEventResponse
-
doBalanceInfo
Invoked when a Balance Info command is received.- Specified by:
doBalanceInfoin classEPPBalanceHandler- 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.
-