All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.apache.tomcat.core.ServletWrapper

java.lang.Object
   |
   +----org.apache.tomcat.core.ServletWrapper

public class ServletWrapper
extends Object
Class used to represent a servlet inside a Context.

Author:
James Duncan Davidson [duncan@eng.sun.com], Jason Hunter [jch@eng.sun.com], James Todd [gonzo@eng.sun.com], Harish Prabandham, costin@dnt.ro

Variable Index

 o config
 o context
 o contextM
 o description
 o isReloadable
 o lastAccessed
 o serviceCount
 o servlet
 o servletClass
 o servletClassName
 o sm

Constructor Index

 o ServletWrapper()

Method Index

 o addInitParam(String, String)
 o addSecurityMapping(String, String, String)
Security Role Ref represent a mapping between servlet role names and server roles
 o getContext()
 o getLoadOnStartUp()
 o getPath()
 o getSecurityRole(String)
 o getServlet()
 o getServletClass()
 o getServletDescription()
 o getServletName()
 o handleRequest(HttpServletRequestFacade, HttpServletResponseFacade)
Deprecated.
 o handleRequest(Request, Response)
 o loadServlet()
Load and init a the servlet pointed by this wrapper Deprecated.
 o setContext(Context)
 o setLoadOnStartUp(int)
 o setLoadOnStartUp(String)
 o setPath(String)
 o setServletClass(String)
 o setServletDescription(String)
 o setServletName(String)
 o toString()

Variables

 o sm
 protected StringManager sm
 o context
 protected Context context
 o contextM
 protected ContextManager contextM
 o servletClassName
 protected String servletClassName
 o config
 protected ServletConfigImpl config
 o servlet
 protected Servlet servlet
 o servletClass
 protected Class servletClass
 o description
 protected String description
 o isReloadable
 protected boolean isReloadable
 o lastAccessed
 protected long lastAccessed
 o serviceCount
 protected int serviceCount

Constructors

 o ServletWrapper
 public ServletWrapper()

Methods

 o setContext
 public void setContext(Context context)
 o getContext
 protected Context getContext()
 o setLoadOnStartUp
 public void setLoadOnStartUp(int level)
 o setLoadOnStartUp
 public void setLoadOnStartUp(String level)
 o getLoadOnStartUp
 public int getLoadOnStartUp()
 o getServletName
 public String getServletName()
 o setServletName
 public void setServletName(String servletName)
 o getPath
 public String getPath()
 o setPath
 public void setPath(String path)
 o getServletDescription
 public String getServletDescription()
 o setServletDescription
 public void setServletDescription(String description)
 o getServletClass
 public String getServletClass()
 o setServletClass
 public void setServletClass(String servletClassName)
 o addSecurityMapping
 public void addSecurityMapping(String name,
                                String role,
                                String description)
Security Role Ref represent a mapping between servlet role names and server roles

 o getSecurityRole
 public String getSecurityRole(String name)
 o getServlet
 public Servlet getServlet()
 o addInitParam
 public void addInitParam(String name,
                          String value)
 o loadServlet
 public void loadServlet() throws ClassNotFoundException, InstantiationException, IllegalAccessException, ServletException
Note: loadServlet() is deprecated. loadServlet is used with the meaning of initServlet. Use the real thing.

Load and init a the servlet pointed by this wrapper

 o handleRequest
 public void handleRequest(Request req,
                           Response res)
 o handleRequest
 public void handleRequest(HttpServletRequestFacade request,
                           HttpServletResponseFacade response)
Note: handleRequest() is deprecated.

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index