|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.scmwebgui.AccessFilter
public class AccessFilter
This filter checks that the access is valid, and provides user credentials and other context info to the following steps.
Field Summary | |
---|---|
static java.lang.String |
PROJECT_STRUCTURE_INIT_PARAM
This filter's initial parameter specifies the file name used in all the projects for the multiproject |
static java.lang.String |
REQUEST_CTX_ATTRIB
Request attribute for RequestContext object |
protected javax.servlet.ServletContext |
servletCtx
|
java.lang.String |
structureFileName
|
static java.lang.String |
SUBSCRIPTIONS_ROOT_INIT_PARAM
This filter's initial parameter specifies the multiproject root in the filesystem |
static java.lang.String |
USER_SESSION_ATTRIBUTE
User session attribute |
Constructor Summary | |
---|---|
AccessFilter()
Default constructor |
Method Summary | |
---|---|
void |
destroy()
Called by servlet container when web app is being destroyed. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Filters the incoming request, logging the total process time and performing the access filter. |
void |
init(javax.servlet.FilterConfig cfg)
Initializes access filter, instantiating a Multiproject object from the initial parameter "multiprojectRoot" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROJECT_STRUCTURE_INIT_PARAM
public static final java.lang.String SUBSCRIPTIONS_ROOT_INIT_PARAM
public static final java.lang.String USER_SESSION_ATTRIBUTE
public static final java.lang.String REQUEST_CTX_ATTRIB
protected javax.servlet.ServletContext servletCtx
public java.lang.String structureFileName
Constructor Detail |
---|
public AccessFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig cfg) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
cfg
- The filter configuration object
javax.servlet.ServletException
- Thrown if there's an error building the Multiproject objectpublic void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
request
- response
- chain
-
java.io.IOException
javax.servlet.ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |