Class DepthRestrictingStreamInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
org.apache.cxf.interceptor.security.DepthRestrictingStreamInterceptor
- All Implemented Interfaces:
- Interceptor<Message>,- PhaseInterceptor<Message>
Creates an XMLStreamReader from the InputStream on the Message.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanBeIgnored(Message message) intintintvoidhandleMessage(Message message) Intercepts a message.voidsetElementCountThreshold(int elementCountThreshold) Sets the acceptable total number of elements in the XML payloadvoidsetInnerElementCountThreshold(int innerElementCountThreshold) Sets the acceptable total number of child elements for the current XML elementvoidsetInnerElementLevelThreshold(int elementLevelThreshold) Sets the acceptable total stack depth in the XML payloadMethods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptoraddAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
- 
Constructor Details- 
DepthRestrictingStreamInterceptorpublic DepthRestrictingStreamInterceptor()
- 
DepthRestrictingStreamInterceptor
- 
DepthRestrictingStreamInterceptor
- 
DepthRestrictingStreamInterceptor
 
- 
- 
Method Details- 
handleMessageDescription copied from interface:InterceptorIntercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.
- 
canBeIgnored
- 
setElementCountThresholdpublic void setElementCountThreshold(int elementCountThreshold) Sets the acceptable total number of elements in the XML payload- Parameters:
- elementCountThreshold-
 
- 
getElementCountThresholdpublic int getElementCountThreshold()
- 
setInnerElementLevelThresholdpublic void setInnerElementLevelThreshold(int elementLevelThreshold) Sets the acceptable total stack depth in the XML payload- Parameters:
- elementLevelThreshold-
 
- 
getInnerElementLevelThresholdpublic int getInnerElementLevelThreshold()
- 
setInnerElementCountThresholdpublic void setInnerElementCountThreshold(int innerElementCountThreshold) Sets the acceptable total number of child elements for the current XML element- Parameters:
- innerElementCountThreshold-
 
- 
getInnerElementCountThresholdpublic int getInnerElementCountThreshold()
 
-