|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.filters.JiraLoginFilter
public class JiraLoginFilter
This Filter
implementation is a composite of the Seraph provided LoginFilter
and HttpAuthFilter
, which will allow HTTP basic Auth and os_username based login.
HttpAuthFilter
follow a LoginFilter
in the web.xml. But by making a composite we dont have to rely
on one failign to work followed by one working. Instead we make a decision as to which one to call and thn invoke it.
And if we change the login rules in the future, we are in a better position this way in terms of coupling and encapsulation.
Constructor Summary | |
---|---|
JiraLoginFilter()
This is the production constructor that will be called by the servlet container. |
Method Summary | |
---|---|
void |
destroy()
Delegates the filter destroy to both filters. |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
Delegates the initialisation to both filters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraLoginFilter()
LoginFilter
and HttpAuthFilter
Method Detail |
---|
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
filterConfig
- the servlet filter config in play
javax.servlet.ServletException
- if stuff goes wrongpublic void destroy()
destroy
in interface javax.servlet.Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |