Package google.registry.flows.custom
Class DomainInfoFlowCustomLogic
java.lang.Object
google.registry.flows.custom.BaseFlowCustomLogic
google.registry.flows.custom.DomainInfoFlowCustomLogic
A no-op base class for
DomainInfoFlow
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.DomainInfoFlowCustomLogic.AfterValidationParameters)
.static final record
A record to encapsulate parameters for a call tobeforeResponse(google.registry.flows.custom.DomainInfoFlowCustomLogic.BeforeResponseParameters)
.static final record
A record to encapsulate parameters for the return values from a call tobeforeResponse(google.registry.flows.custom.DomainInfoFlowCustomLogic.BeforeResponseParameters)
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DomainInfoFlowCustomLogic
(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
-
DomainInfoFlowCustomLogic
protected DomainInfoFlowCustomLogic(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(DomainInfoFlowCustomLogic.AfterValidationParameters parameters) throws EppException A hook that runs at the end of the validation step to perform additional validation.- Throws:
EppException
-
beforeResponse
public DomainInfoFlowCustomLogic.BeforeResponseReturnData beforeResponse(DomainInfoFlowCustomLogic.BeforeResponseParameters parameters) throws EppException A hook that runs before the response is returned.This takes the
Domain
andEppResponse.ResponseExtension
s as input and returns them, potentially with modifications.- Throws:
EppException
-