public class

JiraJohnsonFilter

extends AbstractJohnsonFilter
java.lang.Object
   ↳ com.atlassian.johnson.filters.AbstractJohnsonFilter
     ↳ com.atlassian.jira.web.filters.johnson.JiraJohnsonFilter

Class Overview

Enhances the base JohnsonFilter with awareness of the startup page.

Summary

[Expand]
Inherited Constants
From class com.atlassian.johnson.filters.AbstractJohnsonFilter
[Expand]
Inherited Fields
From class com.atlassian.johnson.filters.AbstractJohnsonFilter
Public Constructors
JiraJohnsonFilter()
Public Methods
void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain)
static String getServletPathFromRequest(HttpServletRequest request)
Re-publishes getServletPath(HttpServletRequest) with public access.
Protected Methods
void handleError(JohnsonEventContainer container, HttpServletRequest request, HttpServletResponse response)
void handleNotSetup(HttpServletRequest request, HttpServletResponse response)
[Expand]
Inherited Methods
From class com.atlassian.johnson.filters.AbstractJohnsonFilter
From class java.lang.Object
From interface javax.servlet.Filter

Public Constructors

public JiraJohnsonFilter ()

Public Methods

public void doFilter (ServletRequest request, ServletResponse response, FilterChain filterChain)

Throws
IOException
ServletException

public static String getServletPathFromRequest (HttpServletRequest request)

Re-publishes getServletPath(HttpServletRequest) with public access. In its infinite wisdom, AbstractJohnsonFilter restricts this extraordinarily useful method to protected scope. This is the wrong place for that useful code to live, but the other choice is to copy-and-paste the code.

Parameters
request the servlet request from which to extract the servlet path
Returns
  • the servlet path, which is the application context-scoped part of the URL. In other words, for http://localhost:8090/jira/secure/foo.jsp, the result is /secure/foo.jsp.

Protected Methods

protected void handleError (JohnsonEventContainer container, HttpServletRequest request, HttpServletResponse response)

Throws
IOException

protected void handleNotSetup (HttpServletRequest request, HttpServletResponse response)

Throws
IOException