Package com.verisign.epp.serverstub
Class BalanceHandler
- java.lang.Object
-
- com.verisign.epp.framework.EPPBalanceHandler
-
- com.verisign.epp.serverstub.BalanceHandler
-
- All Implemented Interfaces:
EPPEventHandler
public class BalanceHandler extends EPPBalanceHandler
TheBalanceHandler
class is a concrete implementation of the abstractcom.verisign.epp.framework.EPPBalanceHandler
class. It defines the Server's response to all received EPP Balance Commands.- See Also:
EPPEvent
,EPPEventResponse
-
-
Constructor Summary
Constructors Constructor Description BalanceHandler()
Constructs an instance of BalanceHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EPPEventResponse
doBalanceInfo(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Balance Info command is received.protected void
postHandleEvent(EPPEvent aEvent, java.lang.Object aData)
Handles any common behavior that all Balance 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 Balance commands need to execute before they execute their command specific behavior.-
Methods inherited from class com.verisign.epp.framework.EPPBalanceHandler
getNamespace, handleEvent
-
-
-
-
Method Detail
-
preHandleEvent
protected void preHandleEvent(EPPEvent aEvent, java.lang.Object aData) throws EPPHandleEventException
Handles any common behavior that all Balance commands need to execute before they execute their command specific behavior.- Overrides:
preHandleEvent
in classEPPBalanceHandler
- Parameters:
aEvent
- TheEPPEvent
that is being handledaData
- Any data that a Server needs to send to thisEPPBalanceHandler
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 Balance commands need to execute after they execute their command specific behavior.- Overrides:
postHandleEvent
in classEPPBalanceHandler
- Parameters:
aEvent
- TheEPPEvent
that 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
protected EPPEventResponse doBalanceInfo(EPPEvent aEvent, java.lang.Object aData)
Invoked when a Balance Info command is received.- Specified by:
doBalanceInfo
in classEPPBalanceHandler
- 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.
-
-