|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.web.PermissionFilter
public class PermissionFilter
Filter implementation to apply transparent access permissions to web applications developed using the Toolbox API. The filter obtains a collection of access permissions from an XML configuration file.
| Nested Class Summary | |
|---|---|
(package private) class |
PermissionFilter.Permission
Inner class that represents a single access permission. |
| Constructor Summary | |
|---|---|
PermissionFilter()
Default constructor |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy this filter |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Attempt to authorise the session to access the requested resource (template/action). |
void |
init(javax.servlet.FilterConfig config)
Initialise the filter by parsing the XML configuration and creating an in memory image of the access permissions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermissionFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterconfig - Filter configuration.
javax.servlet.ServletException - if the filter cannot be initialised.
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws javax.servlet.ServletException,
java.io.IOException
doFilter in interface javax.servlet.Filterrequest - The servlet request.response - The servlet response.chain - The filter chain.
javax.servlet.ServletException - if an exception occurs during authorisation.
java.io.IOException - if an exception occurs during authorisation.public void destroy()
destroy in interface javax.servlet.Filter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||