Java Doc for Reply.java in  » Web-Server » Jigsaw » org » w3c » www » protocol » 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 » Web Server » Jigsaw » org.w3c.www.protocol.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.www.http.HttpMessage
      org.w3c.www.http.HttpEntityMessage
         org.w3c.www.http.HttpReplyMessage
            org.w3c.www.protocol.http.Reply

All known Subclasses:   org.w3c.www.protocol.webdav.DAVReply,  org.w3c.www.protocol.http.cache.push.PushReply,
Reply
public class Reply extends HttpReplyMessage (Code)


Field Summary
protected static  HttpMimeTypeDEFAULT_TYPE
    
protected  booleandefinesInput
    
protected  InputStreaminput
    
 HttpStreamObserverobserver
    
 MimeParserparser
    

Constructor Summary
protected  Reply(short major, short minor, int status)
    
protected  Reply(MimeParser parser)
    

Method Summary
public  InputStreamgetInputStream()
     Get this reply entity body. The reply entity body is returned as an InputStream, that the caller has to read to actually get the bytes of the content. An InputStream instance.
public  booleanhasInputStream()
    
public  booleankeepsAlive()
    
protected  voidmatchesRequest(Request request)
     Notify this reply that is has been built to answer given request. Perform has many ugly hack HTTP/1.1 requires.
public  voidsetContent(String msg)
     Set this reply content.
public  voidsetStream(InputStream input)
     Set this reply's input stream.
protected  voidsetStreamObserver(HttpStreamObserver observer)
     Set an stream observer on the reply entity stream. This method should be called before any caller gets a chance to execute getInputStream.

Field Detail
DEFAULT_TYPE
protected static HttpMimeType DEFAULT_TYPE(Code)



definesInput
protected boolean definesInput(Code)



input
protected InputStream input(Code)



observer
HttpStreamObserver observer(Code)



parser
MimeParser parser(Code)




Constructor Detail
Reply
protected Reply(short major, short minor, int status)(Code)



Reply
protected Reply(MimeParser parser)(Code)




Method Detail
getInputStream
public InputStream getInputStream() throws IOException(Code)
Get this reply entity body. The reply entity body is returned as an InputStream, that the caller has to read to actually get the bytes of the content. An InputStream instance. If the reply has no body, the returned input stream will just return -1 onfirst read.



hasInputStream
public boolean hasInputStream() throws IOException(Code)
Does this reply has an associated entity stream ? A boolean, true if the reply has an entitystream, false otherwise.



keepsAlive
public boolean keepsAlive()(Code)



matchesRequest
protected void matchesRequest(Request request)(Code)
Notify this reply that is has been built to answer given request. Perform has many ugly hack HTTP/1.1 requires.
Parameters:
  request - The request that is answered by this reply.



setContent
public void setContent(String msg)(Code)
Set this reply content. This method allows to set the reply content to a simple String instance.
Parameters:
  msg - The reply content.



setStream
public void setStream(InputStream input)(Code)
Set this reply's input stream.
Parameters:
  input - The stream to read the reply's entity from.



setStreamObserver
protected void setStreamObserver(HttpStreamObserver observer)(Code)
Set an stream observer on the reply entity stream. This method should be called before any caller gets a chance to execute getInputStream. It is needed for HttpServer instances to be notified when the stream becomes available for the next request.



Fields inherited from org.w3c.www.http.HttpReplyMessage
public static int H_ACCEPT_RANGES(Code)(Java Doc)
public static int H_AGE(Code)(Java Doc)
public static int H_AUTHENTICATION_INFO(Code)(Java Doc)
public static int H_LOCATION(Code)(Java Doc)
public static int H_PROXY_AUTHENTICATE(Code)(Java Doc)
public static int H_PUBLIC(Code)(Java Doc)
public static int H_RETRY_AFTER(Code)(Java Doc)
public static int H_SERVER(Code)(Java Doc)
public static int H_VARY(Code)(Java Doc)
public static int H_WARNING(Code)(Java Doc)
public static int H_WWW_AUTHENTICATE(Code)(Java Doc)
protected String reason(Code)(Java Doc)
protected int status(Code)(Java Doc)

Methods inherited from org.w3c.www.http.HttpReplyMessage
public void addAuthenticationInfo(String name, String value)(Code)(Java Doc)
public void addWarning(HttpWarning warning)(Code)(Java Doc)
public boolean checkMustRevalidate()(Code)(Java Doc)
public boolean checkProxyRevalidate()(Code)(Java Doc)
public boolean checkPublic()(Code)(Java Doc)
public void dump(OutputStream out)(Code)(Java Doc)
public String[] getAcceptRanges()(Code)(Java Doc)
public int getAge()(Code)(Java Doc)
public HttpParamList getAuthenticationInfo()(Code)(Java Doc)
public String getLocation()(Code)(Java Doc)
public String[] getPrivate()(Code)(Java Doc)
public HttpChallenge getProxyAuthenticate()(Code)(Java Doc)
public String[] getPublic()(Code)(Java Doc)
public String getReason()(Code)(Java Doc)
public String getServer()(Code)(Java Doc)
public String getStandardReason(int status)(Code)(Java Doc)
public int getStatus()(Code)(Java Doc)
public String[] getVary()(Code)(Java Doc)
public HttpChallenge getWWWAuthenticate()(Code)(Java Doc)
public HttpWarning[] getWarning()(Code)(Java Doc)
public boolean notifyBeginParsing(MimeParser parser) throws HttpParserException, IOException(Code)(Java Doc)
public void setAcceptRanges(String units)(Code)(Java Doc)
public void setAge(int age)(Code)(Java Doc)
public void setAuthenticationInfo(HttpParamList plist)(Code)(Java Doc)
public void setLocation(URL location)(Code)(Java Doc)
public void setLocation(String location)(Code)(Java Doc)
public void setMustRevalidate(boolean onoff)(Code)(Java Doc)
public void setProxyAuthenticate(HttpChallenge challenge)(Code)(Java Doc)
public void setProxyRevalidate(boolean onoff)(Code)(Java Doc)
public void setPublic(boolean onoff)(Code)(Java Doc)
public void setPublic(String mth)(Code)(Java Doc)
public void setReason(String reason)(Code)(Java Doc)
public void setRetryAfter(int delay)(Code)(Java Doc)
public void setRetryAfter(long date)(Code)(Java Doc)
public void setServer(String server)(Code)(Java Doc)
public void setStatus(int status)(Code)(Java Doc)
public void setVary(String varies)(Code)(Java Doc)
public void setWWWAuthenticate(HttpChallenge challenge)(Code)(Java Doc)
public void setWarning(HttpWarning warnings)(Code)(Java Doc)
protected void startEmit(OutputStream out, int what) throws IOException(Code)(Java Doc)

Fields inherited from org.w3c.www.http.HttpEntityMessage
public static int H_ALLOW(Code)(Java Doc)
public static int H_CONTENT_BASE(Code)(Java Doc)
public static int H_CONTENT_ENCODING(Code)(Java Doc)
public static int H_CONTENT_LANGUAGE(Code)(Java Doc)
public static int H_CONTENT_LENGTH(Code)(Java Doc)
public static int H_CONTENT_LOCATION(Code)(Java Doc)
public static int H_CONTENT_MD5(Code)(Java Doc)
public static int H_CONTENT_RANGE(Code)(Java Doc)
public static int H_CONTENT_TYPE(Code)(Java Doc)
public static int H_ETAG(Code)(Java Doc)
public static int H_EXPIRES(Code)(Java Doc)
public static int H_LAST_MODIFIED(Code)(Java Doc)

Methods inherited from org.w3c.www.http.HttpEntityMessage
public void addContentEncoding(String name)(Code)(Java Doc)
public String[] getAllow()(Code)(Java Doc)
public String getContentBase()(Code)(Java Doc)
public String[] getContentEncoding()(Code)(Java Doc)
public String[] getContentLanguage()(Code)(Java Doc)
public int getContentLength()(Code)(Java Doc)
public String getContentLocation()(Code)(Java Doc)
public String getContentMD5()(Code)(Java Doc)
public HttpContentRange getContentRange()(Code)(Java Doc)
public MimeType getContentType()(Code)(Java Doc)
public HttpEntityTag getETag()(Code)(Java Doc)
public long getExpires()(Code)(Java Doc)
public long getLastModified()(Code)(Java Doc)
public boolean hasContentRange()(Code)(Java Doc)
public void setAllow(String mth)(Code)(Java Doc)
public void setContentBase(String base)(Code)(Java Doc)
public void setContentEncoding(String encodings)(Code)(Java Doc)
public void setContentLanguage(String languages)(Code)(Java Doc)
public void setContentLength(int length)(Code)(Java Doc)
public void setContentLocation(String location)(Code)(Java Doc)
public void setContentMD5(String md5)(Code)(Java Doc)
public void setContentType(MimeType type)(Code)(Java Doc)
public void setETag(HttpEntityTag tag)(Code)(Java Doc)
public void setExpires(long date)(Code)(Java Doc)
public void setLastModified(long date)(Code)(Java Doc)

Fields inherited from org.w3c.www.http.HttpMessage
final public static int EMIT_ALL(Code)(Java Doc)
final public static int EMIT_BODY(Code)(Java Doc)
final public static int EMIT_FOOTERS(Code)(Java Doc)
final public static int EMIT_HEADERS(Code)(Java Doc)
public static int H_CACHE_CONTROL(Code)(Java Doc)
public static int H_CMAN_EXT(Code)(Java Doc)
public static int H_CONNECTION(Code)(Java Doc)
public static int H_COOKIE(Code)(Java Doc)
public static int H_COPT_EXT(Code)(Java Doc)
public static int H_DATE(Code)(Java Doc)
public static int H_MAN_EXT(Code)(Java Doc)
public static int H_OPT_EXT(Code)(Java Doc)
public static int H_PRAGMA(Code)(Java Doc)
public static int H_PROTOCOL(Code)(Java Doc)
public static int H_PROTOCOL_INFO(Code)(Java Doc)
public static int H_PROTOCOL_QUERY(Code)(Java Doc)
public static int H_PROTOCOL_REQUEST(Code)(Java Doc)
public static int H_PROXY_CONNECTION(Code)(Java Doc)
public static int H_SET_COOKIE(Code)(Java Doc)
public static int H_TRAILER(Code)(Java Doc)
public static int H_TRANSFER_ENCODING(Code)(Java Doc)
public static int H_UPGRADE(Code)(Java Doc)
public static int H_VIA(Code)(Java Doc)
public static int MAX_HEADERS(Code)(Java Doc)
protected static HeaderDescription descriptors(Code)(Java Doc)
protected long emitdate(Code)(Java Doc)
protected static Hashtable factory(Code)(Java Doc)
protected Dictionary headers(Code)(Java Doc)
protected short major(Code)(Java Doc)
protected short minor(Code)(Java Doc)
protected ArrayDictionary state(Code)(Java Doc)
protected HeaderValue values(Code)(Java Doc)

Methods inherited from org.w3c.www.http.HttpMessage
public void addConnection(String name)(Code)(Java Doc)
public void addNoCache(String name)(Code)(Java Doc)
public void addPragma(String name)(Code)(Java Doc)
public void addProxyConnection(String name)(Code)(Java Doc)
public void addTransferEncoding(String name)(Code)(Java Doc)
public void addVia(String via)(Code)(Java Doc)
public boolean checkNoStore()(Code)(Java Doc)
public boolean checkOnlyIfCached()(Code)(Java Doc)
public void delState(String name)(Code)(Java Doc)
public void dump(OutputStream out)(Code)(Java Doc)
public void emit(OutputStream out) throws IOException(Code)(Java Doc)
public void emit(OutputStream out, int what) throws IOException(Code)(Java Doc)
protected void emitHeaders(OutputStream out, int what) throws IOException(Code)(Java Doc)
protected void endEmit(OutputStream out, int what) throws IOException(Code)(Java Doc)
public Enumeration enumerateHeaderDescriptions(boolean all)(Code)(Java Doc)
public Enumeration enumerateHeaderDescriptions()(Code)(Java Doc)
protected synchronized String generateExtNamespace()(Code)(Java Doc)
public String getCManExtHeader(String ext, String header)(Code)(Java Doc)
public String getCOptExtHeader(String ext, String header)(Code)(Java Doc)
public HttpCacheControl getCacheControl()(Code)(Java Doc)
public HttpMessage getClone()(Code)(Java Doc)
public String[] getConnection()(Code)(Java Doc)
public HttpCookieList getCookie()(Code)(Java Doc)
public long getDate()(Code)(Java Doc)
public HttpMessage getDeeperClone()(Code)(Java Doc)
public long getEmitDate()(Code)(Java Doc)
public String getExtHeader(String ext, String header)(Code)(Java Doc)
public HttpExtList getExtList(String id)(Code)(Java Doc)
public Dictionary getExtensionHeaders(HttpExt ext)(Code)(Java Doc)
public HeaderValue getHeaderValue(String name, HeaderValue def)(Code)(Java Doc)
final public HeaderValue getHeaderValue(String name)(Code)(Java Doc)
final public HeaderValue getHeaderValue(int idx)(Code)(Java Doc)
public HeaderValue getHeaderValue(HeaderDescription d)(Code)(Java Doc)
public HttpExtList getHttpCManExtDecl()(Code)(Java Doc)
public HttpExtList getHttpCOptExtDecl()(Code)(Java Doc)
public HttpExtList getHttpManExtDecl()(Code)(Java Doc)
public HttpExtList getHttpOptExtDecl()(Code)(Java Doc)
public short getMajorVersion()(Code)(Java Doc)
public String getManExtHeader(String ext, String header)(Code)(Java Doc)
public int getMaxAge()(Code)(Java Doc)
public short getMinorVersion()(Code)(Java Doc)
public String[] getNoCache()(Code)(Java Doc)
public String getOptExtHeader(String ext, String header)(Code)(Java Doc)
public String[] getPragma()(Code)(Java Doc)
public HttpBag getProtocol()(Code)(Java Doc)
public HttpBag getProtocolInfo()(Code)(Java Doc)
public HttpBag getProtocolQuery()(Code)(Java Doc)
public HttpBag getProtocolRequest()(Code)(Java Doc)
public String[] getProxyConnection()(Code)(Java Doc)
public int getSMaxAge()(Code)(Java Doc)
public HttpSetCookieList getSetCookie()(Code)(Java Doc)
public Object getState(String name)(Code)(Java Doc)
public Enumeration getStateNames()(Code)(Java Doc)
public String[] getTrailer()(Code)(Java Doc)
public String[] getTransferEncoding()(Code)(Java Doc)
public String[] getUpgrade()(Code)(Java Doc)
public String getValue(String name)(Code)(Java Doc)
public String getValue(HeaderDescription d)(Code)(Java Doc)
public String getVersion()(Code)(Java Doc)
public String[] getVia()(Code)(Java Doc)
public boolean hasConnection(String tok)(Code)(Java Doc)
public boolean hasHeader(String name)(Code)(Java Doc)
public boolean hasHeader(int idx)(Code)(Java Doc)
public boolean hasPragma(String pragma)(Code)(Java Doc)
public boolean hasProxyConnection(String tok)(Code)(Java Doc)
public boolean hasState(String name)(Code)(Java Doc)
public boolean hasTransferEncoding(String encoding)(Code)(Java Doc)
public boolean notifyBeginParsing(MimeParser parser) throws HttpParserException, IOException(Code)(Java Doc)
public void notifyEndParsing(MimeParser parser) throws HttpParserException, IOException(Code)(Java Doc)
public void notifyHeader(String name, byte buf, int off, int len)(Code)(Java Doc)
final public static void registerExtHeader(String name, String cls)(Code)(Java Doc)
final protected static void registerHeader(String name, String cls)(Code)(Java Doc)
final protected static void registerHeader(String name, String c, int i)(Code)(Java Doc)
public void removeHeader(String name)(Code)(Java Doc)
final public void removeHeader(int idx)(Code)(Java Doc)
public void setCacheControl(HttpCacheControl control)(Code)(Java Doc)
public void setConnection(String tokens)(Code)(Java Doc)
public void setCookie(HttpCookieList cookie)(Code)(Java Doc)
public void setDate(long date)(Code)(Java Doc)
public void setEnd2EndExtensionAcknowledgmentHeader()(Code)(Java Doc)
public synchronized void setExtensionHeader(HttpExt ext, String name, String value)(Code)(Java Doc)
public void setHeaderValue(String name, HeaderValue value)(Code)(Java Doc)
public void setHeaderValue(HeaderDescription d, HeaderValue v)(Code)(Java Doc)
final public void setHeaderValue(int idx, HeaderValue value)(Code)(Java Doc)
public void setHopByHopExtensionAcknowledgmentHeader()(Code)(Java Doc)
public void setHttpCManExtDecl(HttpExtList exts)(Code)(Java Doc)
public void setHttpCOptExtDecl(HttpExtList exts)(Code)(Java Doc)
public void setHttpExtDecl(HttpExtList exts)(Code)(Java Doc)
public void setHttpManExtDecl(HttpExtList exts)(Code)(Java Doc)
public void setHttpOptExtDecl(HttpExtList exts)(Code)(Java Doc)
public void setMaxAge(int maxage)(Code)(Java Doc)
protected void setNamespaces(HttpExtList extl)(Code)(Java Doc)
public void setNoCache(String nocache)(Code)(Java Doc)
public void setNoCache()(Code)(Java Doc)
public void setNoStore(boolean onoff)(Code)(Java Doc)
public void setOnlyIfCached(boolean onoff)(Code)(Java Doc)
public void setPragma(String tokens)(Code)(Java Doc)
public void setProtocol(HttpBag bag)(Code)(Java Doc)
public void setProtocolInfo(HttpBag bag)(Code)(Java Doc)
public void setProtocolQuery(HttpBag bag)(Code)(Java Doc)
public void setProtocolRequest(HttpBag bag)(Code)(Java Doc)
public void setProxyConnection(String tokens)(Code)(Java Doc)
public void setSMaxAge(int smaxage)(Code)(Java Doc)
public void setSetCookie(HttpSetCookieList setcookie)(Code)(Java Doc)
public void setState(String name, Object value)(Code)(Java Doc)
public void setTrailer(String trailers)(Code)(Java Doc)
public void setTransferEncoding(String tokens)(Code)(Java Doc)
public void setUpgrade(String products)(Code)(Java Doc)
public void setValue(String name, String strval)(Code)(Java Doc)
public void setVia(String vias)(Code)(Java Doc)
protected void startEmit(OutputStream out, int what) 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.