public class StringBodyParser extends java.lang.Object implements BodyParser
Constructor and Description |
---|
StringBodyParser() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Gets the body.
|
boolean |
isMultipartFormEncoded()
The request contains multipart form encoded.
|
void |
parseBody(HTTPRequest httpRequest)
Parse the body.
|
java.lang.String[] |
parts()
The multiparts.
|
java.lang.String |
toString() |
public void parseBody(HTTPRequest httpRequest) throws java.io.IOException
BodyParser
parseBody
in interface BodyParser
httpRequest
- the HttpRequest with the headers parsed, the stream is at the start of the body.java.io.IOException
- when an IOException
occurs during the parsing.public java.lang.String getBody()
public boolean isMultipartFormEncoded()
public java.lang.String[] parts()
public java.lang.String toString()
toString
in class java.lang.Object