public class ParameterParser extends java.lang.Object implements BodyParser<java.util.Map<java.lang.String,java.lang.String>>
MIMEUtils.MIME_FORM_ENCODED_DATA and parameters in URI.| Constructor and Description |
|---|
ParameterParser() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
parseBody(java.io.InputStream inputStream,
java.lang.String contentType)
Parse the body.
|
static void |
parseParameters(java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.String> parameters)
Parses parameters.
|
public java.util.Map<java.lang.String,java.lang.String> parseBody(java.io.InputStream inputStream,
java.lang.String contentType)
throws java.io.IOException
BodyParserparseBody in interface BodyParser<java.util.Map<java.lang.String,java.lang.String>>inputStream - the body InputStream.contentType - the "content-type" header of the request.java.io.IOException - when an IOException occurs during the parsing.public static void parseParameters(java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.String> parameters)
throws java.io.IOException
input - the input stream from which parameters should be parsedparameters - the map to populate with the parsed parameters.java.io.IOException - if an error occurs while reading the input stream.