Package com.verisign.epp.serverstub
Class EPPTestGenHandler
- java.lang.Object
-
- com.verisign.epp.serverstub.EPPTestGenHandler
-
- All Implemented Interfaces:
EPPEventHandler
public class EPPTestGenHandler extends java.lang.Object implements EPPEventHandler
TheEPPTestGenHandlerclass provides an test handler that loadsEPPTestGenMapFactoryfor testing the EPP General (gen) package. The handler only needs to load theEPPTestGenMapFatoryso that the EPP Greeting will include at least one URI in the Object Services.- See Also:
EPPEventHandler,EPPEvent
-
-
Constructor Summary
Constructors Constructor Description EPPTestGenHandler()Whenever an EPPTestGenHandler instance is created load the corresponsding Map Factory into the Codec
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNamespace()Returns the Namespace that this handler supports.EPPEventResponsehandleEvent(EPPEvent aEvent, java.lang.Object aData)This method receives anEPPEventand routes it to the appropriate abstract method.protected voidpostHandleEvent(EPPEvent aEvent, java.lang.Object aData)Handles any common behavior that all test commands need to execute after they execute their command specific behavior.protected voidpreHandleEvent(EPPEvent aEvent, java.lang.Object aData)Handles any common behavior that all test commands need to execute before they execute their command specific behavior.
-
-
-
Method Detail
-
getNamespace
public final java.lang.String 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
public final EPPEventResponse handleEvent(EPPEvent aEvent, java.lang.Object aData) throws EPPEventException
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
protected void preHandleEvent(EPPEvent aEvent, java.lang.Object aData) throws EPPHandleEventException
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
protected void postHandleEvent(EPPEvent aEvent, java.lang.Object aData) throws EPPHandleEventException
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
-
-