|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.admin.AuthCheckFilter
public class AuthCheckFilter
A simple filter which checks for the auth token in the user's session. If it's not there the filter will redirect to the login page.
Constructor Summary | |
---|---|
AuthCheckFilter()
|
Method Summary | |
---|---|
static void |
addExclude(String exclude)
Adds a new string that when present in the requested URL will skip the "is logged" checking. |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig config)
|
static void |
removeExclude(String exclude)
Removes a string that when present in the requested URL will skip the "is logged" checking. |
static boolean |
testURLPassesExclude(String url,
String exclude)
Returns true if a URL passes an exclude rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthCheckFilter()
Method Detail |
---|
public static void addExclude(String exclude)
exclude
- the string to exclude.public static void removeExclude(String exclude)
exclude
- the string that was being excluded.public static boolean testURLPassesExclude(String url, String exclude)
url
- the URL to test.exclude
- the exclude rule.
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |