Interface IServletResponse
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
IWorkflowResponse
- All Known Implementing Classes:
ServletResponse, TaskExecutionResultWrapper, WorkflowResponse
Interface for the HTTP response that is sent in response to a
HttpServletRequest.- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]The binary data for the response.default FormThemeReferenceA form theme to apply to the response.default intdefault longApplies only whentypeis set toFORM_RECORDis set, this is the ID of the form record to which to redirect.getType()getValue()Whentypeis set to a binary response type (e.g.boolean
-
Method Details
-
getValue
-
getContentType
String getContentType()Applies only whentypeis set toSHOW_FILE:Must return the content type (=mime type) that is to be sent along with the binary data. When this is either
nullor blank, an attempt is made to guess the content type from the binary data. Please note that this may fail to determine the actual content type, you should always provide a content type.- Returns:
- The content type of the binary data.
- Since:
- 5.0
-
getSessionAttributes
Map<String, Serializable> getSessionAttributes()- Returns:
- A
Mapwith attributes that should be written to theHttpSession. Existing values in theHttpSessionare overwritten. - Since:
- 5.0
-
getHttpHeader
-
getHttpStatusCode
default int getHttpStatusCode()- Returns:
- The HTTP status code of the HTTP response.
-
getFormTheme
A form theme to apply to the response. This is often used when the response comes from atext template. Requires a form context to be active, or the default form is used.- Returns:
trueif a form theme should be applied,falseotherwise.
-
getType
EResponseType getType()- Returns:
- The type of response, such as whether a plain text or binary file should be returned, or a redirect should be performed.
-
getBinValue
-
isForceDownload
boolean isForceDownload()- Returns:
- If
true, attempts to prevent browsers from showing the binary content inline. Iffalse, the browser may show the content inline, which is useful for PDF, image or plain text files. Please note that support for this differs between browsers.
-
getEncoding
String getEncoding()- Returns:
- The encoding that is to be used for encoding the response.
-
getLongValue
default long getLongValue()Applies only whentypeis set toFORM_RECORDis set, this is the ID of the form record to which to redirect.- Returns:
- The long value content for the response.
-