public abstract class IlvGanttServlet
extends javax.servlet.http.HttpServlet
Gantt chart
or a Schedule chart
. As a minimum,
your concrete subclass will need to provide an implementation of the
createServletSupport()
method that will create an appropriate
IlvGanttServletSupport
object for your application. All of the
real work performed by the servlet is delegated to this support object.Constructor and Description |
---|
IlvGanttServlet()
Creates a Gantt servlet.
|
Modifier and Type | Method and Description |
---|---|
protected abstract IlvGanttServletSupport |
createServletSupport()
Creates the servlet support object to which this servlet delegates HTTP
request handling.
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Responds to the servlet request.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Responds to the servlet request.
|
protected IlvServletConfigParameters |
getConfigParameters()
Returns the servlet's configuration parameters.
|
protected IlvGanttServletSupport |
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 to
call super.init(config)
.
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- The servlet configuration.javax.servlet.ServletException
protected abstract IlvGanttServletSupport createServletSupport()
protected IlvGanttServletSupport 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 GET
request could not be
handled.public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
prepareSession(javax.servlet.http.HttpServletRequest)
and then
IlvGanttServletSupport.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
IlvGanttServletSupport.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 GET
request could not be
handled.public 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.