#include <ServletConfig.h>
Public Member Functions | |
virtual | ~ServletConfig () |
virtual std::string | getServletName () const =0 |
virtual ServletContext & | getServletContext () const =0 |
virtual std::string | getInitParameter (const std::string &name) const =0 |
virtual std::auto_ptr < std::vector< std::string > > | getInitParameterNames () const =0 |
A servlet configuration object used by a servlet container to pass information to a servlet during initialization.
Definition at line 73 of file ServletConfig.h.
virtual servlet::ServletConfig::~ServletConfig | ( | ) | [inline, virtual] |
Definition at line 75 of file ServletConfig.h.
virtual std::string servlet::ServletConfig::getInitParameter | ( | const std::string & | name | ) | const [pure virtual] |
Returns a String
containing the value of the named initialization parameter, or null
if the parameter does not exist.
name | a String specifying the name of the initialization parameter |
String
containing the value of the initialization parameter Implemented in container::ServletConfigImpl, and servlet::GenericServlet.
virtual std::auto_ptr< std::vector<std::string> > servlet::ServletConfig::getInitParameterNames | ( | ) | const [pure virtual] |
Returns the names of the servlet's initialization parameters as an Enumeration
of String
objects, or an empty Enumeration
if the servlet has no initialization parameters.
Enumeration
of String
objects containing the names of the servlet's initialization parameters Implemented in container::ServletConfigImpl, and servlet::GenericServlet.
Referenced by servlet::GenericServlet::getInitParameterNames().
virtual ServletContext& servlet::ServletConfig::getServletContext | ( | ) | const [pure virtual] |
Returns a reference to the servlet::ServletContext in which the caller is executing.
Implemented in container::ServletConfigImpl, and servlet::GenericServlet.
Referenced by servlet::GenericServlet::getServletContext().
virtual std::string servlet::ServletConfig::getServletName | ( | ) | const [pure virtual] |
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.
Implemented in container::ServletConfigImpl, and servlet::GenericServlet.
Referenced by servlet::GenericServlet::getServletName().