de.laures.cewolf
Class CewolfRenderer
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
de.laures.cewolf.CewolfRenderer
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, WebConstants
- public class CewolfRenderer
- extends javax.servlet.http.HttpServlet
- implements WebConstants
The rendering servlet of Cewolf. It is resposible for writing an entire chart
img into the response stream of the client. Everything needed for this is
prepared already by the ChartImgTag resp. LegendTag. The ID of a chart image
is passed to this servlet as a request parameter. After that the image object
is retrieved from the server side session based image cache. This servlet
must be configured in web.xml of the web application in order to use Cewolf
services. The servlet's URL relative to the web apps root is used as the
renderer attribute of the ChartImgTag resp. LegendTag in the JSP page.
- Since:
- 0.1
- Author:
- Guido Laures
- See Also:
ChartImgTag
,
LegendTag
,
Serialized Form
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
init(javax.servlet.ServletConfig servletCfg)
|
void |
printParameters(javax.servlet.http.HttpServletRequest request)
Processes HTTP GET request. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INIT_CONFIG
public static final java.lang.String INIT_CONFIG
- See Also:
- Constant Field Values
CewolfRenderer
public CewolfRenderer()
init
public void init(javax.servlet.ServletConfig servletCfg)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Throws:
javax.servlet.ServletException
printParameters
public void printParameters(javax.servlet.http.HttpServletRequest request)
- Processes HTTP
GET
request. Renders the chart or the lengend
into the client's response stream.
- Parameters:
request
- servlet request
- Throws:
javax.servlet.ServletException
- when the production of data could not be handled by the
configured DatasetProcuder
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © {inceptionYear}-2007 null. All Rights Reserved.