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


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

All known Subclasses:   com.caucho.server.connection.StubServletResponse,  com.caucho.server.webapp.DispatchResponse,  com.caucho.server.http.HttpResponse,  com.caucho.server.hmux.HmuxResponse,
AbstractHttpResponse
abstract public class AbstractHttpResponse implements CauchoResponse(Code)
Encapsulates the servlet response, controlling response headers and the response stream.


Field Summary
final protected static  intHEADER_CACHE_CONTROL
    
final protected static  intHEADER_CONNECTION
    
final protected static  intHEADER_CONTENT_LENGTH
    
final protected static  intHEADER_CONTENT_TYPE
    
final protected static  intHEADER_DATE
    
final protected static  intHEADER_SERVER
    
final static  L10NL
    
final protected  QDate_calendar
    
final protected  CharBuffer_cb
    
protected  String_charEncoding
    
protected  long_contentLength
    
protected  String_contentPrefix
    
protected  String_contentType
    
final protected  ArrayList<Cookie>_cookiesOut
    
protected  boolean_disableCaching
    
protected  boolean_disableHeaders
    
final static  HashMap<String, String>_errors
    
final protected  ArrayList<String>_footerKeys
    
final protected  ArrayList<String>_footerValues
    
protected  boolean_forbidForward
    
protected  boolean_hasCharEncoding
    
protected  boolean_hasError
    
protected  boolean_hasOutputStream
    
protected  boolean_hasSentLog
    
protected  boolean_hasWriter
    
final protected  char[]_headerBuffer
    
final protected static  CaseInsensitiveIntMap_headerCodes
    
final protected  ArrayList<String>_headerKeys
    
final protected  ArrayList<String>_headerValues
    
protected  boolean_isClosed
    
protected  boolean_isNoCache
    
protected  boolean_isTopCache
    
protected  CauchoRequest_originalRequest
    
protected  WriteStream_rawWrite
    
protected  CauchoRequest_request
    
protected  int_statusCode
    
protected  String_statusMessage
    
final protected static  Loggerlog
    

Constructor Summary
protected  AbstractHttpResponse()
    
protected  AbstractHttpResponse(CauchoRequest request)
    

Method Summary
public  voidaddCookie(Cookie cookie)
     Adds a cookie to the response.
public  voidaddDateHeader(String key, long value)
     Convenience for adding a date header.
public  voidaddFooter(String key, String value)
     Adds a new footer.
public  voidaddHeader(String key, String value)
     Adds a new header.
public  voidaddIntHeader(String key, int value)
     Convenience for adding an integer header.
public  voidclearBuffer()
    
public  voidclose()
     Closes the request.
public  booleancontainsHeader(String name)
     Returns true if the response already contains the named header.
protected  AbstractResponseStreamcreateResponseStream()
    
public  booleandisableCaching(boolean disable)
    
public  booleandisableHeaders(boolean disable)
    
public  StringencodeRedirectURL(String string)
    
public  StringencodeRedirectUrl(String string)
    
public  StringencodeURL(String string)
     Encode the URL with the session jd.
public  StringencodeUrl(String string)
    
public  booleanfillCookie(CharBuffer cb, Cookie cookie, long date, int version, boolean isCookie2)
    
public  voidfinish()
     Complete the request.
public  voidflushBuffer()
    
public  voidflushHeader()
    
protected  voidfree()
    
 TempBuffergetBuffer()
    
public  intgetBufferSize()
    
final protected  QDategetCalendar()
    
public  StringgetCharacterEncoding()
     Gets the character encoding.
public  intgetContentLength()
     Returns the number of bytes sent to the output.
public  longgetContentLengthHeader()
     Returns the value of the content-length header.
public  StringgetContentType()
     Gets the content type.
protected  ConnectionControllergetController()
    
public  CookiegetCookie(String name)
    
public  ArrayListgetCookies()
    
public  FlushBuffergetFlushBuffer()
    
public  booleangetForbidForward()
     Returns true if RequestDispatcher.forward() is disallowed on this stream.
public  StringgetHeader(String name)
     Returns the value of an already set output header.
public  LocalegetLocale()
    
public  PrintWritergetNextWriter()
     Returns the parent writer.
public  CauchoRequestgetOriginalRequest()
    
public  AbstractResponseStreamgetOriginalStream()
     Gets the response stream.
public  ServletOutputStreamgetOutputStream()
     Returns the ServletOutputStream for the response.
public  booleangetPrivateCache()
     Returns the value of the private cache.
public  WriteStreamgetRawOutput()
     Switch to raw socket mode.
 StringgetRealCharacterEncoding()
    
public  intgetRemaining()
    
public  CauchoRequestgetRequest()
     Returns the corresponding request.
public  ServletResponsegetResponse()
     Returns the next response.
public  AbstractResponseStreamgetResponseStream()
     Gets the response stream.
public  intgetStatusCode()
    
public  PrintWritergetWriter()
     Returns a PrintWriter for the response.
public  booleanhasError()
     Returns true if we're processing an error.
public  voidinit(WriteStream stream)
     Initialize the response for a new request.
public  voidinit(CauchoRequest request)
     Initialize the response for a new request.
public  booleanisCauchoResponseStream()
     Returns true for a Caucho response stream.
public  booleanisClosed()
     Returns true for closed requests.
public  booleanisCommitted()
     Returns true if some data has been sent to the browser.
final protected  booleanisHead()
     For a HEAD request, the response stream should write no data.
final public  booleanisHeaderWritten()
     Returns true if the headers have been written.
public  booleanisIgnoreClientDisconnect()
     If set true, client disconnect exceptions are no propagated to the server code.
public  booleanisNoCache()
    
protected  booleanisPrivateCache()
    
public  booleanisTop()
     Return true for the top request.
public  voidkillCache()
     Set if the page is non-cacheable.
public  voidkillCaching()
    
public  voidremoveHeader(String key)
    
public  voidreset()
    
 voidreset(boolean force)
    
public  voidresetBuffer()
    
public  voidsendError(int code)
    
public  voidsendError(int code, String value)
     Sends an HTTP error to the browser.
public  voidsendRedirect(String url)
     Sends a redirect to the browser.
public  voidsetBufferSize(int size)
    
public  voidsetCacheInvocation(AbstractCacheFilterChain cacheInvocation)
     Sets the cache invocation to indicate that the response might be cacheable.
public  voidsetCharacterEncoding(String encoding)
     Sets the character encoding.
public  voidsetContentLength(int length)
     Sets the content length of the result.
public  voidsetContentType(String value)
     Sets the browser content type.
public  voidsetDateHeader(String name, long value)
     Convenience for setting a date header.
public  voidsetDisableAutoFlush(boolean disable)
    
public  voidsetFlushBuffer(FlushBuffer flushBuffer)
    
public  voidsetFooter(String key, String value)
    
public  voidsetForbidForward(boolean forbid)
     When set to true, RequestDispatcher.forward() is disallowed on this stream.
public  voidsetHasError(boolean hasError)
     Set to true while processing an error.
 voidsetHead()
     For a HEAD request, the response stream should write no data.
public  voidsetHeader(String key, String value)
     Sets a header, replacing an already-existing header.
final public  voidsetHeaderWritten(boolean isWritten)
     Returns true if the headers have been written.
public  voidsetIntHeader(String name, int value)
     Convenience for setting an integer header.
public  voidsetLocale(Locale locale)
    
public  voidsetMatchCacheEntry(AbstractCacheEntry entry)
     Sets the cache entry so we can use it if the servlet returns not_modified response.
public  voidsetNoCache(boolean isNoCache)
     Set if the page is non-cacheable.
public  voidsetPrivateCache(boolean isPrivate)
     Sets true if the cache is only for the browser, but not Resin's cache or proxies.
public  voidsetPrivateOrResinCache(boolean isPrivate)
     Sets true if the cache is only for the browser and Resin's cache but not proxies.
public  voidsetRequest(CauchoRequest req)
     Sets the corresponding request.
public  voidsetResponseStream(AbstractResponseStream responseStream)
    
public  voidsetSessionId(String id)
    
protected  booleansetSpecial(String key, String value)
     Special processing for a special value.
public  voidsetStatus(int code)
    
public  voidsetStatus(int code, String message)
    
public  voidsetTopCache(boolean isTopCache)
    
public  voidstart()
     Initializes the Response at the beginning of the request.
protected  booleanstartCaching(boolean isByte)
     Called to start caching.
 booleanstartCaching(ArrayList<String> keys, ArrayList<String> values, String contentType, String charEncoding, boolean isByte)
     Tests to see if the response is cacheable.
public  voidswitchToRaw()
     Switch to raw socket mode.
final  voidwriteContinue()
    
protected  voidwriteContinueInt(WriteStream os)
    
protected  booleanwriteHeaders(WriteStream os, int length)
     Writes the headers to the stream.
abstract protected  booleanwriteHeadersInt(WriteStream os, int length)
    

Field Detail
HEADER_CACHE_CONTROL
final protected static int HEADER_CACHE_CONTROL(Code)



HEADER_CONNECTION
final protected static int HEADER_CONNECTION(Code)



HEADER_CONTENT_LENGTH
final protected static int HEADER_CONTENT_LENGTH(Code)



HEADER_CONTENT_TYPE
final protected static int HEADER_CONTENT_TYPE(Code)



HEADER_DATE
final protected static int HEADER_DATE(Code)



HEADER_SERVER
final protected static int HEADER_SERVER(Code)



L
final static L10N L(Code)



_calendar
final protected QDate _calendar(Code)



_cb
final protected CharBuffer _cb(Code)



_charEncoding
protected String _charEncoding(Code)



_contentLength
protected long _contentLength(Code)



_contentPrefix
protected String _contentPrefix(Code)



_contentType
protected String _contentType(Code)



_cookiesOut
final protected ArrayList<Cookie> _cookiesOut(Code)



_disableCaching
protected boolean _disableCaching(Code)



_disableHeaders
protected boolean _disableHeaders(Code)



_errors
final static HashMap<String, String> _errors(Code)



_footerKeys
final protected ArrayList<String> _footerKeys(Code)



_footerValues
final protected ArrayList<String> _footerValues(Code)



_forbidForward
protected boolean _forbidForward(Code)



_hasCharEncoding
protected boolean _hasCharEncoding(Code)



_hasError
protected boolean _hasError(Code)



_hasOutputStream
protected boolean _hasOutputStream(Code)



_hasSentLog
protected boolean _hasSentLog(Code)



_hasWriter
protected boolean _hasWriter(Code)



_headerBuffer
final protected char[] _headerBuffer(Code)



_headerCodes
final protected static CaseInsensitiveIntMap _headerCodes(Code)



_headerKeys
final protected ArrayList<String> _headerKeys(Code)



_headerValues
final protected ArrayList<String> _headerValues(Code)



_isClosed
protected boolean _isClosed(Code)



_isNoCache
protected boolean _isNoCache(Code)



_isTopCache
protected boolean _isTopCache(Code)



_originalRequest
protected CauchoRequest _originalRequest(Code)



_rawWrite
protected WriteStream _rawWrite(Code)



_request
protected CauchoRequest _request(Code)



_statusCode
protected int _statusCode(Code)



_statusMessage
protected String _statusMessage(Code)



log
final protected static Logger log(Code)




Constructor Detail
AbstractHttpResponse
protected AbstractHttpResponse()(Code)



AbstractHttpResponse
protected AbstractHttpResponse(CauchoRequest request)(Code)




Method Detail
addCookie
public void addCookie(Cookie cookie)(Code)
Adds a cookie to the response.
Parameters:
  cookie - the response cookie



addDateHeader
public void addDateHeader(String key, long value)(Code)
Convenience for adding a date header. If an old header with the same name exists, both will be displayed.
Parameters:
  key - the header name.
Parameters:
  value - an time in milliseconds to be converted to a date string.



addFooter
public void addFooter(String key, String value)(Code)
Adds a new footer. If an old footer with that name exists, both footers are output.
Parameters:
  key - the footer key.
Parameters:
  value - the footer value.



addHeader
public void addHeader(String key, String value)(Code)
Adds a new header. If an old header with that name exists, both headers are output.
Parameters:
  key - the header key.
Parameters:
  value - the header value.



addIntHeader
public void addIntHeader(String key, int value)(Code)
Convenience for adding an integer header. If an old header already exists, both will be sent to the browser.
Parameters:
  key - the header name.
Parameters:
  value - an integer to be converted to a string for the header.



clearBuffer
public void clearBuffer()(Code)



close
public void close() throws IOException(Code)
Closes the request.



containsHeader
public boolean containsHeader(String name)(Code)
Returns true if the response already contains the named header.
Parameters:
  name - name of the header to test.



createResponseStream
protected AbstractResponseStream createResponseStream()(Code)



disableCaching
public boolean disableCaching(boolean disable)(Code)



disableHeaders
public boolean disableHeaders(boolean disable)(Code)



encodeRedirectURL
public String encodeRedirectURL(String string)(Code)



encodeRedirectUrl
public String encodeRedirectUrl(String string)(Code)



encodeURL
public String encodeURL(String string)(Code)
Encode the URL with the session jd.
Parameters:
  string - the url to be encoded the encoded url



encodeUrl
public String encodeUrl(String string)(Code)



fillCookie
public boolean fillCookie(CharBuffer cb, Cookie cookie, long date, int version, boolean isCookie2)(Code)
Fills the response for a cookie
Parameters:
  cb - result buffer to contain the generated string
Parameters:
  cookie - the cookie
Parameters:
  date - the current date
Parameters:
  version - the cookies version



finish
public void finish() throws IOException(Code)
Complete the request. Flushes the streams, completes caching and writes the appropriate logs.



flushBuffer
public void flushBuffer() throws IOException(Code)



flushHeader
public void flushHeader() throws IOException(Code)



free
protected void free()(Code)



getBuffer
TempBuffer getBuffer()(Code)



getBufferSize
public int getBufferSize()(Code)



getCalendar
final protected QDate getCalendar()(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)
Gets the character encoding.



getContentLength
public int getContentLength()(Code)
Returns the number of bytes sent to the output.



getContentLengthHeader
public long getContentLengthHeader()(Code)
Returns the value of the content-length header.



getContentType
public String getContentType()(Code)
Gets the content type.



getController
protected ConnectionController getController()(Code)



getCookie
public Cookie getCookie(String name)(Code)



getCookies
public ArrayList getCookies()(Code)



getFlushBuffer
public FlushBuffer getFlushBuffer()(Code)
Gets the flush buffer



getForbidForward
public boolean getForbidForward()(Code)
Returns true if RequestDispatcher.forward() is disallowed on this stream.



getHeader
public String getHeader(String name)(Code)
Returns the value of an already set output header.
Parameters:
  name - name of the header to get.



getLocale
public Locale getLocale()(Code)



getNextWriter
public PrintWriter getNextWriter()(Code)
Returns the parent writer.



getOriginalRequest
public CauchoRequest getOriginalRequest()(Code)
Returns the corresponding original



getOriginalStream
public AbstractResponseStream getOriginalStream()(Code)
Gets the response stream.



getOutputStream
public ServletOutputStream getOutputStream() throws IOException(Code)
Returns the ServletOutputStream for the response.



getPrivateCache
public boolean getPrivateCache()(Code)
Returns the value of the private cache.



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



getRealCharacterEncoding
String getRealCharacterEncoding()(Code)



getRemaining
public int getRemaining()(Code)



getRequest
public CauchoRequest getRequest()(Code)
Returns the corresponding request.



getResponse
public ServletResponse getResponse()(Code)
Returns the next response.



getResponseStream
public AbstractResponseStream getResponseStream()(Code)
Gets the response stream.



getStatusCode
public int getStatusCode()(Code)



getWriter
public PrintWriter getWriter() throws IOException(Code)
Returns a PrintWriter for the response.



hasError
public boolean hasError()(Code)
Returns true if we're processing an error.



init
public void init(WriteStream stream)(Code)
Initialize the response for a new request.
Parameters:
  stream - the underlying output stream.



init
public void init(CauchoRequest request)(Code)
Initialize the response for a new request.
Parameters:
  request - the matching request.



isCauchoResponseStream
public boolean isCauchoResponseStream()(Code)
Returns true for a Caucho response stream.



isClosed
public boolean isClosed()(Code)
Returns true for closed requests.



isCommitted
public boolean isCommitted()(Code)
Returns true if some data has been sent to the browser.



isHead
final protected boolean isHead()(Code)
For a HEAD request, the response stream should write no data.



isHeaderWritten
final public boolean isHeaderWritten()(Code)
Returns true if the headers have been written.



isIgnoreClientDisconnect
public boolean isIgnoreClientDisconnect()(Code)
If set true, client disconnect exceptions are no propagated to the server code.



isNoCache
public boolean isNoCache()(Code)
Returns true if the page is non-cacheable



isPrivateCache
protected boolean isPrivateCache()(Code)
Returns true if the response should contain a Cache-Control: private



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



killCache
public void killCache()(Code)
Set if the page is non-cacheable.



killCaching
public void killCaching()(Code)



removeHeader
public void removeHeader(String key)(Code)



reset
public void reset()(Code)



reset
void reset(boolean force)(Code)
Clears the response for a forward()
Parameters:
  force - if not true and the response stream has committed,throw the IllegalStateException.



resetBuffer
public void resetBuffer()(Code)



sendError
public void sendError(int code) throws IOException(Code)



sendError
public void sendError(int code, String value) throws IOException(Code)
Sends an HTTP error to the browser.
Parameters:
  code - the HTTP error code
Parameters:
  value - a string message



sendRedirect
public void sendRedirect(String url) throws IOException(Code)
Sends a redirect to the browser. If the URL is relative, it gets combined with the current url.
Parameters:
  url - the possibly relative url to send to the browser



setBufferSize
public void setBufferSize(int size)(Code)



setCacheInvocation
public void setCacheInvocation(AbstractCacheFilterChain cacheInvocation)(Code)
Sets the cache invocation to indicate that the response might be cacheable.



setCharacterEncoding
public void setCharacterEncoding(String encoding)(Code)
Sets the character encoding.



setContentLength
public void setContentLength(int length)(Code)
Sets the content length of the result. In general, Resin will handle the content length, but for things like long downloads adding the length will give a valuable hint to the browser.
Parameters:
  length - the length of the content.



setContentType
public void setContentType(String value)(Code)
Sets the browser content type. If the value contains a charset, the output encoding will be changed to match.

For example, to set the output encoding to use UTF-8 instead of the default ISO-8859-1 (Latin-1), use the following:

 setContentType("text/html; charset=UTF-8");
 



setDateHeader
public void setDateHeader(String name, long value)(Code)
Convenience for setting a date header. An old header with the same name will be replaced.
Parameters:
  name - the header name.
Parameters:
  value - an time in milliseconds to be converted to a date string.



setDisableAutoFlush
public void setDisableAutoFlush(boolean disable)(Code)



setFlushBuffer
public void setFlushBuffer(FlushBuffer flushBuffer)(Code)
Sets the flush buffer



setFooter
public void setFooter(String key, String value)(Code)
Sets a footer, replacing an already-existing footer
Parameters:
  key - the header key to set.
Parameters:
  value - the header value to set.



setForbidForward
public void setForbidForward(boolean forbid)(Code)
When set to true, RequestDispatcher.forward() is disallowed on this stream.



setHasError
public void setHasError(boolean hasError)(Code)
Set to true while processing an error.



setHead
void setHead()(Code)
For a HEAD request, the response stream should write no data.



setHeader
public void setHeader(String key, String value)(Code)
Sets a header, replacing an already-existing header.
Parameters:
  key - the header key to set.
Parameters:
  value - the header value to set.



setHeaderWritten
final public void setHeaderWritten(boolean isWritten)(Code)
Returns true if the headers have been written.



setIntHeader
public void setIntHeader(String name, int value)(Code)
Convenience for setting an integer header. An old header with the same name will be replaced.
Parameters:
  name - the header name.
Parameters:
  value - an integer to be converted to a string for the header.



setLocale
public void setLocale(Locale locale)(Code)



setMatchCacheEntry
public void setMatchCacheEntry(AbstractCacheEntry entry)(Code)
Sets the cache entry so we can use it if the servlet returns not_modified response.
Parameters:
  entry - the saved cache entry



setNoCache
public void setNoCache(boolean isNoCache)(Code)
Set if the page is non-cacheable.



setPrivateCache
public void setPrivateCache(boolean isPrivate)(Code)
Sets true if the cache is only for the browser, but not Resin's cache or proxies.

Since proxy caching also caches headers, cached pages with session ids can't be cached in the browser. XXX: but doesn't this just mean that Resin shouldn't send the session information back if the page is cached? Because a second request where everything is identical would see the same response except for the cookies.




setPrivateOrResinCache
public void setPrivateOrResinCache(boolean isPrivate)(Code)
Sets true if the cache is only for the browser and Resin's cache but not proxies.



setRequest
public void setRequest(CauchoRequest req)(Code)
Sets the corresponding request.



setResponseStream
public void setResponseStream(AbstractResponseStream responseStream)(Code)
Sets the ResponseStream



setSessionId
public void setSessionId(String id)(Code)



setSpecial
protected boolean setSpecial(String key, String value)(Code)
Special processing for a special value.



setStatus
public void setStatus(int code)(Code)



setStatus
public void setStatus(int code, String message)(Code)



setTopCache
public void setTopCache(boolean isTopCache)(Code)



start
public void start() throws IOException(Code)
Initializes the Response at the beginning of the request.



startCaching
protected boolean startCaching(boolean isByte)(Code)
Called to start caching.



startCaching
boolean startCaching(ArrayList<String> keys, ArrayList<String> values, String contentType, String charEncoding, boolean isByte)(Code)
Tests to see if the response is cacheable.
Parameters:
  keys - the header keys of the response
Parameters:
  values - the header values of the response
Parameters:
  contentType - the contentType of the response
Parameters:
  charEncoding - the character encoding of the response true if caching has started



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



writeContinue
final void writeContinue() throws IOException(Code)
Writes the continue



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



writeHeaders
protected boolean writeHeaders(WriteStream os, int length) throws IOException(Code)
Writes the headers to the stream. Called prior to the first flush of data.
Parameters:
  os - browser stream.
Parameters:
  length - length of the response if known, or -1 is unknown. true if the content is chunked.



writeHeadersInt
abstract protected boolean writeHeadersInt(WriteStream os, int length) throws IOException(Code)



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.