Java javax.servlet.http HttpServlet fields, constructors, methods, implement or subclass

Example usage for Java javax.servlet.http HttpServlet fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.servlet.http HttpServlet.

The text is from its open source code.

Subclass

javax.servlet.http.HttpServlet has subclasses.
Click this link to see all its subclasses.

Constructor

HttpServlet()
Does nothing, because this is an abstract class.

Method

voiddestroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
ClassgetClass()
Returns the runtime class of this Object .
StringgetInitParameter(String name)
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.
ServletConfiggetServletConfig()
Returns this servlet's ServletConfig object.
ServletContextgetServletContext()
Returns a reference to the ServletContext in which this servlet is running.
StringgetServletName()
Returns the name of this servlet instance.
voidinit()
A convenience method which can be overridden so that there's no need to call super.init(config).
voidinit(ServletConfig config)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
voidlog(String message, Throwable t)
Writes an explanatory message and a stack trace for a given Throwable exception to the servlet log file, prepended by the servlet's name.
voidservice(HttpServletRequest req, HttpServletResponse resp)
Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class.
voidservice(ServletRequest req, ServletResponse res)
Dispatches client requests to the protected service method.