UnifiedResponse |
UnifiedResponse.addCookie(jakarta.servlet.http.Cookie aCookie) |
Add the passed cookie.
|
static UnifiedResponse |
UnifiedResponse.createSimple(jakarta.servlet.http.HttpServletRequest aHttpRequest) |
Factory method
|
UnifiedResponse |
UnifiedResponse.disableCaching() |
A utility method that disables caching for this response.
|
UnifiedResponse |
UnifiedResponse.enableCaching(int nSeconds) |
Enable caching of this resource for the specified number of seconds.
|
UnifiedResponse |
UnifiedResponse.removeCacheControl() |
|
UnifiedResponse |
UnifiedResponse.removeCaching() |
Remove all settings and headers relevant to caching.
|
UnifiedResponse |
UnifiedResponse.removeCharset() |
|
UnifiedResponse |
UnifiedResponse.removeContent() |
|
UnifiedResponse |
UnifiedResponse.removeContentDispositionFilename() |
Remove the current content disposition filename.
|
UnifiedResponse |
UnifiedResponse.removeCookie(String sName) |
Remove the cookie with the specified name.
|
UnifiedResponse |
UnifiedResponse.removeETag() |
Remove the ETag if present.
|
UnifiedResponse |
UnifiedResponse.removeExpires() |
|
UnifiedResponse |
UnifiedResponse.removeLastModified() |
|
UnifiedResponse |
UnifiedResponse.removeMimeType() |
|
UnifiedResponse |
UnifiedResponse.removeStrictTransportSecurity() |
Remove the X-Frame-Options HTTP header if it is present.
|
UnifiedResponse |
UnifiedResponse.removeXFrameOptions() |
Remove the X-Frame-Options HTTP header if it is present.
|
UnifiedResponse |
UnifiedResponse.setAllowContentOnRedirect(boolean bAllowContentOnRedirect) |
|
UnifiedResponse |
UnifiedResponse.setAllowContentOnStatusCode(boolean bAllowContentOnStatusCode) |
|
UnifiedResponse |
UnifiedResponse.setAllowMimeSniffing(boolean bAllow) |
When specifying false, this method uses a special response
header to prevent certain browsers from MIME-sniffing a response away from
the declared content-type.
|
UnifiedResponse |
UnifiedResponse.setCacheControl(com.helger.http.CacheControlBuilder aCacheControl) |
|
UnifiedResponse |
UnifiedResponse.setCharset(Charset aCharset) |
|
UnifiedResponse |
UnifiedResponse.setContent(byte[] aContent) |
Set the response content.
|
UnifiedResponse |
UnifiedResponse.setContent(byte[] aContent,
int nOfs,
int nLen) |
Set the response content.
|
UnifiedResponse |
UnifiedResponse.setContent(com.helger.commons.io.IHasInputStream aISP) |
Set the response content provider.
|
UnifiedResponse |
UnifiedResponse.setContentAndCharset(String sContent,
Charset aCharset) |
Utility method to set content and charset at once.
|
UnifiedResponse |
UnifiedResponse.setContentDispositionFilename(String sFilename) |
Set the content disposition filename for attachment download.
|
UnifiedResponse |
UnifiedResponse.setContentDispositionType(EContentDispositionType eContentDispositionType) |
Set the content disposition type (e.g. for PDF/Excel downloads).
|
UnifiedResponse |
UnifiedResponse.setDownloadFilename(String sFilename) |
Utility method for setting the MimeType application/force-download and set
the respective content disposition filename.
|
UnifiedResponse |
UnifiedResponse.setEmptyContent() |
Utility method to set an empty response content.
|
UnifiedResponse |
UnifiedResponse.setEnableXSSFilter(boolean bEnable) |
This header enables the Cross-site scripting (XSS) filter built into most
recent web browsers.
|
UnifiedResponse |
UnifiedResponse.setETag(String sETag) |
Set an ETag for the response.
|
UnifiedResponse |
UnifiedResponse.setETagIfApplicable(String sETag) |
Set an ETag for the response if this is an HTTP/1.1 response.
|
UnifiedResponse |
UnifiedResponse.setExpires(LocalDateTime aDT) |
|
UnifiedResponse |
UnifiedResponse.setHttpHeaderValuesQuoteIfNecessary(boolean bHttpHeaderValuesQuoteIfNecessary) |
Enable or disable the automatic quoting of HTTP header values.
|
UnifiedResponse |
UnifiedResponse.setHttpHeaderValuesUnified(boolean bHttpHeaderValuesUnified) |
Enable or disable the unification of HTTP header values.
|
UnifiedResponse |
UnifiedResponse.setLastModified(LocalDateTime aDT) |
|
UnifiedResponse |
UnifiedResponse.setMimeType(com.helger.commons.mime.IMimeType aMimeType) |
|
UnifiedResponse |
UnifiedResponse.setMimeTypeString(String sMimeType) |
|
UnifiedResponse |
UnifiedResponse.setRedirect(com.helger.commons.url.ISimpleURL aRedirectTargetUrl) |
|
UnifiedResponse |
UnifiedResponse.setRedirect(com.helger.commons.url.ISimpleURL aRedirectTargetUrl,
ERedirectMode eRedirectMode) |
|
UnifiedResponse |
UnifiedResponse.setRedirect(String sRedirectTargetUrl) |
|
UnifiedResponse |
UnifiedResponse.setRedirect(String sRedirectTargetUrl,
ERedirectMode eRedirectMode) |
|
UnifiedResponse |
UnifiedResponse.setRequestBrowserInfo(com.helger.useragent.browser.BrowserInfo aRequestBrowserInfo) |
|
UnifiedResponse |
UnifiedResponse.setStatus(int nStatusCode) |
Set the status code to be returned from the response.
|
UnifiedResponse |
UnifiedResponse.setStatusUnauthorized(String sAuthenticate) |
Special handling for returning status code 401 UNAUTHORIZED.
|
UnifiedResponse |
UnifiedResponse.setStrictTransportSecurity(int nMaxAgeSeconds,
boolean bIncludeSubdomains) |
When specifying false, this method uses a special response
header to prevent certain browsers from MIME-sniffing a response away from
the declared content-type.
|
UnifiedResponse |
UnifiedResponse.setWarnOnDuplicateCookies(boolean bWarnOnDuplicateCookies) |
Enable or disable warning message on duplicated cookie names.
|
UnifiedResponse |
UnifiedResponse.setXFrameOptions(EXFrameOptionType eType,
com.helger.commons.url.ISimpleURL aDomain) |
The X-Frame-Options HTTP response header can be used to indicate whether or
not a browser should be allowed to render a page in a <frame>,
<iframe> or <object> .
|