|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.filter.AuthenticationFilter
public class AuthenticationFilter
A filter to handle user authentcation. You should use this filter to protect your actions from unauthorized access.
| Field Summary | |
|---|---|
static String |
AJAX_DENIED
|
static String |
LOGIN
|
static String |
URL_KEY
|
| Constructor Summary | |
|---|---|
AuthenticationFilter()
Creates a new authentication filter. |
|
| Method Summary | |
|---|---|
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed. |
String |
filter(InvocationChain chain)
Executes the filter. |
static void |
setCallbackUrl(javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest req)
Sets a callback url for a redirection after the login. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOGIN
public static final String AJAX_DENIED
public static final String URL_KEY
| Constructor Detail |
|---|
public AuthenticationFilter()
| Method Detail |
|---|
public String filter(InvocationChain chain)
throws Exception
Filter
filter in interface Filterchain - The InvocationChain for the action this filter is being applied to.
Exception
public static void setCallbackUrl(javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest req)
session - The HttpSession where to put the URL.req - The HttpServletRequest from where to get the URL.public void destroy()
Filter
destroy in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||