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 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(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

RequestFormUtil

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

RequestFormUtil

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

getParameter

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

getParameter

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

getParameter

public static String getParameter(javax.servlet.http.HttpServletRequest request,
                                  MultipartForm from,
                                  String name)
Deprecated. 
Returns the value found in the form or the request.


getParameter

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

getParameter

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

getParameter

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


getURLParameterDecoded

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

getURLParametersDecoded

public static Map getURLParametersDecoded(javax.servlet.http.HttpServletRequest request,
                                          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 Map getURLParametersDecoded(String queryString,
                                          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(String name)
Deprecated. 

getDocuments

public Map getDocuments()
Deprecated. 

getParameters

public Map getParameters()
Deprecated. 

getParameters

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

getParameterValues

public String[] getParameterValues(String name)
Deprecated. 

removeParameter

public void removeParameter(String name)
Deprecated. 


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