Package ej.hoka.http.body
Class MultipartStringsParser
- java.lang.Object
-
- ej.hoka.http.body.MultipartStringsParser
-
- All Implemented Interfaces:
BodyParser<java.lang.String[]>
public class MultipartStringsParser extends java.lang.Object implements BodyParser<java.lang.String[]>
A body parser forMime.MIME_MULTIPART_FORM_ENCODED_DATAthat parse parts as strings.
-
-
Constructor Summary
Constructors Constructor Description MultipartStringsParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]parseBody(java.io.InputStream inputStream, java.lang.String contentType)Parse the body.
-
-
-
Method Detail
-
parseBody
public java.lang.String[] parseBody(java.io.InputStream inputStream, @Nullable java.lang.String contentType) throws java.io.IOExceptionDescription copied from interface:BodyParserParse the body.- Specified by:
parseBodyin interfaceBodyParser<java.lang.String[]>- Parameters:
inputStream- the bodyInputStream.contentType- the"content-type"header of the request.- Returns:
- the body.
- Throws:
java.io.IOException- when anIOExceptionoccurs during the parsing.
-
-