Package org.apache.tika.server.core
Class RequestReadDeadlineInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.apache.tika.server.core.RequestReadDeadlineInterceptor
- All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>
public class RequestReadDeadlineInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
Runs on every request as it is received, before resource matching, so it also covers
requests CXF answers itself (OPTIONS, 404, 405, ...). Stops CXF spooling the unread body
to disk once a response starts, and puts the
maxRequestReadMillis deadline on the
wire, so the up to 16 MiB CXF then discards cannot be dripped in forever.
MaxRequestSizeFilter bounds the entity stream of matched requests.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
Constructor Details
-
RequestReadDeadlineInterceptor
public RequestReadDeadlineInterceptor(long maxRequestReadMillis) - Parameters:
maxRequestReadMillis- how long reading the body may take; negative disables it
-
-
Method Details
-
handleMessage
public void handleMessage(org.apache.cxf.message.Message message)
-