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 Details

    • 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)
  • Method Details

    • handleMessage

      public void handleMessage(Message message)
      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

      protected boolean canBeIgnored(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()