Stay organized with collections
Save and categorize content based on your preferences.
publicclassHttpRequestParser
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eHttpRequestParser\u003c/code\u003e provides helper methods for parsing \u003ccode\u003emultipart/form-data\u003c/code\u003e HTTP requests.\u003c/p\u003e\n"],["\u003cp\u003eSubclasses use \u003ccode\u003eHttpRequestParser\u003c/code\u003e methods to parse requests into structured data.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes static methods \u003ccode\u003egetFieldName\u003c/code\u003e, \u003ccode\u003egetTextContent\u003c/code\u003e, and \u003ccode\u003eparseMultipartRequest\u003c/code\u003e for handling different aspects of parsing.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eparseMultipartRequest\u003c/code\u003e takes an \u003ccode\u003eHttpServletRequest\u003c/code\u003e and converts the input stream into a \u003ccode\u003eMimeMultipart\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eHttpRequestParser\u003c/code\u003e provides a default constructor for use.\u003c/p\u003e\n"]]],[],null,["# Class HttpRequestParser (2.0.0)\n\n public class HttpRequestParser\n\n`HttpRequestParser` encapsulates helper methods used to parse incoming `\nmultipart/form-data` HTTP requests. Subclasses should use these methods to parse specific\nrequests into useful data structures. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e HttpRequestParser \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### getFieldName(BodyPart part)\n\n protected static String getFieldName(BodyPart part)\n\n### getTextContent(BodyPart part)\n\n protected static String getTextContent(BodyPart part)\n\n### parseMultipartRequest(HttpServletRequest req)\n\n protected static MimeMultipart parseMultipartRequest(HttpServletRequest req)\n\nParse input stream of the given request into a MimeMultipart object.\n\nConstructors\n------------\n\n### HttpRequestParser()\n\n public HttpRequestParser()"]]