public abstract class HttpServlet
extends javax.servlet.http.HttpServlet
HttpServlet
has an auto-init system, that automatically invokes
the method matching the signature void setX(<Type>)
,
for every init-parameter x
. Both camelCase and lisp-style parameter
naming is supported, lisp-style names will be converted to camelCase.
Parameter values are automatically converted from string representation to
most basic types, if necessary.Constructor and Description |
---|
HttpServlet() |
Modifier and Type | Method and Description |
---|---|
void |
init(javax.servlet.ServletConfig pConfig)
Called by the web container to indicate to a servlet that it is being
placed into service.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig pConfig) throws javax.servlet.ServletException
ServletConfig
object it
receives from the servlet container for later use. When overriding this
form of the method, call super.init(config)
.
This implementation will also set all configured key/value pairs, that
have a matching setter method annotated with InitParam
.init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
pConfig
- the servlet configjavax.servlet.ServletException
- if an error occurred during initGenericServlet.init(javax.servlet.ServletConfig)
,
init
,
BeanUtil.configure(Object, java.util.Map, boolean)
Copyright © 2017. All rights reserved.