|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.servlet.FilterManager
Manages filter objects and filter chains.
FilterManager instances are created via a factory method, create(), which will return a FilterManager for the current webapp filters or null indicating that there are no filters to be managed.
| Field Summary | |
protected WebAppSecurity |
appSecurity
|
protected javax.servlet.ServletContext |
context
|
protected int |
count
|
protected java.util.Vector |
filterChains
|
protected java.util.Vector |
filterMappings
|
protected java.util.Hashtable |
filterObjects
|
protected java.lang.ClassLoader |
loader
|
protected Logger |
logger
|
static int |
MASK_BUCKET_SIZE
|
protected WebAppMetaData |
webAppMetaData
|
| Constructor Summary | |
protected |
FilterManager(javax.servlet.ServletContext context,
Logger logger,
java.lang.ClassLoader loader)
|
| Method Summary | |
protected void |
clearChainCache()
|
int |
count()
Returns the number of Filter objects under the control of this FilterManager |
static FilterManager |
create(javax.servlet.ServletContext context,
WebAppMetaData metadata,
WebAppSecurity appSecurity,
Logger logger,
java.lang.ClassLoader loader)
Factory method for creating a FilterManager object. |
protected void |
createMapping(java.lang.String map,
int mapType,
FilterObject fo)
|
void |
destroy()
Destroys all filter chains and filters |
protected void |
destroyFilters()
|
jrun.servlet.Servlet |
getFilterChain(jrun.servlet.Servlet servlet,
javax.servlet.http.HttpServletRequest request)
Gets the filter chain for the request |
protected void |
init(WebAppMetaData metadata,
WebAppSecurity appSecurity)
|
protected FilterObject |
loadFilter(java.lang.String name,
java.lang.String className,
FilterMetaData filterMetadata)
|
void |
reload(java.lang.ClassLoader loader)
Reloads the current filters. |
protected long |
setMask(long shortMask,
java.util.BitSet longMask,
int index)
Sets the bit on for the given index. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Logger logger
protected java.lang.ClassLoader loader
protected javax.servlet.ServletContext context
protected WebAppMetaData webAppMetaData
protected WebAppSecurity appSecurity
protected java.util.Hashtable filterObjects
protected java.util.Vector filterMappings
protected int count
public static final int MASK_BUCKET_SIZE
protected java.util.Vector filterChains
| Constructor Detail |
protected FilterManager(javax.servlet.ServletContext context,
Logger logger,
java.lang.ClassLoader loader)
| Method Detail |
public static FilterManager create(javax.servlet.ServletContext context,
WebAppMetaData metadata,
WebAppSecurity appSecurity,
Logger logger,
java.lang.ClassLoader loader)
Factory method for creating a FilterManager object. If there are no filters for the current webapp this method will return null so that the servlet engine can optimize the call stack.
context - The servlet context
` * @param metadata The WebAppMetaData as read from web.xmlappSecurity - WebAppSecurity to get SecurityFilters fromlogger - The loggerloader - The class loader to usepublic int count()
protected void init(WebAppMetaData metadata,
WebAppSecurity appSecurity)
protected void createMapping(java.lang.String map,
int mapType,
FilterObject fo)
protected FilterObject loadFilter(java.lang.String name,
java.lang.String className,
FilterMetaData filterMetadata)
public jrun.servlet.Servlet getFilterChain(jrun.servlet.Servlet servlet,
javax.servlet.http.HttpServletRequest request)
servlet - The servlet to invokerequest - The request
protected long setMask(long shortMask,
java.util.BitSet longMask,
int index)
public void reload(java.lang.ClassLoader loader)
loader - The new class loader to usepublic void destroy()
protected void clearChainCache()
protected void destroyFilters()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||