Java Doc for CGIServletWrapper.java in  » Scripting » Kawa » gnu » kawa » servlet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Kawa » gnu.kawa.servlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.OutputStream
      javax.servlet.ServletOutputStream
         gnu.kawa.servlet.CGIServletWrapper

CGIServletWrapper
public class CGIServletWrapper extends ServletOutputStream implements HttpServletRequest,HttpServletResponse,ServletConfig,ServletContext(Code)
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.


Field Summary
 java.util.Hashtableattributes
    
 bytebuffer
    
 intbufpos
    
 StringcharacterEncoding
    
 booleancommitted
    
 Vectorheaders
    
final static  EnumerationnullEnumeration
    
 PrintStreamout
    
 StringsawContentType
    
 StringservletName
    
 intstatusCode
    
 StringstatusString
    
 PrintWriterwriter
    


Method Summary
public  voidaddCookie(Cookie cookie)
    
public  voidaddDateHeader(String str, long l)
    
public  voidaddHeader(String label, String value)
    
public  voidaddIntHeader(String str, int i)
    
public  booleancontainsHeader(String str)
    
public  StringencodeRedirectURL(String str)
    
public  StringencodeRedirectUrl(String str)
    
public  StringencodeURL(String str)
    
public  StringencodeUrl(String str)
    
public  voidflushBuffer()
    
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  StringgetAuthType()
    
public  intgetBufferSize()
    
public  StringgetCgiEnvVar(String name)
    
public  StringgetCharacterEncoding()
    
public  intgetContentLength()
    
public  StringgetContentType()
    
public  ServletContextgetContext(String path)
    
public  StringgetContextPath()
    
public  javax.servlet.http.Cookie[]getCookies()
    
public  longgetDateHeader(String str)
    
public  StringgetHeader(String str)
    
public  EnumerationgetHeaderNames()
    
public  EnumerationgetHeaders(String str)
    
public  StringgetInitParameter(String name)
    
public  EnumerationgetInitParameterNames()
    
public  ServletInputStreamgetInputStream()
    
public  intgetIntHeader(String str)
    
public  StringgetLocalAddr()
    
public  StringgetLocalName()
    
public  intgetLocalPort()
    
public  LocalegetLocale()
    
public  java.util.EnumerationgetLocales()
    
public  intgetMajorVersion()
    
public  StringgetMethod()
    
public  StringgetMimeType(String file)
    
public  intgetMinorVersion()
    
public  RequestDispatchergetNamedDispatcher(String path)
    
public  ServletOutputStreamgetOutputStream()
    
public  StringgetParameter(String name)
    
public  java.util.MapgetParameterMap()
    
public  EnumerationgetParameterNames()
    
public  String[]getParameterValues(String name)
    
public  StringgetPathInfo()
    
public  StringgetPathTranslated()
    
public  StringgetProtocol()
    
public  StringgetQueryString()
    
public  java.io.BufferedReadergetReader()
    
public  StringgetRealPath(String path)
    
public  StringgetRemoteAddr()
    
public  StringgetRemoteHost()
    
public  intgetRemotePort()
    
public  StringgetRemoteUser()
    
public  RequestDispatchergetRequestDispatcher(String path)
    
public  StringgetRequestURI()
    
public  StringBuffergetRequestURL()
    
public  StringgetRequestedSessionId()
    
public  java.net.URLgetResource(String path)
    
public  java.io.InputStreamgetResourceAsStream(String path)
    
public  java.util.SetgetResourcePaths(String path)
    
public  StringgetScheme()
    
public  StringgetServerInfo()
    
public  StringgetServerName()
    
public  intgetServerPort()
    
public  ServletgetServlet(String name)
    
public  ServletContextgetServletContext()
    
public  java.lang.StringgetServletContextName()
    
public  StringgetServletName()
    
public  EnumerationgetServletNames()
    
public  StringgetServletPath()
    
public  EnumerationgetServlets()
    
public  HttpSessiongetSession(boolean b)
    
public  HttpSessiongetSession()
    
public  java.security.PrincipalgetUserPrincipal()
    
public  java.io.PrintWritergetWriter()
    
public  booleanisCommitted()
    
public  booleanisRequestedSessionIdFromCookie()
    
public  booleanisRequestedSessionIdFromURL()
    
public  booleanisRequestedSessionIdFromUrl()
    
public  booleanisRequestedSessionIdValid()
    
public  booleanisSecure()
    
public  booleanisUserInRole(String role)
    
public  voidlog(String message)
    
public  voidlog(Exception ex, String mgs)
    
public  voidlog(String msg, Throwable ex)
    
public static  voidmain(String[] args)
    
public  voidremoveAttribute(String name)
    
public  voidreset()
    
public  voidresetBuffer()
    
public  voidsendError(int i, String str)
    
public  voidsendError(int i)
    
public  voidsendRedirect(String str)
    
public  voidsetAttribute(String name, Object value)
    
public  voidsetBufferSize(int size)
    
public  voidsetCharacterEncoding(String enc)
    
public  voidsetContentLength(int len)
    
public  voidsetContentType(String type)
    
public  voidsetDateHeader(String str, long l)
    
public  voidsetHeader(String label, String value)
    
public  voidsetIntHeader(String str, int i)
    
public  voidsetLocale(java.util.Locale locale)
    
public  voidsetStatus(int i)
    
public  voidsetStatus(int i, String str)
    
public  voidwrite(int c)
    

Field Detail
attributes
java.util.Hashtable attributes(Code)



buffer
byte buffer(Code)



bufpos
int bufpos(Code)



characterEncoding
String characterEncoding(Code)



committed
boolean committed(Code)



headers
Vector headers(Code)



nullEnumeration
final static Enumeration nullEnumeration(Code)



out
PrintStream out(Code)



sawContentType
String sawContentType(Code)



servletName
String servletName(Code)



statusCode
int statusCode(Code)



statusString
String statusString(Code)



writer
PrintWriter writer(Code)





Method Detail
addCookie
public void addCookie(Cookie cookie)(Code)



addDateHeader
public void addDateHeader(String str, long l)(Code)



addHeader
public void addHeader(String label, String value)(Code)



addIntHeader
public void addIntHeader(String str, int i)(Code)



containsHeader
public boolean containsHeader(String str)(Code)



encodeRedirectURL
public String encodeRedirectURL(String str)(Code)



encodeRedirectUrl
public String encodeRedirectUrl(String str)(Code)



encodeURL
public String encodeURL(String str)(Code)



encodeUrl
public String encodeUrl(String str)(Code)



flushBuffer
public void flushBuffer() throws IOException(Code)



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getAuthType
public String getAuthType()(Code)



getBufferSize
public int getBufferSize()(Code)



getCgiEnvVar
public String getCgiEnvVar(String name)(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)



getContentLength
public int getContentLength()(Code)



getContentType
public String getContentType()(Code)



getContext
public ServletContext getContext(String path)(Code)



getContextPath
public String getContextPath()(Code)



getCookies
public javax.servlet.http.Cookie[] getCookies()(Code)



getDateHeader
public long getDateHeader(String str)(Code)



getHeader
public String getHeader(String str)(Code)



getHeaderNames
public Enumeration getHeaderNames()(Code)



getHeaders
public Enumeration getHeaders(String str)(Code)



getInitParameter
public String getInitParameter(String name)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getInputStream
public ServletInputStream getInputStream()(Code)



getIntHeader
public int getIntHeader(String str)(Code)



getLocalAddr
public String getLocalAddr()(Code)



getLocalName
public String getLocalName()(Code)



getLocalPort
public int getLocalPort()(Code)



getLocale
public Locale getLocale()(Code)



getLocales
public java.util.Enumeration getLocales()(Code)



getMajorVersion
public int getMajorVersion()(Code)



getMethod
public String getMethod()(Code)



getMimeType
public String getMimeType(String file)(Code)



getMinorVersion
public int getMinorVersion()(Code)



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String path)(Code)



getOutputStream
public ServletOutputStream getOutputStream()(Code)



getParameter
public String getParameter(String name)(Code)



getParameterMap
public java.util.Map getParameterMap()(Code)



getParameterNames
public Enumeration getParameterNames()(Code)



getParameterValues
public String[] getParameterValues(String name)(Code)



getPathInfo
public String getPathInfo()(Code)



getPathTranslated
public String getPathTranslated()(Code)



getProtocol
public String getProtocol()(Code)



getQueryString
public String getQueryString()(Code)



getReader
public java.io.BufferedReader getReader()(Code)



getRealPath
public String getRealPath(String path)(Code)



getRemoteAddr
public String getRemoteAddr()(Code)



getRemoteHost
public String getRemoteHost()(Code)



getRemotePort
public int getRemotePort()(Code)



getRemoteUser
public String getRemoteUser()(Code)



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)



getRequestURI
public String getRequestURI()(Code)



getRequestURL
public StringBuffer getRequestURL()(Code)



getRequestedSessionId
public String getRequestedSessionId()(Code)



getResource
public java.net.URL getResource(String path)(Code)



getResourceAsStream
public java.io.InputStream getResourceAsStream(String path)(Code)



getResourcePaths
public java.util.Set getResourcePaths(String path)(Code)



getScheme
public String getScheme()(Code)



getServerInfo
public String getServerInfo()(Code)



getServerName
public String getServerName()(Code)



getServerPort
public int getServerPort()(Code)



getServlet
public Servlet getServlet(String name)(Code)



getServletContext
public ServletContext getServletContext()(Code)



getServletContextName
public java.lang.String getServletContextName()(Code)



getServletName
public String getServletName()(Code)



getServletNames
public Enumeration getServletNames()(Code)



getServletPath
public String getServletPath()(Code)



getServlets
public Enumeration getServlets()(Code)



getSession
public HttpSession getSession(boolean b)(Code)



getSession
public HttpSession getSession()(Code)



getUserPrincipal
public java.security.Principal getUserPrincipal()(Code)



getWriter
public java.io.PrintWriter getWriter()(Code)



isCommitted
public boolean isCommitted()(Code)



isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()(Code)



isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()(Code)



isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()(Code)



isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()(Code)



isSecure
public boolean isSecure()(Code)



isUserInRole
public boolean isUserInRole(String role)(Code)



log
public void log(String message)(Code)



log
public void log(Exception ex, String mgs)(Code)



log
public void log(String msg, Throwable ex)(Code)



main
public static void main(String[] args)(Code)



removeAttribute
public void removeAttribute(String name)(Code)



reset
public void reset()(Code)



resetBuffer
public void resetBuffer()(Code)



sendError
public void sendError(int i, String str)(Code)



sendError
public void sendError(int i)(Code)



sendRedirect
public void sendRedirect(String str)(Code)



setAttribute
public void setAttribute(String name, Object value)(Code)



setBufferSize
public void setBufferSize(int size)(Code)



setCharacterEncoding
public void setCharacterEncoding(String enc)(Code)



setContentLength
public void setContentLength(int len)(Code)



setContentType
public void setContentType(String type)(Code)



setDateHeader
public void setDateHeader(String str, long l)(Code)



setHeader
public void setHeader(String label, String value)(Code)



setIntHeader
public void setIntHeader(String str, int i)(Code)



setLocale
public void setLocale(java.util.Locale locale)(Code)



setStatus
public void setStatus(int i)(Code)



setStatus
public void setStatus(int i, String str)(Code)



write
public void write(int c) throws java.io.IOException(Code)



Methods inherited from javax.servlet.ServletOutputStream
public void print(String s) throws IOException(Code)(Java Doc)
public void print(boolean b) throws IOException(Code)(Java Doc)
public void print(char c) throws IOException(Code)(Java Doc)
public void print(int i) throws IOException(Code)(Java Doc)
public void print(long l) throws IOException(Code)(Java Doc)
public void print(float f) throws IOException(Code)(Java Doc)
public void print(double d) throws IOException(Code)(Java Doc)
public void println() throws IOException(Code)(Java Doc)
public void println(String s) throws IOException(Code)(Java Doc)
public void println(boolean b) throws IOException(Code)(Java Doc)
public void println(char c) throws IOException(Code)(Java Doc)
public void println(int i) throws IOException(Code)(Java Doc)
public void println(long l) throws IOException(Code)(Java Doc)
public void println(float f) throws IOException(Code)(Java Doc)
public void println(double d) throws IOException(Code)(Java Doc)

Methods inherited from java.io.OutputStream
public void close() throws IOException(Code)(Java Doc)
public void flush() throws IOException(Code)(Java Doc)
abstract public void write(int b) throws IOException(Code)(Java Doc)
public void write(byte b) throws IOException(Code)(Java Doc)
public void write(byte b, int off, int len) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.