org.apache.cxf.interceptor.security
Class DepthRestrictingStreamInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.apache.cxf.interceptor.security.DepthRestrictingStreamInterceptor
- 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 DepthRestrictingStreamInterceptor
- extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
Creates an XMLStreamReader from the InputStream on the Message.
| Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor |
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DepthRestrictingStreamInterceptor
public DepthRestrictingStreamInterceptor()
DepthRestrictingStreamInterceptor
public DepthRestrictingStreamInterceptor(String phase)
DepthRestrictingStreamInterceptor
public DepthRestrictingStreamInterceptor(String phase,
List<String> after)
DepthRestrictingStreamInterceptor
public DepthRestrictingStreamInterceptor(String phase,
List<String> before,
List<String> after)
handleMessage
public void handleMessage(org.apache.cxf.message.Message message)
canBeIgnored
protected boolean canBeIgnored(org.apache.cxf.message.Message message)
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()
Apache CXF