Interface IoFilterChain.Entry

All Known Implementing Classes:
DefaultIoFilterChain.EntryImpl, DefaultIoFilterChainBuilder.EntryImpl
Enclosing interface:
IoFilterChain

public static interface IoFilterChain.Entry
Represents a name-filter pair that an IoFilterChain contains.
  • Method Details

    • getName

      String getName()
      Returns:
      the name of the filter.
    • getFilter

      IoFilter getFilter()
      Returns:
      the filter.
    • getNextFilter

      IoFilter.NextFilter getNextFilter()
      Returns:
      The IoFilter.NextFilter of the filter.
    • addBefore

      void addBefore(String name, IoFilter filter)
      Adds the specified filter with the specified name just before this entry.
      Parameters:
      name - The Filter's name
      filter - The added Filter
    • addAfter

      void addAfter(String name, IoFilter filter)
      Adds the specified filter with the specified name just after this entry.
      Parameters:
      name - The Filter's name
      filter - The added Filter
    • replace

      void replace(IoFilter newFilter)
      Replace the filter of this entry with the specified new filter.
      Parameters:
      newFilter - The new filter that will be put in the chain
    • remove

      void remove()
      Removes this entry from the chain it belongs to.