Class DefaultIoFilterChainBuilder.EntryImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private IoFilter filter  
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EntryImpl​(java.lang.String name, IoFilter filter)  
    • Field Detail

      • name

        private final java.lang.String name
      • filter

        private volatile IoFilter filter
    • Constructor Detail

      • EntryImpl

        private EntryImpl​(java.lang.String name,
                          IoFilter filter)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface IoFilterChain.Entry
        Returns:
        the name of the filter.
      • setFilter

        private void setFilter​(IoFilter filter)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • addAfter

        public void addAfter​(java.lang.String name,
                             IoFilter filter)
        Adds the specified filter with the specified name just after this entry.
        Specified by:
        addAfter in interface IoFilterChain.Entry
        Parameters:
        name - The Filter's name
        filter - The added Filter
      • addBefore

        public void addBefore​(java.lang.String name,
                              IoFilter filter)
        Adds the specified filter with the specified name just before this entry.
        Specified by:
        addBefore in interface IoFilterChain.Entry
        Parameters:
        name - The Filter's name
        filter - The added Filter
      • remove

        public void remove()
        Removes this entry from the chain it belongs to.
        Specified by:
        remove in interface IoFilterChain.Entry
      • replace

        public void replace​(IoFilter newFilter)
        Replace the filter of this entry with the specified new filter.
        Specified by:
        replace in interface IoFilterChain.Entry
        Parameters:
        newFilter - The new filter that will be put in the chain