Package google.registry.flows.custom
Class DomainCheckFlowCustomLogic
java.lang.Object
google.registry.flows.custom.BaseFlowCustomLogic
google.registry.flows.custom.DomainCheckFlowCustomLogic
A no-op base class for
DomainCheckFlow
custom logic.
Extend this class and override the hook(s) to perform custom logic.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
A record to encapsulate parameters for a call toafterValidation(google.registry.flows.custom.DomainCheckFlowCustomLogic.AfterValidationParameters)
.static final record
A record to encapsulate parameters for a call tobeforeResponse(google.registry.flows.custom.DomainCheckFlowCustomLogic.BeforeResponseParameters)
.static final record
A record to encapsulate parameters for the return values from a call tobeforeResponse(google.registry.flows.custom.DomainCheckFlowCustomLogic.BeforeResponseParameters)
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DomainCheckFlowCustomLogic
(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
A hook that runs at the end of the validation step to perform additional validation.A hook that runs before the response is returned.void
A hook that runs before any validation.Methods inherited from class google.registry.flows.custom.BaseFlowCustomLogic
getEppInput, getFlowMetadata, getSessionMetadata
-
Constructor Details
-
DomainCheckFlowCustomLogic
protected DomainCheckFlowCustomLogic(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata)
-
-
Method Details
-
beforeValidation
A hook that runs before any validation. This is useful to e.g. add allowable extensions.- Throws:
EppException
-
afterValidation
public void afterValidation(DomainCheckFlowCustomLogic.AfterValidationParameters parameters) throws EppException A hook that runs at the end of the validation step to perform additional validation.- Throws:
EppException
-
beforeResponse
public DomainCheckFlowCustomLogic.BeforeResponseReturnData beforeResponse(DomainCheckFlowCustomLogic.BeforeResponseParameters parameters) throws EppException A hook that runs before the response is returned.This takes the
CheckData.DomainCheck
s andEppResponse.ResponseExtension
s as input and returns them, potentially with modifications.- Throws:
EppException
-