de.tuberlin.cs.flp.jspwiki.util
|
|||
public static
Map
|
getMultipartFormData(HttpServletRequest request)
Get POSTed file-upload data from request.
(HttpRequest still does not support this on its own.)
|
||
public static
Map
|
getMultipartFormData(HttpServletRequest request, String encoding)
Get POSTed file-upload data from request.
(HttpRequest still does not support this on its own.)
|
||
public static
boolean
|
isMultipartFormData(HttpServletRequest request)
Get POSTed file-upload data from request.
(It is a little shame that HttpRequest still does not support this on its own.)
|
||
private static
Properties
|
parseKeyValuePairs(String s)
Parse key/value pairs in a string. Key and value are sperated by '='.
the pairs are seperated by whitespace or ';'.
Multiple occurrences of the same key will result in a String[]-array
parse result for that key.
|
||
public static
void
|
parseMultiPartFormData(byte[] b, Map parameters, String encoding)
Parse multipart-formdata from data sent via POST method.
Does not support multiple parameters with the same name (delivering an array).
|
||
private static
void
|
putMulti(Map m, String key, String val)
Puts a string value into a map, if an entry alreeady exists,
uses a string[]-array to collect multiple values.
|
Tagged Values | |
static
|
false
|
documentation#author
|
Jens Gulden
|
documentation#version
|
0.1.0
|
|
public static
Map
getMultipartFormData(HttpServletRequest request)
request
- The request.
public static
Map
getMultipartFormData(HttpServletRequest request, String encoding)
request
- The request.
encoding
- the string encoding charset to use
public static
boolean isMultipartFormData(HttpServletRequest request)
request
- The request.
private static
Properties
parseKeyValuePairs(String s)
s
- The string to parse.
public static
void parseMultiPartFormData(byte[] b, Map parameters, String encoding)
Method Tagged Values | |
documentation#throws
|
IOException if an i/o error occurs
|
b
- data bytes
parameters
- The parameters.
encoding
- The encoding.
private static
void putMulti(Map m, String key, String val)
m
- The map to put a key/value-pair into.
key
- The key.
val
- The value.