info.magnolia.cms.util
Class RequestFormUtil

java.lang.Object
  extended by info.magnolia.cms.util.RequestFormUtil

Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. To access uploaded documents, use MultipartForm.

public class RequestFormUtil
extends java.lang.Object

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

RequestFormUtil

public RequestFormUtil(javax.servlet.http.HttpServletRequest request)
Deprecated. 

RequestFormUtil

public RequestFormUtil(javax.servlet.http.HttpServletRequest request,
                       MultipartForm form)
Deprecated. 
Method Detail

getParameter

public java.lang.String getParameter(java.lang.String name)
Deprecated. 
Parameters:
name -
Returns:

getParameter

public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest request,
                                            java.lang.String name)
Deprecated. 

getParameter

public 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.


getParameter

public java.lang.String getParameter(java.lang.String name,
                                     java.lang.String defaultValue)
Deprecated. 

getParameter

public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest request,
                                            java.lang.String name,
                                            java.lang.String defaultValue)
Deprecated. 

getParameter

public 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.


getURLParameterDecoded

public static java.lang.String getURLParameterDecoded(javax.servlet.http.HttpServletRequest request,
                                                      java.lang.String name,
                                                      java.lang.String charset)
Deprecated. 
Parameters:
request -
charset -
Returns:
decoded value

getURLParametersDecoded

public static java.util.Map getURLParametersDecoded(javax.servlet.http.HttpServletRequest request,
                                                    java.lang.String charset)
Deprecated. 
The url is not always properly decoded. This method does the job.

Parameters:
request -
charset -
Returns:
decoded map of all values

getURLParametersDecoded

public static java.util.Map getURLParametersDecoded(java.lang.String queryString,
                                                    java.lang.String charset)
Deprecated. 
Extract and decodes parameters from a query string.

Parameters:
queryString - query string
charset - charset (e.g UTF-8)

getForm

public MultipartForm getForm()
Deprecated. 

getDocument

public Document getDocument(java.lang.String name)
Deprecated. 

getDocuments

public java.util.Map getDocuments()
Deprecated. 

getParameters

public java.util.Map getParameters()
Deprecated. 

getParameters

public static java.util.Map getParameters(javax.servlet.http.HttpServletRequest request)
Deprecated. 

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Deprecated. 

removeParameter

public void removeParameter(java.lang.String name)
Deprecated. 


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.