com.atlassian.jira.charts.jfreechart
Class DisplayChartServlet

java.lang.Object
  extended by com.atlassian.jira.charts.jfreechart.DisplayChartServlet
All Implemented Interfaces:
javax.servlet.Servlet

public class DisplayChartServlet
extends Object
implements javax.servlet.Servlet

Display chart servlet that delegates processing to DisplayChart, after a few additional checks have been done on the filename request parameter. If there is an attempted path traversal, it is logged and a 404 is returned.

Since:
v4.4.5
See Also:
PathUtils.ensurePathInSecureDir(String, String)

Field Summary
static org.slf4j.Logger log
          Logger for DisplayChartServlet.
 
Constructor Summary
DisplayChartServlet()
           
 
Method Summary
 void destroy()
           
 javax.servlet.ServletConfig getServletConfig()
           
 String getServletInfo()
           
 void init(javax.servlet.ServletConfig config)
           
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.slf4j.Logger log
Logger for DisplayChartServlet.

Constructor Detail

DisplayChartServlet

public DisplayChartServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Specified by:
service in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException
IOException

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Specified by:
getServletConfig in interface javax.servlet.Servlet

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet


Copyright © 2002-2013 Atlassian. All Rights Reserved.