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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

  • Constructor Details

    • SecureAccessFilter

      public SecureAccessFilter()
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Overrides:
      init in class javax.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 class javax.servlet.http.HttpFilter
      Throws:
      IOException
      javax.servlet.ServletException
    • getPath

      public static String getPath(javax.servlet.http.HttpServletRequest request)