|
||||||||||
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(java.lang.String name)
Deprecated. |
java.util.Map |
getDocuments()
Deprecated. |
MultipartForm |
getForm()
Deprecated. |
static java.lang.String |
getParameter(javax.servlet.http.HttpServletRequest request,
MultipartForm from,
java.lang.String name)
Deprecated. Returns the value found in the form or the request. |
static java.lang.String |
getParameter(javax.servlet.http.HttpServletRequest request,
MultipartForm from,
java.lang.String name,
java.lang.String defaultValue)
Deprecated. Returns the defaultValue if the parameter is not found in the request or form. |
static java.lang.String |
getParameter(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Deprecated. |
static java.lang.String |
getParameter(javax.servlet.http.HttpServletRequest request,
java.lang.String name,
java.lang.String defaultValue)
Deprecated. |
java.lang.String |
getParameter(java.lang.String name)
Deprecated. |
java.lang.String |
getParameter(java.lang.String name,
java.lang.String defaultValue)
Deprecated. |
java.util.Map |
getParameters()
Deprecated. |
static java.util.Map |
getParameters(javax.servlet.http.HttpServletRequest request)
Deprecated. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Deprecated. |
static java.lang.String |
getURLParameterDecoded(javax.servlet.http.HttpServletRequest request,
java.lang.String name,
java.lang.String charset)
Deprecated. |
static java.util.Map |
getURLParametersDecoded(javax.servlet.http.HttpServletRequest request,
java.lang.String charset)
Deprecated. The url is not always properly decoded. |
static java.util.Map |
getURLParametersDecoded(java.lang.String queryString,
java.lang.String charset)
Deprecated. Extract and decodes parameters from a query string. |
void |
removeParameter(java.lang.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 java.lang.String getParameter(java.lang.String name)
name
-
public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest request, java.lang.String name)
public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest request, MultipartForm from, java.lang.String name)
public java.lang.String getParameter(java.lang.String name, java.lang.String defaultValue)
public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.String defaultValue)
public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest request, MultipartForm from, java.lang.String name, java.lang.String defaultValue)
public static java.lang.String getURLParameterDecoded(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.String charset)
request
- charset
-
public static java.util.Map getURLParametersDecoded(javax.servlet.http.HttpServletRequest request, java.lang.String charset)
request
- charset
-
public static java.util.Map getURLParametersDecoded(java.lang.String queryString, java.lang.String charset)
queryString
- query stringcharset
- charset (e.g UTF-8)public MultipartForm getForm()
public Document getDocument(java.lang.String name)
public java.util.Map getDocuments()
public java.util.Map getParameters()
public static java.util.Map getParameters(javax.servlet.http.HttpServletRequest request)
public java.lang.String[] getParameterValues(java.lang.String name)
public void removeParameter(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |