Package gnu.kawa.servlet
Class CGIServletWrapper
- java.lang.Object
-
- gnu.kawa.servlet.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CGIServletWrapper.CGIContext
class
CGIServletWrapper.CGIRequest
class
CGIServletWrapper.CGIResponse
-
Constructor Summary
Constructors Constructor Description CGIServletWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInitParameter(String name)
Enumeration
getInitParameterNames()
CGIServletWrapper.CGIRequest
getRequest()
CGIServletWrapper.CGIResponse
getResponse()
javax.servlet.ServletContext
getServletContext()
String
getServletName()
static void
main(String[] args)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interfacejavax.servlet.ServletConfig
-
getServletName
public String getServletName()
- Specified by:
getServletName
in interfacejavax.servlet.ServletConfig
-
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in interfacejavax.servlet.ServletConfig
-
getInitParameterNames
public Enumeration getInitParameterNames()
- Specified by:
getInitParameterNames
in interfacejavax.servlet.ServletConfig
-
getRequest
public CGIServletWrapper.CGIRequest getRequest()
-
getResponse
public CGIServletWrapper.CGIResponse getResponse()
-
-