public abstract class IlvChartServlet
extends javax.servlet.http.HttpServlet
chart
Constructor and Description |
---|
IlvChartServlet()
Creates a Chart servlet.
|
Modifier and Type | Method and Description |
---|---|
protected abstract IlvChartServletSupport |
createServletSupport()
Creates an
IlvChartServletSupport instance. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Responds to the servlet request.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Responds to the servlet request.
|
protected IlvServletConfigParameters |
getConfigParameters()
Returns the servlet configuration parameters.
|
protected IlvChartServletSupport |
getServletSupport()
Returns the support for this servlet.
|
void |
init(javax.servlet.ServletConfig config)
This method is invoked by the servlet container to indicate that the
servlet is being placed into service.
|
protected void |
prepareSession(javax.servlet.http.HttpServletRequest request)
Prepares a session for the client.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
configuration parameters
for later use.
It is always preferable to override the init()
method
instead of this one. If you do override this method, you must make sure that
super.init(config) is called
.
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- The servlet configuration.javax.servlet.ServletException
protected abstract IlvChartServletSupport createServletSupport()
IlvChartServletSupport
instance. This method is called by the
{link #getServletSupport} method when the support has not been created.
This method should be overridden to provide a default implementation.getServletSupport()
protected IlvChartServletSupport getServletSupport()
createServletSupport()
is called first.protected IlvServletConfigParameters getConfigParameters()
protected void prepareSession(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
request
- The current HTTP request.javax.servlet.ServletException
- If the request for the GET could not be
handled.protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
prepareSession(javax.servlet.http.HttpServletRequest)
then IlvChartServletSupport.handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
.
You normally do not need to override this method. If you would like to add
a new request type, override the IlvChartServletSupport.handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method instead.doGet
in class javax.servlet.http.HttpServlet
request
- The current HTTP request.response
- The HTTP response.IOException
- If an input or output error is detected when the
servlet handles the GET request.javax.servlet.ServletException
- If the request for the GET could not be
handled.protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
.doPost
in class javax.servlet.http.HttpServlet
request
- The current HTTP request.response
- The HTTP response.IOException
- If an input or output error is detected when the
servlet handles the POST request.javax.servlet.ServletException
- If the request for the POST could not be
handled.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.