Class ServletConfigWrapper

  • All Implemented Interfaces:
    javax.servlet.ServletConfig

    public class ServletConfigWrapper
    extends Base
    implements javax.servlet.ServletConfig
    An implementation of the ServletConfig interface that provides for a clustered ServletContext.
    Version:
    Coherence 3.4.1
    Author:
    jh 2008.10.14
    • Constructor Detail

      • ServletConfigWrapper

        public ServletConfigWrapper​(SessionHelper helper,
                                    javax.servlet.ServletConfig cfg)
        Construct a Coherence ServletConfig that wraps the app server's ServletConfig object.
        Parameters:
        helper - the application's session helper
        cfg - the appliation server's ServletConfig object
    • Method Detail

      • getServletName

        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.
        Specified by:
        getServletName in interface javax.servlet.ServletConfig
        Returns:
        the name of the servlet instance
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Returns a reference to the ServletContext in which the caller is executing.
        Specified by:
        getServletContext in interface javax.servlet.ServletConfig
        Returns:
        a ServletContext object, used by the caller to interact with its servlet container
      • getInitParameter

        public String getInitParameter​(String sName)
        Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.
        Specified by:
        getInitParameter in interface javax.servlet.ServletConfig
        Parameters:
        sName - a String specifying the name of the initialization parameter
        Returns:
        a String containing the value of the initialization parameter
      • getInitParameterNames

        public Enumeration getInitParameterNames()
        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.
        Specified by:
        getInitParameterNames in interface javax.servlet.ServletConfig
        Returns:
        an Enumeration of String objects containing the names of the servlet's initialization parameters
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object
      • getDescription

        protected String getDescription()
        Returns a string representation of this object's attributes.
        Returns:
        a string representation of this object's attributes
      • getSessionHelper

        protected SessionHelper getSessionHelper()
        Get the SessionHelper for this ServletConfig wrapper.
        Returns:
        the SessionHelper for this ServletConfig wrapper
      • getServletConfig

        protected javax.servlet.ServletConfig getServletConfig()
        Get the wrapped ServletConfig.
        Returns:
        the wrapped ServletConfig