public interface IServletResponse extends Serializable
HttpServletRequest
.Modifier and Type | Method and Description |
---|---|
byte[] |
getBinValue()
The binary data for the response.
|
String |
getContentType()
Applies only when
getType() is set to EResponseType.SHOW_FILE :
Must return the content type (=mime type) that is to be sent along with the binary data. |
String |
getEncoding()
Applies only when
getType() is set to EResponseType.TEMPLATE ,
EResponseType.TEMPLATE_SYSTEM , or EResponseType.HTML . |
default Map<String,String> |
getHttpHeader() |
default int |
getHttpStatusCode() |
Map<String,Serializable> |
getSessionAttributes() |
EResponseType |
getType() |
String |
getValue()
The plain-text data of the response, used only when
getType() is not set to a binary response type or
redirect. |
boolean |
isForceDownload()
Applies only when
getType() is set to EResponseType.SHOW_FILE . |
String getValue()
getType()
is not set to a binary response type or
redirect.String getContentType()
getType()
is set to EResponseType.SHOW_FILE
:
Must return the content type (=mime type) that is to be sent along with the binary data. When this is either
null
or 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.
Map<String,Serializable> getSessionAttributes()
Map
with attributes that should be written to the HttpSession
. Existing values in the
HttpSession
are overwritten.default Map<String,String> getHttpHeader()
Map
of HTTP headers that should be sent along with the HTTP response.default int getHttpStatusCode()
EResponseType getType()
byte[] getBinValue()
getType()
is set to EResponseType.SHOW_FILE
.boolean isForceDownload()
getType()
is set to EResponseType.SHOW_FILE
.true
, attempts to prevent browsers from showing the binary content inline. If false
, 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.String getEncoding()
getType()
is set to EResponseType.TEMPLATE
,
EResponseType.TEMPLATE_SYSTEM
, or EResponseType.HTML
.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.