Class ServletHelper
java.lang.Object
org.nuxeo.ecm.platform.web.common.ServletHelper
Helpers for servlets.
- Since:
- 5.6
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getRFC2231ContentDisposition
(javax.servlet.http.HttpServletRequest request, String filename) Generate a Content-Disposition string based on the servlet request for a given filename.static javax.servlet.ServletContext
static void
static void
setServletContext
(javax.servlet.ServletContext servletContext) static boolean
startTransaction
(javax.servlet.http.HttpServletRequest request)
-
Field Details
-
TX_TIMEOUT_HEADER_KEY
- See Also:
-
-
Method Details
-
startTransaction
public static boolean startTransaction(javax.servlet.http.HttpServletRequest request) -
getRFC2231ContentDisposition
public static String getRFC2231ContentDisposition(javax.servlet.http.HttpServletRequest request, String filename) Generate a Content-Disposition string based on the servlet request for a given filename. The value follows RFC2231- Returns:
- a full string to set as value of a
Content-Disposition
header - Since:
- 5.7.2
-
setServletContext
public static void setServletContext(javax.servlet.ServletContext servletContext) - Since:
- 8.3
-
getServletContext
public static javax.servlet.ServletContext getServletContext()- Since:
- 8.3
-
removeServletContext
public static void removeServletContext()- Since:
- 8.3
-