Class DepthRestrictingStreamInterceptor
- java.lang.Object
- 
- org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
- 
- org.apache.cxf.interceptor.security.DepthRestrictingStreamInterceptor
 
 
- 
- All Implemented Interfaces:
- Interceptor<Message>,- PhaseInterceptor<Message>
 
 public class DepthRestrictingStreamInterceptor extends AbstractPhaseInterceptor<Message> Creates an XMLStreamReader from the InputStream on the Message.
- 
- 
Constructor SummaryConstructors Constructor Description DepthRestrictingStreamInterceptor()DepthRestrictingStreamInterceptor(String phase)DepthRestrictingStreamInterceptor(String phase, List<String> after)DepthRestrictingStreamInterceptor(String phase, List<String> before, List<String> after)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanBeIgnored(Message message)intgetElementCountThreshold()intgetInnerElementCountThreshold()intgetInnerElementLevelThreshold()voidhandleMessage(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 payload- 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptoraddAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
 
- 
 
- 
- 
- 
Method Detail- 
handleMessagepublic void handleMessage(Message message) Description 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.
 - 
canBeIgnoredprotected boolean canBeIgnored(Message message) 
 - 
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() 
 
- 
 
-