Interface PageFlowControl
- All Known Implementing Classes:
DefaultHstPageFlowControl,DefaultPageFlowControl
public interface PageFlowControl
Page Flow Control abstraction, which provides applications with an easier way to retrieve the current
PageFlow
instance from the HttpServletRequest, to send redirection to a specific PageState and to
complete a PageFlow.
For example, an application can use this interface like the following example:
final PageFlowControl flowControl = PageFlowControl.getDefault(request); final PageFlow pageFlow = flowControl.getPageFlow(request); ...
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe servlet context or request attribute name by which aPageFlowControlinstance is stored for an application.static final Stringstatic final StringThe request parameter name by which the identifier of aPageFlowcould be inferred if provided. -
Method Summary
Modifier and TypeMethodDescriptionvoidcompletePageFlow(jakarta.servlet.http.HttpServletRequest request, PageFlow pageFlow) static PageFlowControlgetDefault(jakarta.servlet.ServletRequest request) getPageFlow(jakarta.servlet.http.HttpServletRequest request) voidsendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PageState pageState)
-
Field Details
-
PAGE_FLOW_CONTROL_ATTR_NAME
The servlet context or request attribute name by which aPageFlowControlinstance is stored for an application. -
PAGE_FLOW_ID_PROP_NAME
The request parameter name by which the identifier of aPageFlowcould be inferred if provided.- See Also:
-
PAGE_FLOW_ID_ATTR_NAME
-
-
Method Details
-
getDefault
-
getPageFlow
- Throws:
PageFlowException
-
sendRedirect
void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PageState pageState) throws PageFlowException, IOException, IllegalStateException -
completePageFlow
void completePageFlow(jakarta.servlet.http.HttpServletRequest request, PageFlow pageFlow) throws PageFlowException - Throws:
PageFlowException
-