Package google.registry.flows.custom
Class DomainCheckFlowCustomLogic
- java.lang.Object
-
- google.registry.flows.custom.BaseFlowCustomLogic
-
- google.registry.flows.custom.DomainCheckFlowCustomLogic
-
public class DomainCheckFlowCustomLogic extends BaseFlowCustomLogic
A no-op base class forDomainCheckFlow
custom logic.Extend this class and override the hook(s) to perform custom logic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainCheckFlowCustomLogic.AfterValidationParameters
A class to encapsulate parameters for a call toafterValidation(google.registry.flows.custom.DomainCheckFlowCustomLogic.AfterValidationParameters)
.static class
DomainCheckFlowCustomLogic.BeforeResponseParameters
A class to encapsulate parameters for a call tobeforeResponse(google.registry.flows.custom.DomainCheckFlowCustomLogic.BeforeResponseParameters)
.static class
DomainCheckFlowCustomLogic.BeforeResponseReturnData
A class to encapsulate parameters for the return values from a call tobeforeResponse(google.registry.flows.custom.DomainCheckFlowCustomLogic.BeforeResponseParameters)
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DomainCheckFlowCustomLogic(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterValidation(DomainCheckFlowCustomLogic.AfterValidationParameters parameters)
A hook that runs at the end of the validation step to perform additional validation.DomainCheckFlowCustomLogic.BeforeResponseReturnData
beforeResponse(DomainCheckFlowCustomLogic.BeforeResponseParameters parameters)
A hook that runs before the response is returned.void
beforeValidation()
A hook that runs before any validation.-
Methods inherited from class google.registry.flows.custom.BaseFlowCustomLogic
getEppInput, getFlowMetadata, getSessionMetadata
-
-
-
-
Constructor Detail
-
DomainCheckFlowCustomLogic
protected DomainCheckFlowCustomLogic(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata)
-
-
Method Detail
-
beforeValidation
public void beforeValidation() throws EppException
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
-
-