Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jersey-dev] Limiting request size

Hi,

Is there a Jersey-specific way to specify a size limit when reading
request InputStream? For any content type, not just
multipart/form-data

Or should I just go with the general SO suggestions such as a custom
counting InputStream subclass:
https://stackoverflow.com/questions/15445504/copy-inputstream-abort-operation-if-size-exceeds-limit/30072143#30072143

I am using Tomcat and I know there's a maxPostSize setting but no, it
doesn't do this:
https://www.mail-archive.com/search?l=users@xxxxxxxxxxxxxxxxx&q=subject:%22How+to+upload+Files+larger+than+2GB%22&o=newest&f=1


Martynas


Back to the top