Class CGIServletWrapper

  • All Implemented Interfaces:
    javax.servlet.ServletConfig

    public class CGIServletWrapper
    extends Object
    implements javax.servlet.ServletConfig
    Wrapper class to allow a Servlet to be run as a CGI script. Invoked as: java CGI_ARGS... gnu.kawa.servlet.CGIServletWrapper SERVLET where CGI_ARGS... are properties set from CGI environment variables (for example -DPATH_INFO="foo") and SERVLET is the name of the servlet class. The cgi-wrapper program in ../../../bin can used do this.
    • Constructor Detail

      • CGIServletWrapper

        public CGIServletWrapper()
    • Method Detail

      • main

        public static void main​(String[] args)
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Specified by:
        getServletContext in interface javax.servlet.ServletConfig
      • getServletName

        public String getServletName()
        Specified by:
        getServletName in interface javax.servlet.ServletConfig
      • getInitParameter

        public String getInitParameter​(String name)
        Specified by:
        getInitParameter in interface javax.servlet.ServletConfig
      • getInitParameterNames

        public Enumeration getInitParameterNames()
        Specified by:
        getInitParameterNames in interface javax.servlet.ServletConfig