public class MultiPartBodyParser extends java.lang.Object implements BodyParser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BOUNDARY
The boundary delimiter;
|
| Constructor and Description |
|---|
MultiPartBodyParser() |
| Modifier and Type | Method and Description |
|---|---|
HTTPPart |
nextPart()
Consume the input stream from the request to get the next
HTTPPart available. |
void |
parseBody(HTTPRequest httpRequest)
Initialize the parsing, must be called before
nextPart(). |
public static final java.lang.String BOUNDARY
public void parseBody(HTTPRequest httpRequest) throws java.io.IOException
nextPart(). This function does not consume the request.parseBody in interface BodyParserhttpRequest - 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.