public class ServletHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TX_TIMEOUT_HEADER_KEY |
Modifier and Type | Method and 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) |
public static final String TX_TIMEOUT_HEADER_KEY
public static boolean startTransaction(javax.servlet.http.HttpServletRequest request)
public static String getRFC2231ContentDisposition(javax.servlet.http.HttpServletRequest request, String filename)
request
- filename
- Content-Disposition
headerpublic static void setServletContext(javax.servlet.ServletContext servletContext)
public static javax.servlet.ServletContext getServletContext()
public static void removeServletContext()
Copyright © 2017 Nuxeo. All rights reserved.