public class StringBodyParser extends java.lang.Object implements BodyParser<java.lang.String>
| Constructor and Description |
|---|
StringBodyParser() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
parseBody(java.io.InputStream inputStream,
java.lang.String contentType)
Parse the body.
|
public java.lang.String parseBody(java.io.InputStream inputStream,
java.lang.String contentType)
throws java.io.IOException
BodyParserparseBody in interface BodyParser<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.