It seems there are several different possible approaches to this with CXF.  The 
goal is to set a max byte count limit on uploads.

I took a look here: 
http://cxf.apache.org/docs/jax-rs-multiparts.html#JAX-RSMultiparts-Readinglargeattachments

They show how to configure <jaxrs:properties> with 

<entry key="attachment-memory-threshold" value="404800"/>
         
<entry key="attachment-max-size" value="404800"/>

I tried using these values on the port in question, but they seemed to have no 
effect.  I could post massive files that exceeded the limit.

So, there are Interceptors, Filters, and MessageBodyReaders -- I suppose this 
task could be done in any of those.

I'm just wondering if there is some out-of-the-box support for this 
functionality already, and if not, what would the recommended path be?

Thanks in advance!

Davis

Reply via email to