Package org.jfree.chart.servlet
Class DisplayChart
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jfree.chart.servlet.DisplayChart
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
Servlet used for streaming charts to the client browser from the temporary
directory. You need to add this servlet and mapping to your deployment
descriptor (web.xml) in order to get it to work. The syntax is as follows:
<xmp>
<servlet>
<servlet-name>DisplayChart</servlet-name>
<servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DisplayChart</servlet-name>
<url-pattern>/servlet/DisplayChart</url-pattern>
</servlet-mapping>
</xmp>
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
DisplayChart
public DisplayChart()Default constructor.
-
-
Method Details
-
init
Init method.- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
- never.
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException Service method.- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Parameters:
request
- the request.response
- the response.- Throws:
javax.servlet.ServletException
- ??.IOException
- ??.
-