public abstract class IlvGanttServlet
extends jakarta.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(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
Responds to the servlet request.
|
void |
doPost(jakarta.servlet.http.HttpServletRequest request,
jakarta.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(jakarta.servlet.ServletConfig config)
This method is invoked by the servlet container to indicate that the
servlet is being placed into service.
|
protected void |
prepareSession(jakarta.servlet.http.HttpServletRequest request)
Prepares a session for the client.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(jakarta.servlet.ServletConfig config) throws jakarta.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 jakarta.servlet.Servlet
init
in class jakarta.servlet.GenericServlet
config
- The servlet configuration.jakarta.servlet.ServletException
protected abstract IlvGanttServletSupport createServletSupport()
protected IlvGanttServletSupport getServletSupport()
createServletSupport()
is called first.protected IlvServletConfigParameters getConfigParameters()
protected void prepareSession(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
request
- The current HTTP request.jakarta.servlet.ServletException
- if the GET
request could not be
handled.public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException
prepareSession(jakarta.servlet.http.HttpServletRequest)
and then
IlvGanttServletSupport.handleRequest(jakarta.servlet.http.HttpServletRequest, jakarta.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(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
method instead.doGet
in class jakarta.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.jakarta.servlet.ServletException
- if the GET
request could not be
handled.public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException
doGet(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
.doPost
in class jakarta.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.jakarta.servlet.ServletException
- if the request for the POST could not be
handled.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.