Package google.registry.flows.custom
Class BaseFlowCustomLogic
java.lang.Object
google.registry.flows.custom.BaseFlowCustomLogic
- Direct Known Subclasses:
DomainCheckFlowCustomLogic
,DomainCreateFlowCustomLogic
,DomainDeleteFlowCustomLogic
,DomainInfoFlowCustomLogic
,DomainPricingCustomLogic
,DomainRenewFlowCustomLogic
,DomainUpdateFlowCustomLogic
An abstract base class for all flow custom logic that stores the flow's
EppInput
and
SessionMetadata
for convenience. Both of these are immutable.-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseFlowCustomLogic
(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata) Constructs a BaseFlowCustomLogic for the specified EPP flow state. -
Method Summary
Modifier and TypeMethodDescriptionReturns theEppInput
, which may be empty outside a flow context.protected Optional
<FlowMetadata> Returns theFlowMetadata
, which may be empty outside a flow context.protected Optional
<SessionMetadata> Returns theSessionMetadata
, which may be empty outside a flow context.
-
Constructor Details
-
BaseFlowCustomLogic
protected BaseFlowCustomLogic(@Nullable EppInput eppInput, @Nullable SessionMetadata sessionMetadata, @Nullable FlowMetadata flowMetadata) Constructs a BaseFlowCustomLogic for the specified EPP flow state.Note that it is possible for the EPP flow state to be absent, which happens when the custom logic is running outside the context of an EPP flow (e.g.
DomainPricingCustomLogic
in backend actions).
-
-
Method Details
-
getEppInput
Returns theEppInput
, which may be empty outside a flow context. -
getSessionMetadata
Returns theSessionMetadata
, which may be empty outside a flow context. -
getFlowMetadata
Returns theFlowMetadata
, which may be empty outside a flow context.
-