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
        Description copied from class: AbstractLifeCycle
        Method to override to start the lifecycle
        Overrides:
        doStart in class BaseHolder<javax.servlet.Filter>
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • 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
      • createInstance

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

        public void doStop()
                    throws java.lang.Exception
        Description copied from class: AbstractLifeCycle
        Method to override to stop the lifecycle
        Overrides:
        doStop in class BaseHolder<javax.servlet.Filter>
        Throws:
        java.lang.Exception - If there was a problem stopping. Will cause a transition to FAILED state
      • destroyInstance

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

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

        public javax.servlet.Filter getFilter()
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • 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()