|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.RequestFormUtil
MultipartForm
.
public class RequestFormUtil
Sometimes one get the parameters via form (multipart-post) and via request (get, normal post). Using this Util you have not to care.
Constructor Summary | |
---|---|
RequestFormUtil(javax.servlet.http.HttpServletRequest request)
Deprecated. |
|
RequestFormUtil(javax.servlet.http.HttpServletRequest request,
MultipartForm form)
Deprecated. |
Method Summary | |
---|---|
Document |
getDocument(String name)
Deprecated. |
Map |
getDocuments()
Deprecated. |
MultipartForm |
getForm()
Deprecated. |
static String |
getParameter(javax.servlet.http.HttpServletRequest request,
MultipartForm from,
String name)
Deprecated. Returns the value found in the form or the request. |
static String |
getParameter(javax.servlet.http.HttpServletRequest request,
MultipartForm from,
String name,
String defaultValue)
Deprecated. Returns the defaultValue if the parameter is not found in the request or form. |
static String |
getParameter(javax.servlet.http.HttpServletRequest request,
String name)
Deprecated. |
static String |
getParameter(javax.servlet.http.HttpServletRequest request,
String name,
String defaultValue)
Deprecated. |
String |
getParameter(String name)
Deprecated. |
String |
getParameter(String name,
String defaultValue)
Deprecated. |
Map |
getParameters()
Deprecated. |
static Map |
getParameters(javax.servlet.http.HttpServletRequest request)
Deprecated. |
String[] |
getParameterValues(String name)
Deprecated. |
static String |
getURLParameterDecoded(javax.servlet.http.HttpServletRequest request,
String name,
String charset)
Deprecated. |
static Map |
getURLParametersDecoded(javax.servlet.http.HttpServletRequest request,
String charset)
Deprecated. The url is not always properly decoded. |
static Map |
getURLParametersDecoded(String queryString,
String charset)
Deprecated. Extract and decodes parameters from a query string. |
void |
removeParameter(String name)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestFormUtil(javax.servlet.http.HttpServletRequest request)
public RequestFormUtil(javax.servlet.http.HttpServletRequest request, MultipartForm form)
Method Detail |
---|
public String getParameter(String name)
name
-
public static String getParameter(javax.servlet.http.HttpServletRequest request, String name)
public static String getParameter(javax.servlet.http.HttpServletRequest request, MultipartForm from, String name)
public String getParameter(String name, String defaultValue)
public static String getParameter(javax.servlet.http.HttpServletRequest request, String name, String defaultValue)
public static String getParameter(javax.servlet.http.HttpServletRequest request, MultipartForm from, String name, String defaultValue)
public static String getURLParameterDecoded(javax.servlet.http.HttpServletRequest request, String name, String charset)
request
- charset
-
public static Map getURLParametersDecoded(javax.servlet.http.HttpServletRequest request, String charset)
request
- charset
-
public static Map getURLParametersDecoded(String queryString, String charset)
queryString
- query stringcharset
- charset (e.g UTF-8)public MultipartForm getForm()
public Document getDocument(String name)
public Map getDocuments()
public Map getParameters()
public static Map getParameters(javax.servlet.http.HttpServletRequest request)
public String[] getParameterValues(String name)
public void removeParameter(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |