ServletConfig¶
-
class
cppmicroservices::
ServletConfig
¶ A servlet configuration object used by a servlet container to pass information to a servlet during initialization.
Public Functions
-
ServletConfig
()¶
-
ServletConfig
(const ServletConfig &other)¶
-
ServletConfig &
operator=
(const ServletConfig &other)¶
-
virtual
~ServletConfig
()¶
-
std::string
GetServletName
() const¶ 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.
- Return
- the name of the servlet instance
-
std::shared_ptr<ServletContext>
GetServletContext
() const¶ Returns a reference to the ServletContext in which the caller is executing.
- Return
- a ServletContext object, used by the caller to interact with its servlet container
- See
- ServletContext
-