Package com.atlassian.bamboo.filter
Class SecureAccessFilter
java.lang.Object
javax.servlet.GenericFilter
javax.servlet.http.HttpFilter
com.atlassian.bamboo.filter.SecureAccessFilter
- All Implemented Interfaces:
Serializable
,javax.servlet.Filter
,javax.servlet.FilterConfig
public class SecureAccessFilter
extends javax.servlet.http.HttpFilter
Entry point to
SecureAccessFilterChain
. This will manage filters in SecureAccessFilters
- Since:
- 10.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doFilter
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.FilterChain chain) This method will do 1.static String
getPath
(javax.servlet.http.HttpServletRequest request) void
init
(javax.servlet.FilterConfig config) Methods inherited from class javax.servlet.http.HttpFilter
doFilter
Methods inherited from class javax.servlet.GenericFilter
getFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.servlet.Filter
destroy
-
Field Details
-
NOT_PERMITTED_ERROR_PATH
- See Also:
-
ORIGINAL_URL
- See Also:
-
-
Constructor Details
-
SecureAccessFilter
public SecureAccessFilter()
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException - Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classjavax.servlet.GenericFilter
- Throws:
javax.servlet.ServletException
-
doFilter
protected void doFilter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException This method will do 1. Finding which secure access annotation are apply for current login user 2. Finding which manage secure filter are apply to current request URL and dispatch type 3. Create SecureAccessFilterChain then kick off the chain from there- Overrides:
doFilter
in classjavax.servlet.http.HttpFilter
- Throws:
IOException
javax.servlet.ServletException
-
getPath
-