Package com.verisign.epp.serverstub
Class EPPTestGenHandler
java.lang.Object
com.verisign.epp.serverstub.EPPTestGenHandler
- All Implemented Interfaces:
EPPEventHandler
The
EPPTestGenHandler class provides an test handler that loads
EPPTestGenMapFactory for testing the EPP General (gen) package.
The handler only needs to load the EPPTestGenMapFatory so that
the EPP Greeting will include at least one URI in the Object Services. - See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWhenever an EPPTestGenHandler instance is created load the corresponsding Map Factory into the Codec -
Method Summary
Modifier and TypeMethodDescriptionfinal StringReturns the Namespace that this handler supports.final EPPEventResponsehandleEvent(EPPEvent aEvent, Object aData) This method receives anEPPEventand routes it to the appropriate abstract method.protected voidpostHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all test commands need to execute after they execute their command specific behavior.protected voidpreHandleEvent(EPPEvent aEvent, Object aData) Handles any common behavior that all test commands need to execute before they execute their command specific behavior.
-
Constructor Details
-
EPPTestGenHandler
public EPPTestGenHandler()Whenever an EPPTestGenHandler instance is created load the corresponsding Map Factory into the Codec
-
-
Method Details
-
getNamespace
Returns the Namespace that this handler supports. In this case, test.- Specified by:
getNamespacein interfaceEPPEventHandler- Returns:
- String The Namespace that this handler supports
-
handleEvent
This method receives anEPPEventand routes it to the appropriate abstract method.- Specified by:
handleEventin interfaceEPPEventHandler- Parameters:
aEvent- AnEPPEventthat contains theEPPCommandaData- Any data that a Server needs to send to thisEPPContactHandlerinstance- Returns:
- Event response
- Throws:
EPPEventException- Thrown if an unrecognizedEPPEventis received
-
preHandleEvent
Handles any common behavior that all test commands need to execute before they execute their command specific behavior. The default implementation does nothing.- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPTestGenHandler- Throws:
EPPHandleEventException- Thrown if an error condition occurs. It must contain anEPPEventResponse
-
postHandleEvent
Handles any common behavior that all test commands need to execute after they execute their command specific behavior. The default implementation does nothing- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisEPPTestGenHandler- Throws:
EPPHandleEventException- Thrown if an error condition occurs. It must contain anEPPEventResponse
-