Package org.eclipse.jetty.servlet
Class FilterHolder
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.servlet.BaseHolder<T>
-
- org.eclipse.jetty.servlet.Holder<Filter>
-
- org.eclipse.jetty.servlet.FilterHolder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description FilterHolder()
ConstructorFilterHolder(java.lang.Class<? extends Filter> filter)
ConstructorFilterHolder(Filter filter)
Constructor for existing filter.FilterHolder(Source source)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroyInstance(java.lang.Object o)
void
doStart()
void
doStop()
void
dump(java.lang.Appendable out, java.lang.String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.Filter
getFilter()
FilterRegistration.Dynamic
getRegistration()
void
initialize()
Do any setup necessary after startingvoid
setFilter(Filter filter)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.jetty.servlet.Holder
dump, getDisplayName, getInitParameter, getInitParameterNames, getInitParameters, getName, isAsyncSupported, setAsyncSupported, setClassName, setDisplayName, setHeldClass, setInitParameter, setInitParameters, setName
-
Methods inherited from class org.eclipse.jetty.servlet.BaseHolder
getClassName, getHeldClass, getServletHandler, getSource, isInstance, setServletHandler
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
-
-
-
Constructor Detail
-
FilterHolder
public FilterHolder()
Constructor
-
FilterHolder
public FilterHolder(Source source)
Constructor- Parameters:
source
- the holder source
-
FilterHolder
public FilterHolder(java.lang.Class<? extends Filter> filter)
Constructor- Parameters:
filter
- the filter class
-
FilterHolder
public FilterHolder(Filter filter)
Constructor for existing filter.- Parameters:
filter
- the filter
-
-
Method Detail
-
doStart
public void doStart() throws java.lang.Exception
- Overrides:
doStart
in classBaseHolder<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 classBaseHolder<Filter>
- Throws:
java.lang.Exception
- if unable to initialize
-
doStop
public void doStop() throws java.lang.Exception
- Overrides:
doStop
in classBaseHolder<Filter>
- Throws:
java.lang.Exception
-
destroyInstance
public void destroyInstance(java.lang.Object o) throws java.lang.Exception
- Overrides:
destroyInstance
in classHolder<Filter>
- Throws:
java.lang.Exception
-
setFilter
public void setFilter(Filter filter)
-
getFilter
public 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 interfaceDumpable
- Overrides:
dump
in classBaseHolder<Filter>
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
java.io.IOException
- if unable to write to Appendable
-
getRegistration
public FilterRegistration.Dynamic getRegistration()
-
-