Class RequestData
- java.lang.Object
- 
- org.apache.jackrabbit.server.util.RequestData
 
- 
 public class RequestData extends Object RequestData...
- 
- 
Constructor SummaryConstructors Constructor Description RequestData(javax.servlet.http.HttpServletRequest request, File tmpDir)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose resources used.InputStream[]getFileParameters(String name)Returns an array of input streams for uploaded file parameters.StringgetParameter(String name)Returns the first value of the parameter with the givenname.Iterator<String>getParameterNames()Returns an iterator over all parameter names.String[]getParameterTypes(String name)Returns the content types retrieved for parameters with the specified name from the multipart ornullif the multipart does not contain parameter(s) with the given name.String[]getParameterValues(String name)Returns an array of Strings with all values of the parameter addressed byname.
 
- 
- 
- 
Constructor Detail- 
RequestDatapublic RequestData(javax.servlet.http.HttpServletRequest request, File tmpDir) throws IOException- Throws:
- IOException
 
 
- 
 - 
Method Detail- 
disposepublic void dispose() Dispose resources used.
 - 
getParameterNamespublic Iterator<String> getParameterNames() Returns an iterator over all parameter names.- Returns:
- an iterator over strings.
 
 - 
getParameterpublic String getParameter(String name) Returns the first value of the parameter with the givenname. The byte to string conversion is done using either the content type of the parameter or theformEncoding.Please note that if the addressed parameter is a file parameter, the name of the original file is returned, and not its content. - Parameters:
- name- the name of the parameter
- Returns:
- the string of the first value or nullif the parameter does not exist
 
 - 
getParameterTypespublic String[] getParameterTypes(String name) Returns the content types retrieved for parameters with the specified name from the multipart ornullif the multipart does not contain parameter(s) with the given name.- Parameters:
- name- parameter name
- Returns:
- the parameter types retrieved for the specified parameter
 name from the multipart or null.
 
 - 
getParameterValuespublic String[] getParameterValues(String name) Returns an array of Strings with all values of the parameter addressed byname. the byte to string conversion is done using either the content type of the multipart body or theformEncoding.Please note that if the addressed parameter is a file parameter, the name of the original file is returned, and not its content. - Parameters:
- name- the name of the parameter
- Returns:
- a string array of values or nullif the parameter does not exist.
 
 - 
getFileParameterspublic InputStream[] getFileParameters(String name) throws IOException Returns an array of input streams for uploaded file parameters.- Parameters:
- name- the name of the file parameter(s)
- Returns:
- an array of input streams or an empty array if no file params with the given name exist.
- Throws:
- IOException- if an I/O error occurs
 
 
- 
 
-