Class DepthRestrictingStreamInterceptor

    • Constructor Detail

      • 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 Detail

      • 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()