Example usage for Java javax.servlet.http HttpServlet fields, constructors, methods, implement or subclass
The text is from its open source code.
HttpServlet() Does nothing, because this is an abstract class. |
void | destroy() Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. |
Class> | getClass() Returns the runtime class of this Object . |
String | getInitParameter(String name) Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. |
ServletConfig | getServletConfig() Returns this servlet's ServletConfig object. |
ServletContext | getServletContext() Returns a reference to the ServletContext in which this servlet is running. |
String | getServletName() Returns the name of this servlet instance. |
void | init() A convenience method which can be overridden so that there's no need to call super.init(config) . |
void | init(ServletConfig config) Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
void | log(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. |
void | service(HttpServletRequest req, HttpServletResponse resp) Receives standard HTTP requests from the public service method and dispatches them to the do XXX methods defined in this class. |
void | service(ServletRequest req, ServletResponse res) Dispatches client requests to the protected service method. |