Class ServletHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.web.common.ServletHelper
-
public class ServletHelper extends Object
Helpers for servlets.- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description static String
TX_TIMEOUT_HEADER_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
getServletContext()
static void
removeServletContext()
static void
setServletContext(javax.servlet.ServletContext servletContext)
static boolean
startTransaction(javax.servlet.http.HttpServletRequest request)
-
-
-
Field Detail
-
TX_TIMEOUT_HEADER_KEY
public static final String TX_TIMEOUT_HEADER_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-