Java Doc for HttpResponse.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » http » 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 » EJB Server resin 3.1.5 » resin » com.caucho.server.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.server.connection.AbstractHttpResponse
      com.caucho.server.http.HttpResponse

HttpResponse
public class HttpResponse extends AbstractHttpResponse (Code)


Field Summary
final static  byte[]_charsetBytes
    
final static  CharBuffer_closeCb
    
final static  char[]_connectionCb
    
final static  byte[]_connectionCloseBytes
    
final static  byte[]_contentLengthBytes
    
final static  byte[]_contentTypeBytes
    
final static  byte[]_http10ok
    
final static  byte[]_http11ok
    
final  byte[]_resinServerBytes
    
final static  byte[]_textHtmlBytes
    
final static  byte[]_textHtmlLatin1Bytes
    

Constructor Summary
 HttpResponse(HttpRequest request)
     Creates a new HTTP-protocol response.

Method Summary
public  WriteStreamgetRawOutput()
     Switch to raw socket mode.
public  booleanisTop()
     Return true for the top request.
public  voidswitchToRaw()
     Switch to raw socket mode.
public  StringtoString()
    
protected  voidwriteContinueInt(WriteStream os)
     Writes the 100 continue response.
protected  booleanwriteHeadersInt(WriteStream os, int length)
     Implementation to write the HTTP headers.

Field Detail
_charsetBytes
final static byte[] _charsetBytes(Code)



_closeCb
final static CharBuffer _closeCb(Code)



_connectionCb
final static char[] _connectionCb(Code)



_connectionCloseBytes
final static byte[] _connectionCloseBytes(Code)



_contentLengthBytes
final static byte[] _contentLengthBytes(Code)



_contentTypeBytes
final static byte[] _contentTypeBytes(Code)



_http10ok
final static byte[] _http10ok(Code)



_http11ok
final static byte[] _http11ok(Code)



_resinServerBytes
final byte[] _resinServerBytes(Code)



_textHtmlBytes
final static byte[] _textHtmlBytes(Code)



_textHtmlLatin1Bytes
final static byte[] _textHtmlLatin1Bytes(Code)




Constructor Detail
HttpResponse
HttpResponse(HttpRequest request)(Code)
Creates a new HTTP-protocol response.
Parameters:
  request - the matching request object.




Method Detail
getRawOutput
public WriteStream getRawOutput() throws IOException(Code)
Switch to raw socket mode.



isTop
public boolean isTop()(Code)
Return true for the top request.



switchToRaw
public void switchToRaw() throws IOException(Code)
Switch to raw socket mode.



toString
public String toString()(Code)



writeContinueInt
protected void writeContinueInt(WriteStream os) throws IOException(Code)
Writes the 100 continue response.



writeHeadersInt
protected boolean writeHeadersInt(WriteStream os, int length) throws IOException(Code)
Implementation to write the HTTP headers. If the length is positive, it's a small request where the buffer contains the entire request, so the length is already known.
Parameters:
  os - the output stream to write the headers to.
Parameters:
  length - if non-negative, the length of the entire request. true if the data in the request should use chunked encoding.



Fields inherited from com.caucho.server.connection.AbstractHttpResponse
final protected static int HEADER_CACHE_CONTROL(Code)(Java Doc)
final protected static int HEADER_CONNECTION(Code)(Java Doc)
final protected static int HEADER_CONTENT_LENGTH(Code)(Java Doc)
final protected static int HEADER_CONTENT_TYPE(Code)(Java Doc)
final protected static int HEADER_DATE(Code)(Java Doc)
final protected static int HEADER_SERVER(Code)(Java Doc)
final protected QDate _calendar(Code)(Java Doc)
final protected CharBuffer _cb(Code)(Java Doc)
protected String _charEncoding(Code)(Java Doc)
protected long _contentLength(Code)(Java Doc)
protected String _contentPrefix(Code)(Java Doc)
protected String _contentType(Code)(Java Doc)
final protected ArrayList<Cookie> _cookiesOut(Code)(Java Doc)
protected boolean _disableCaching(Code)(Java Doc)
protected boolean _disableHeaders(Code)(Java Doc)
final protected ArrayList<String> _footerKeys(Code)(Java Doc)
final protected ArrayList<String> _footerValues(Code)(Java Doc)
protected boolean _forbidForward(Code)(Java Doc)
protected boolean _hasCharEncoding(Code)(Java Doc)
protected boolean _hasError(Code)(Java Doc)
protected boolean _hasOutputStream(Code)(Java Doc)
protected boolean _hasSentLog(Code)(Java Doc)
protected boolean _hasWriter(Code)(Java Doc)
final protected char[] _headerBuffer(Code)(Java Doc)
final protected static CaseInsensitiveIntMap _headerCodes(Code)(Java Doc)
final protected ArrayList<String> _headerKeys(Code)(Java Doc)
final protected ArrayList<String> _headerValues(Code)(Java Doc)
protected boolean _isClosed(Code)(Java Doc)
protected boolean _isNoCache(Code)(Java Doc)
protected boolean _isTopCache(Code)(Java Doc)
protected CauchoRequest _originalRequest(Code)(Java Doc)
protected WriteStream _rawWrite(Code)(Java Doc)
protected CauchoRequest _request(Code)(Java Doc)
protected int _statusCode(Code)(Java Doc)
protected String _statusMessage(Code)(Java Doc)
final protected static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.server.connection.AbstractHttpResponse
public void addCookie(Cookie cookie)(Code)(Java Doc)
public void addDateHeader(String key, long value)(Code)(Java Doc)
public void addFooter(String key, String value)(Code)(Java Doc)
public void addHeader(String key, String value)(Code)(Java Doc)
public void addIntHeader(String key, int value)(Code)(Java Doc)
public void clearBuffer()(Code)(Java Doc)
public void close() throws IOException(Code)(Java Doc)
public boolean containsHeader(String name)(Code)(Java Doc)
protected AbstractResponseStream createResponseStream()(Code)(Java Doc)
public boolean disableCaching(boolean disable)(Code)(Java Doc)
public boolean disableHeaders(boolean disable)(Code)(Java Doc)
public String encodeRedirectURL(String string)(Code)(Java Doc)
public String encodeRedirectUrl(String string)(Code)(Java Doc)
public String encodeURL(String string)(Code)(Java Doc)
public String encodeUrl(String string)(Code)(Java Doc)
public boolean fillCookie(CharBuffer cb, Cookie cookie, long date, int version, boolean isCookie2)(Code)(Java Doc)
public void finish() throws IOException(Code)(Java Doc)
public void flushBuffer() throws IOException(Code)(Java Doc)
public void flushHeader() throws IOException(Code)(Java Doc)
protected void free()(Code)(Java Doc)
public int getBufferSize()(Code)(Java Doc)
final protected QDate getCalendar()(Code)(Java Doc)
public String getCharacterEncoding()(Code)(Java Doc)
public int getContentLength()(Code)(Java Doc)
public long getContentLengthHeader()(Code)(Java Doc)
public String getContentType()(Code)(Java Doc)
protected ConnectionController getController()(Code)(Java Doc)
public Cookie getCookie(String name)(Code)(Java Doc)
public ArrayList getCookies()(Code)(Java Doc)
public FlushBuffer getFlushBuffer()(Code)(Java Doc)
public boolean getForbidForward()(Code)(Java Doc)
public String getHeader(String name)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public PrintWriter getNextWriter()(Code)(Java Doc)
public CauchoRequest getOriginalRequest()(Code)(Java Doc)
public AbstractResponseStream getOriginalStream()(Code)(Java Doc)
public ServletOutputStream getOutputStream() throws IOException(Code)(Java Doc)
public boolean getPrivateCache()(Code)(Java Doc)
public WriteStream getRawOutput() throws IOException(Code)(Java Doc)
public int getRemaining()(Code)(Java Doc)
public CauchoRequest getRequest()(Code)(Java Doc)
public ServletResponse getResponse()(Code)(Java Doc)
public AbstractResponseStream getResponseStream()(Code)(Java Doc)
public int getStatusCode()(Code)(Java Doc)
public PrintWriter getWriter() throws IOException(Code)(Java Doc)
public boolean hasError()(Code)(Java Doc)
public void init(WriteStream stream)(Code)(Java Doc)
public void init(CauchoRequest request)(Code)(Java Doc)
public boolean isCauchoResponseStream()(Code)(Java Doc)
public boolean isClosed()(Code)(Java Doc)
public boolean isCommitted()(Code)(Java Doc)
final protected boolean isHead()(Code)(Java Doc)
final public boolean isHeaderWritten()(Code)(Java Doc)
public boolean isIgnoreClientDisconnect()(Code)(Java Doc)
public boolean isNoCache()(Code)(Java Doc)
protected boolean isPrivateCache()(Code)(Java Doc)
public boolean isTop()(Code)(Java Doc)
public void killCache()(Code)(Java Doc)
public void killCaching()(Code)(Java Doc)
public void removeHeader(String key)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void resetBuffer()(Code)(Java Doc)
public void sendError(int code) throws IOException(Code)(Java Doc)
public void sendError(int code, String value) throws IOException(Code)(Java Doc)
public void sendRedirect(String url) throws IOException(Code)(Java Doc)
public void setBufferSize(int size)(Code)(Java Doc)
public void setCacheInvocation(AbstractCacheFilterChain cacheInvocation)(Code)(Java Doc)
public void setCharacterEncoding(String encoding)(Code)(Java Doc)
public void setContentLength(int length)(Code)(Java Doc)
public void setContentType(String value)(Code)(Java Doc)
public void setDateHeader(String name, long value)(Code)(Java Doc)
public void setDisableAutoFlush(boolean disable)(Code)(Java Doc)
public void setFlushBuffer(FlushBuffer flushBuffer)(Code)(Java Doc)
public void setFooter(String key, String value)(Code)(Java Doc)
public void setForbidForward(boolean forbid)(Code)(Java Doc)
public void setHasError(boolean hasError)(Code)(Java Doc)
public void setHeader(String key, String value)(Code)(Java Doc)
final public void setHeaderWritten(boolean isWritten)(Code)(Java Doc)
public void setIntHeader(String name, int value)(Code)(Java Doc)
public void setLocale(Locale locale)(Code)(Java Doc)
public void setMatchCacheEntry(AbstractCacheEntry entry)(Code)(Java Doc)
public void setNoCache(boolean isNoCache)(Code)(Java Doc)
public void setPrivateCache(boolean isPrivate)(Code)(Java Doc)
public void setPrivateOrResinCache(boolean isPrivate)(Code)(Java Doc)
public void setRequest(CauchoRequest req)(Code)(Java Doc)
public void setResponseStream(AbstractResponseStream responseStream)(Code)(Java Doc)
public void setSessionId(String id)(Code)(Java Doc)
protected boolean setSpecial(String key, String value)(Code)(Java Doc)
public void setStatus(int code)(Code)(Java Doc)
public void setStatus(int code, String message)(Code)(Java Doc)
public void setTopCache(boolean isTopCache)(Code)(Java Doc)
public void start() throws IOException(Code)(Java Doc)
protected boolean startCaching(boolean isByte)(Code)(Java Doc)
public void switchToRaw() throws IOException(Code)(Java Doc)
protected void writeContinueInt(WriteStream os) throws IOException(Code)(Java Doc)
protected boolean writeHeaders(WriteStream os, int length) throws IOException(Code)(Java Doc)
abstract protected boolean writeHeadersInt(WriteStream os, int length) 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.