Java Doc for Response.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » coyote » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.coyote 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.coyote.Response

Response
final public class Response (Code)
Response object.
author:
   James Duncan Davidson [duncan@eng.sun.com]
author:
   Jason Hunter [jch@eng.sun.com]
author:
   James Todd [gonzo@eng.sun.com]
author:
   Harish Prabandham
author:
   Hans Bergsten
author:
   Remy Maucherat


Field Summary
protected  StringcharacterEncoding
    
protected  booleancharsetSet
     Has the charset been explicitly set.
protected  booleancommited
     Committed flag.
protected  StringcontentLanguage
    
protected  longcontentLength
    
protected  StringcontentType
     HTTP specific fields.
protected  ExceptionerrorException
     Holds request error exception.
protected  StringerrorURI
     Request error URI.
protected  MimeHeadersheaders
     Response headers.
public  ActionHookhook
     Action hook.
protected  Stringmessage
     Status message.
protected  Objectnotes
     Notes.
protected  OutputBufferoutputBuffer
     Associated output buffer.
protected  Requestreq
    
protected  intstatus
     Status code.

Constructor Summary
public  Response()
    

Method Summary
public  voidacknowledge()
    
public  voidaction(ActionCode actionCode, Object param)
    
public  voidaddHeader(String name, String value)
    
public  booleancontainsHeader(String name)
     Warning: This method always returns false for Content-Type and Content-Length.
public  voiddoWrite(ByteChunk chunk)
     Write a chunk of bytes.
public  voidfinish()
    
public  longgetBytesWritten()
    
public  StringgetCharacterEncoding()
    
public  StringgetContentLanguage()
     Return the content language.
public  intgetContentLength()
    
public  longgetContentLengthLong()
    
public  StringgetContentType()
    
public  ExceptiongetErrorException()
     Get the Exception that occurred during request processing.
public  StringgetErrorURI()
     Get the request URI that caused the original error.
public  ActionHookgetHook()
    
public  LocalegetLocale()
    
public  StringgetMessage()
     Get the status message.
public  MimeHeadersgetMimeHeaders()
    
final public  ObjectgetNote(int pos)
    
public  OutputBuffergetOutputBuffer()
    
public  RequestgetRequest()
    
public  intgetStatus()
    
public  booleanisCommitted()
    
public  booleanisExceptionPresent()
    
public  voidrecycle()
    
public  voidreset()
    
public  voidsendHeaders()
     Signal that we're done with the headers, and body will follow.
public  voidsetBytesWritten(long bytesWritten)
    
public  voidsetCharacterEncoding(String charset)
    
public  voidsetCommitted(boolean v)
    
public  voidsetContentLength(int contentLength)
    
public  voidsetContentLength(long contentLength)
    
public  voidsetContentType(String type)
     Sets the content type.
public  voidsetErrorException(Exception ex)
     Set the error Exception that occurred during request processing.
public  voidsetErrorURI(String uri)
     Set request URI that caused an error during request processing.
public  voidsetHeader(String name, String value)
    
public  voidsetHook(ActionHook hook)
    
public  voidsetLocale(Locale locale)
    
public  voidsetMessage(String message)
     Set the status message.
final public  voidsetNote(int pos, Object value)
    
public  voidsetOutputBuffer(OutputBuffer outputBuffer)
    
public  voidsetRequest(Request req)
    
public  voidsetStatus(int status)
    

Field Detail
characterEncoding
protected String characterEncoding(Code)



charsetSet
protected boolean charsetSet(Code)
Has the charset been explicitly set.



commited
protected boolean commited(Code)
Committed flag.



contentLanguage
protected String contentLanguage(Code)



contentLength
protected long contentLength(Code)



contentType
protected String contentType(Code)
HTTP specific fields.



errorException
protected Exception errorException(Code)
Holds request error exception.



errorURI
protected String errorURI(Code)
Request error URI.



headers
protected MimeHeaders headers(Code)
Response headers.



hook
public ActionHook hook(Code)
Action hook.



message
protected String message(Code)
Status message.



notes
protected Object notes(Code)
Notes.



outputBuffer
protected OutputBuffer outputBuffer(Code)
Associated output buffer.



req
protected Request req(Code)



status
protected int status(Code)
Status code.




Constructor Detail
Response
public Response()(Code)




Method Detail
acknowledge
public void acknowledge() throws IOException(Code)



action
public void action(ActionCode actionCode, Object param)(Code)



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



containsHeader
public boolean containsHeader(String name)(Code)
Warning: This method always returns false for Content-Type and Content-Length.



doWrite
public void doWrite(ByteChunk chunk) throws IOException(Code)
Write a chunk of bytes.



finish
public void finish() throws IOException(Code)



getBytesWritten
public long getBytesWritten()(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)



getContentLanguage
public String getContentLanguage()(Code)
Return the content language.



getContentLength
public int getContentLength()(Code)



getContentLengthLong
public long getContentLengthLong()(Code)



getContentType
public String getContentType()(Code)



getErrorException
public Exception getErrorException()(Code)
Get the Exception that occurred during request processing.



getErrorURI
public String getErrorURI()(Code)
Get the request URI that caused the original error.



getHook
public ActionHook getHook()(Code)



getLocale
public Locale getLocale()(Code)



getMessage
public String getMessage()(Code)
Get the status message.



getMimeHeaders
public MimeHeaders getMimeHeaders()(Code)



getNote
final public Object getNote(int pos)(Code)



getOutputBuffer
public OutputBuffer getOutputBuffer()(Code)



getRequest
public Request getRequest()(Code)



getStatus
public int getStatus()(Code)



isCommitted
public boolean isCommitted()(Code)



isExceptionPresent
public boolean isExceptionPresent()(Code)



recycle
public void recycle()(Code)



reset
public void reset() throws IllegalStateException(Code)



sendHeaders
public void sendHeaders() throws IOException(Code)
Signal that we're done with the headers, and body will follow. Any implementation needs to notify ContextManager, to allow interceptors to fix headers.



setBytesWritten
public void setBytesWritten(long bytesWritten)(Code)



setCharacterEncoding
public void setCharacterEncoding(String charset)(Code)



setCommitted
public void setCommitted(boolean v)(Code)



setContentLength
public void setContentLength(int contentLength)(Code)



setContentLength
public void setContentLength(long contentLength)(Code)



setContentType
public void setContentType(String type)(Code)
Sets the content type. This method must preserve any response charset that may already have been set via a call to response.setContentType(), response.setLocale(), or response.setCharacterEncoding().
Parameters:
  type - the content type



setErrorException
public void setErrorException(Exception ex)(Code)
Set the error Exception that occurred during request processing.



setErrorURI
public void setErrorURI(String uri)(Code)
Set request URI that caused an error during request processing.



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



setHook
public void setHook(ActionHook hook)(Code)



setLocale
public void setLocale(Locale locale)(Code)
Called explicitely by user to set the Content-Language and the default encoding



setMessage
public void setMessage(String message)(Code)
Set the status message.



setNote
final public void setNote(int pos, Object value)(Code)



setOutputBuffer
public void setOutputBuffer(OutputBuffer outputBuffer)(Code)



setRequest
public void setRequest(Request req)(Code)



setStatus
public void setStatus(int status)(Code)
Set the response status



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.