Package de.xima.fc.workflow.model
Class HttpContextData.Builder
java.lang.Object
de.xima.fc.workflow.model.HttpContextData.Builder
- All Implemented Interfaces:
org.apache.commons.lang3.builder.Builder<IHttpContextData>
- Enclosing class:
- HttpContextData
public static final class HttpContextData.Builder
extends Object
implements org.apache.commons.lang3.builder.Builder<IHttpContextData>
Builder for creating an immutable instance of
IHttpContextData
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
contextPath
(String contextPath) formCheckRequested
(boolean formCheckRequested) formRequestType
(EFormRequestType formRequestType) frqSessionAttributes
(Map<Serializable, Serializable> frqSessionAttributesMap) frqSessionId
(String frqSessionId) previewRequested
(boolean previewRequested) requestContext
(IFormRequestContext requestContext) Adds all data from the request context to this builder.reviewRequested
(boolean reviewRequested) saveRequested
(Boolean saveRequested) Adds all data from theservlet action
parameters to this builder.sessionAttributes
(Map<String, Serializable> sessionAttributesMap)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
- Parameters:
baseUrl
- The base URL of the current HTTP request, i.e. the context path with the protocol, server, and port.- Returns:
- This builder instance for chaining method calls.
-
build
- Specified by:
build
in interfaceorg.apache.commons.lang3.builder.Builder<IHttpContextData>
-
contextPath
- Parameters:
contextPath
- The context path of the current HTTP request, i.e. the path where the formcycle application is running.- Returns:
- This builder instance for chaining method calls.
-
formCheckRequested
- Parameters:
formCheckRequested
-true
to indicate the form should be validated on the server, orfalse
otherwise.- Returns:
- This builder instance for chaining method calls.
-
formRequestType
- Parameters:
formRequestType
- The form request type of the current HTTP request- Returns:
- This builder instance for chaining method calls.
-
frqSessionAttributes
public HttpContextData.Builder frqSessionAttributes(Map<Serializable, Serializable> frqSessionAttributesMap) - Parameters:
frqSessionAttributesMap
- Session attributes of the current FRQ session, if one exists. If not given, an empty map is used.- Returns:
- This builder instance for chaining method calls.
-
frqSessionId
- Parameters:
frqSessionId
- The ID of the current FRQ session. Empty string when no FRQ session exists.- Returns:
- This builder instance for chaining method calls.
- Since:
- 7.4.0
-
previewRequested
- Parameters:
previewRequested
-true
if a preview was requested,false
otherwise.- Returns:
- This builder instance for chaining method calls.
-
servletActionParams
Adds all data from theservlet action
parameters to this builder.- Parameters:
params
- Servlet action parameters with data to add to this builder.- Returns:
- This builder instance for chaining method calls.
- Since:
- 8.0.0
-
requestContext
Adds all data from the request context to this builder.- Parameters:
requestContext
- Request context with data to add to this builder.- Returns:
- This builder instance for chaining method calls.
-
reviewRequested
- Parameters:
reviewRequested
-true
if a review was requested (when opening a form in the inbox), orfalse
otherwise.- Returns:
- This builder instance for chaining method calls.
-
saveRequested
- Parameters:
saveRequested
- Whether the form record should only be saved, i.e. when the user submitted the form via a save button.- Returns:
- This builder instance for chaining method calls.
-
sessionAttributes
- Parameters:
sessionAttributesMap
- Session attributes of the current HTTP session, if one exists. If not given, an empty map is used.- Returns:
- This builder instance for chaining method calls.
-
sessionId
- Parameters:
sessionId
- The session ID of the current HTTP session. Empty string when no HTTP session exists.- Returns:
- This builder instance for chaining method calls.
-