Interface DOMTraversalContext

All Known Implementing Classes:
CRDetectionStage.Context, ElementsStrippingStage.Context, SimpleDOMTraversalContext, X509ValidationStage.Context

public interface DOMTraversalContext
The context for a particular DOM traversal.

Implementations may add additional fields and methods to the definition of a DOMTraversalContext, and may define end() to perform operations at the end of the traversal.

Note that classes implementing this interface will normally be used only by the thread in which they are created, so implementations are not required to be thread-safe.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end()
    Perform any clean-up or final operations for the traversal.
    Get the Item this traversal is being performed on.
  • Method Details

    • getItem

      @Nonnull Item<Element> getItem()
      Get the Item this traversal is being performed on.
      Returns:
      the context Item
    • end

      void end()
      Perform any clean-up or final operations for the traversal. Called at the end of the traversal, may be overridden by subclasses.