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
Modifier and TypeFieldDescriptionstatic final String
The servlet context or request attribute name by which aPageFlowControl
instance is stored for an application.static final String
static final String
The request parameter name by which the identifier of aPageFlow
could be inferred if provided. -
Method Summary
Modifier and TypeMethodDescriptionvoid
completePageFlow
(jakarta.servlet.http.HttpServletRequest request, PageFlow pageFlow) static PageFlowControl
getDefault
(jakarta.servlet.ServletRequest request) getPageFlow
(jakarta.servlet.http.HttpServletRequest request) void
sendRedirect
(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 aPageFlowControl
instance is stored for an application. -
PAGE_FLOW_ID_PROP_NAME
The request parameter name by which the identifier of aPageFlow
could 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
-