ishiahirake
ishiahirake

Reputation: 347

What does the javax.servlet.http.Part stand for?

What does Part stand for? And which http request will reduce Parts that can be fetched by HttpServletRequest#getParts() method?

Please give a example, thanks.

Upvotes: 0

Views: 266

Answers (1)

Josh Ghiloni
Josh Ghiloni

Reputation: 1300

It represents the chunks of a HTTP request that was sent with Content-Type multipart/form-data. It can therefore be anything, as each part has its own Content-Type and name, so traditional request parameters, JSON, XML, and that's how files are uploaded.

Upvotes: 2

Related Questions