Package google.registry.flows.custom
Class DomainRenewFlowCustomLogic
java.lang.Object
google.registry.flows.custom.BaseFlowCustomLogic
google.registry.flows.custom.DomainRenewFlowCustomLogic
A no-op base class for
DomainRenewFlow
custom logic.
Extend this class and override the hook(s) to perform custom logic.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
A class to encapsulate parameters for a call toafterValidation(google.registry.flows.custom.DomainRenewFlowCustomLogic.AfterValidationParameters)
.static final record
A record to encapsulate parameters for a call tobeforeResponse(google.registry.flows.custom.DomainRenewFlowCustomLogic.BeforeResponseParameters)
.static final record
A record to encapsulate parameters for the return values from a call tobeforeResponse(google.registry.flows.custom.DomainRenewFlowCustomLogic.BeforeResponseParameters)
.static final record
A record to encapsulate parameters for a call tobeforeSave(google.registry.flows.custom.DomainRenewFlowCustomLogic.BeforeSaveParameters)
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DomainRenewFlowCustomLogic
(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.A hook that runs before new entities are persisted, allowing them to be changed.void
A hook that runs before any validation.Methods inherited from class google.registry.flows.custom.BaseFlowCustomLogic
getEppInput, getFlowMetadata, getSessionMetadata
-
Constructor Details
-
DomainRenewFlowCustomLogic
protected DomainRenewFlowCustomLogic(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(DomainRenewFlowCustomLogic.AfterValidationParameters parameters) throws EppException A hook that runs at the end of the validation step to perform additional validation.- Throws:
EppException
-
beforeSave
public EntityChanges beforeSave(DomainRenewFlowCustomLogic.BeforeSaveParameters parameters) throws EppException A hook that runs before new entities are persisted, allowing them to be changed.It returns the actual entity changes that should be persisted to the database. It is important to be careful when changing the flow behavior for existing entities, because the core logic across many different flows expects the existence of these entities and many of the fields on them.
- Throws:
EppException
-
beforeResponse
public DomainRenewFlowCustomLogic.BeforeResponseReturnData beforeResponse(DomainRenewFlowCustomLogic.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
-