Class HttpRequestParser (2.0.0)

public class HttpRequestParser

HttpRequestParser encapsulates helper methods used to parse incoming multipart/form-data HTTP requests. Subclasses should use these methods to parse specific requests into useful data structures.

Inheritance

java.lang.Object > HttpRequestParser

Static Methods

getFieldName(BodyPart part)

protected static String getFieldName(BodyPart part)
Parameter
Name Description
part BodyPart
Returns
Type Description
String
Exceptions
Type Description
MessagingException

getTextContent(BodyPart part)

protected static String getTextContent(BodyPart part)
Parameter
Name Description
part BodyPart
Returns
Type Description
String
Exceptions
Type Description
MessagingException
IOException

parseMultipartRequest(HttpServletRequest req)

protected static MimeMultipart parseMultipartRequest(HttpServletRequest req)

Parse input stream of the given request into a MimeMultipart object.

Parameter
Name Description
req jakarta.servlet.http.HttpServletRequest
Returns
Type Description
MimeMultipart

A MimeMultipart object representing the POST data.

Exceptions
Type Description
IOException

if the input stream cannot be read.

MessagingException

if the input stream cannot be read.

Constructors

HttpRequestParser()

public HttpRequestParser()