Class FilterHolder

    • Constructor Detail

      • FilterHolder

        public FilterHolder()
        Constructor
      • FilterHolder

        public FilterHolder​(Source source)
        Constructor
        Parameters:
        source - the holder source
      • FilterHolder

        public FilterHolder​(java.lang.Class<? extends javax.servlet.Filter> filter)
        Constructor
        Parameters:
        filter - the filter class
      • FilterHolder

        public FilterHolder​(javax.servlet.Filter filter)
        Constructor for existing filter.
        Parameters:
        filter - the filter
    • Method Detail

      • doStart

        public void doStart()
                     throws java.lang.Exception
        Overrides:
        doStart in class BaseHolder<javax.servlet.Filter>
        Throws:
        java.lang.Exception
      • initialize

        public void initialize()
                        throws java.lang.Exception
        Description copied from class: BaseHolder
        Do any setup necessary after starting
        Overrides:
        initialize in class BaseHolder<javax.servlet.Filter>
        Throws:
        java.lang.Exception - if unable to initialize
      • doStop

        public void doStop()
                    throws java.lang.Exception
        Overrides:
        doStop in class BaseHolder<javax.servlet.Filter>
        Throws:
        java.lang.Exception
      • destroyInstance

        public void destroyInstance​(java.lang.Object o)
                             throws java.lang.Exception
        Overrides:
        destroyInstance in class Holder<javax.servlet.Filter>
        Throws:
        java.lang.Exception
      • setFilter

        public void setFilter​(javax.servlet.Filter filter)
      • getFilter

        public javax.servlet.Filter getFilter()
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Overrides:
        dump in class BaseHolder<javax.servlet.Filter>
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Holder<javax.servlet.Filter>
      • getRegistration

        public javax.servlet.FilterRegistration.Dynamic getRegistration()