|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.control.AccessControlFilter
public class AccessControlFilter
Servlet filter that checks is user associated with request we are processing is allowed to call the specified action or business operation with the action.
Constructor Summary | |
---|---|
AccessControlFilter()
Creates a new AccessControlFilter instance. |
Method Summary | |
---|---|
void |
destroy()
Called by the container to indicate to a filter that is being taken out of service. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Apply the Access Control filter to rh request we are processing. |
protected java.lang.String |
extractPath(javax.servlet.http.HttpServletRequest request)
Identify and return the path component (from the request URI) that we will use to select an ActionConstraintConfig. |
protected java.util.Collection |
getRequiredRoles(javax.servlet.http.HttpServletRequest request,
ActionConstraintConfig constraint)
Extract a collection of required roles from the ActionContraintConfig. |
void |
init(javax.servlet.FilterConfig filterConfig)
Called by the web container to indicate to a filter that is being placed into service. |
protected org.apache.commons.digester.Digester |
initDigester()
Create and return a new Digester instance that has been initialized to process Join security control configuration files and configure a corresponding AccessControlConfig object (which must be pushed on to the evaluation stack before parsing begins). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessControlFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
filterConfig
- The configuration of this filter
javax.servlet.ServletException
- if app servlet context is not correctly initializedpublic void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
chain.doFilter()
is called. Else, user response is redierect to the page stored
under "authorization.fails.url" servlet context attribute.
doFilter
in interface javax.servlet.Filter
request
- The servlet request we are processingresponse
- The servlet response we are creatingchain
- The filter chain we are processing
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet error occurspublic void destroy()
destroy
in interface javax.servlet.Filter
protected org.apache.commons.digester.Digester initDigester()
protected java.lang.String extractPath(javax.servlet.http.HttpServletRequest request)
null
.
request
- The servlet request we are processingprotected java.util.Collection getRequiredRoles(javax.servlet.http.HttpServletRequest request, ActionConstraintConfig constraint)
request
- The servlet request we are processing.constraint
- The security control constraints related to requested action.
org.figure8.join.security.RoleConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |