Interface: javax.servlet.ServletConfig
- public interface ServletConfig
A servlet configuration object used by a servlet container
to pass information to a servlet during initialization.
Methods
-
getInitParametertop
Returns aStringcontaining the value of the named initialization parameter, ornullif the parameter does not exist. -
getInitParameterNamestop
public Enumeration getInitParameterNames()Returns the names of the servlet's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the servlet has no initialization parameters. -
getServletContexttop
public ServletContext getServletContext()Returns a reference to the javax.servlet.ServletContext in which the caller is executing. -
getServletNametop
public String getServletName()Returns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.
