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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canBeIgnored
(Message message) int
int
int
void
handleMessage
(Message message) Intercepts a message.void
setElementCountThreshold
(int elementCountThreshold) Sets the acceptable total number of elements in the XML payloadvoid
setInnerElementCountThreshold
(int innerElementCountThreshold) Sets the acceptable total number of child elements for the current XML elementvoid
setInnerElementLevelThreshold
(int elementLevelThreshold) Sets the acceptable total stack depth in the XML payloadMethods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
Constructor Details
-
DepthRestrictingStreamInterceptor
public DepthRestrictingStreamInterceptor() -
DepthRestrictingStreamInterceptor
-
DepthRestrictingStreamInterceptor
-
DepthRestrictingStreamInterceptor
-
-
Method Details
-
handleMessage
Description copied from interface:Interceptor
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this. -
canBeIgnored
-
setElementCountThreshold
public void setElementCountThreshold(int elementCountThreshold) Sets the acceptable total number of elements in the XML payload- Parameters:
elementCountThreshold
-
-
getElementCountThreshold
public int getElementCountThreshold() -
setInnerElementLevelThreshold
public void setInnerElementLevelThreshold(int elementLevelThreshold) Sets the acceptable total stack depth in the XML payload- Parameters:
elementLevelThreshold
-
-
getInnerElementLevelThreshold
public int getInnerElementLevelThreshold() -
setInnerElementCountThreshold
public void setInnerElementCountThreshold(int innerElementCountThreshold) Sets the acceptable total number of child elements for the current XML element- Parameters:
innerElementCountThreshold
-
-
getInnerElementCountThreshold
public int getInnerElementCountThreshold()
-