Java Doc for Request.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) 


org.w3c.www.http.HttpRequestMessage
   org.w3c.www.protocol.http.Request

All known Subclasses:   org.w3c.www.protocol.webdav.DAVRequest,
Request
public class Request extends HttpRequestMessage (Code)
The client side idea of a request. Requests are created only by the HttpManager, by cloning its template request that defines the default (application wide) request settings.


Field Summary
protected  booleanallowuserinteraction
    
protected  booleaninterrupted
    
protected  HttpManagermanager
     The manager that created this request.
protected  RequestObserverobserver
     The observer for the request, if any.
protected  InputStreamoutput
     The request output stream, to PUT or POST data.
protected  booleanpipeline
    
protected  HttpServerserver
     The server currently running the request, if any.

Constructor Summary
protected  Request(HttpManager manager)
    

Method Summary
protected  voidendEmit(OutputStream out, int what)
     End of header emiting, continue by sending optional output stream.
public  booleangetAllowUserInteraction()
     Are we allowed to do some user interaction to run this request.
public  HttpManagergetManager()
     Get this request's manager.
public  RequestObservergetObserver()
     Get the observer for this request.
public  InputStreamgetOutputStream()
     Get the input stream to read that request body.
public  booleanhasOutputStream()
    
public synchronized  voidinterruptRequest()
     Interrupt that request processing.
public  booleanisInterrupted()
    
public  ReplymakeReply(int status)
     Create a Reply instance matching this request.
public  voidsetAllowUserInteraction(boolean onoff)
     Decide wether we are allowed to interact wit hthe user.
public  voidsetObserver(RequestObserver observer)
     Set the observer for this request.
public  voidsetOutputStream(InputStream in)
     Set this request output stream. As a side effect, setting the body of the request will disable pipelining.
public  voidsetPipeline(boolean onoff)
     Enable/disable pipelining for that request.
protected synchronized  voidsetServer(HttpServer server)
     Mark that request has being run by given server.
protected synchronized  voidunsetServer()
     Mark that request as no longer attached to a server object.

Field Detail
allowuserinteraction
protected boolean allowuserinteraction(Code)
Are we allowed to interact with the user ?



interrupted
protected boolean interrupted(Code)
Has this request been interrupted ?



manager
protected HttpManager manager(Code)
The manager that created this request.



observer
protected RequestObserver observer(Code)
The observer for the request, if any.



output
protected InputStream output(Code)
The request output stream, to PUT or POST data.



pipeline
protected boolean pipeline(Code)
Can we pipeline that request, if appropriate support is detected ?



server
protected HttpServer server(Code)
The server currently running the request, if any.




Constructor Detail
Request
protected Request(HttpManager manager)(Code)




Method Detail
endEmit
protected void endEmit(OutputStream out, int what) throws IOException(Code)
End of header emiting, continue by sending optional output stream.
Parameters:
  out - The output stream to write to.



getAllowUserInteraction
public boolean getAllowUserInteraction()(Code)
Are we allowed to do some user interaction to run this request. A boolean, true if user interaction is allowedfalse otherwise.



getManager
public HttpManager getManager()(Code)
Get this request's manager. The instance of the manager taking care of this request.



getObserver
public RequestObserver getObserver()(Code)
Get the observer for this request. An instance of RequestObserver, or null if undefined.



getOutputStream
public InputStream getOutputStream()(Code)
Get the input stream to read that request body. Warning it is up to the caller to make sure to:
  • Reset the content length if any bytes is read out of the stream before the request is sent.
  • Reset the entire stream is the filter acting upon it just want to peek it (without consuming it).
An InputStream instance, or null if the requesthas no body.



hasOutputStream
public boolean hasOutputStream()(Code)
Does this request has an associated input stream ? A boolean true of it has.



interruptRequest
public synchronized void interruptRequest()(Code)
Interrupt that request processing. Do whatever it takes to interrupt that request processing, as soon as possible.



isInterrupted
public boolean isInterrupted()(Code)
Has this request been interrupted ? A boolean.



makeReply
public Reply makeReply(int status)(Code)
Create a Reply instance matching this request.



setAllowUserInteraction
public void setAllowUserInteraction(boolean onoff)(Code)
Decide wether we are allowed to interact wit hthe user.
Parameters:
  onoff - A boolean, true if interaction is allowed.



setObserver
public void setObserver(RequestObserver observer)(Code)
Set the observer for this request.
Parameters:
  observer - The observer.



setOutputStream
public void setOutputStream(InputStream in)(Code)
Set this request output stream. As a side effect, setting the body of the request will disable pipelining. If you know what you're doing, you can turn it on again by using the setPipeline method.
Parameters:
  in - The data to send to the server.



setPipeline
public void setPipeline(boolean onoff)(Code)
Enable/disable pipelining for that request. By default, this HTTP implementation tries it's best to use pipelining, if you take manual control over it, you're responsible for damages.
Parameters:
  onoff - The pipelining toggle.



setServer
protected synchronized void setServer(HttpServer server)(Code)
Mark that request has being run by given server.
Parameters:
  server - The server in charge for that request.



unsetServer
protected synchronized void unsetServer()(Code)
Mark that request as no longer attached to a server object.



Fields inherited from org.w3c.www.http.HttpRequestMessage
public static int H_ACCEPT(Code)(Java Doc)
public static int H_ACCEPT_CHARSET(Code)(Java Doc)
public static int H_ACCEPT_ENCODING(Code)(Java Doc)
public static int H_ACCEPT_LANGUAGE(Code)(Java Doc)
public static int H_AUTHORIZATION(Code)(Java Doc)
public static int H_EXPECT(Code)(Java Doc)
public static int H_FROM(Code)(Java Doc)
public static int H_HOST(Code)(Java Doc)
public static int H_IF_MATCH(Code)(Java Doc)
public static int H_IF_MODIFIED_SINCE(Code)(Java Doc)
public static int H_IF_NONE_MATCH(Code)(Java Doc)
public static int H_IF_RANGE(Code)(Java Doc)
public static int H_IF_UNMODIFIED_SINCE(Code)(Java Doc)
public static int H_MAX_FORWARDS(Code)(Java Doc)
public static int H_PROXY_AUTHORIZATION(Code)(Java Doc)
public static int H_RANGE(Code)(Java Doc)
public static int H_REFERER(Code)(Java Doc)
public static int H_TE(Code)(Java Doc)
public static int H_USER_AGENT(Code)(Java Doc)
protected String method(Code)(Java Doc)
protected URL proxy(Code)(Java Doc)
protected String sProxy(Code)(Java Doc)
protected URL url(Code)(Java Doc)

Methods inherited from org.w3c.www.http.HttpRequestMessage
public void dump(OutputStream out)(Code)(Java Doc)
public HttpAccept[] getAccept()(Code)(Java Doc)
public HttpAcceptCharset[] getAcceptCharset()(Code)(Java Doc)
public HttpAcceptEncoding[] getAcceptEncoding()(Code)(Java Doc)
public HttpAcceptLanguage[] getAcceptLanguage()(Code)(Java Doc)
public HttpCredential getAuthorization()(Code)(Java Doc)
public String getExpect()(Code)(Java Doc)
public String getFrom()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public HttpEntityTag[] getIfMatch()(Code)(Java Doc)
public long getIfModifiedSince()(Code)(Java Doc)
public HttpEntityTag[] getIfNoneMatch()(Code)(Java Doc)
public HttpEntityTag getIfRange()(Code)(Java Doc)
public long getIfUnmodifiedSince()(Code)(Java Doc)
public int getMaxForwards()(Code)(Java Doc)
public int getMaxStale()(Code)(Java Doc)
public String getMethod()(Code)(Java Doc)
public int getMinFresh()(Code)(Java Doc)
public URL getProxy()(Code)(Java Doc)
public HttpCredential getProxyAuthorization()(Code)(Java Doc)
public HttpRange[] getRange()(Code)(Java Doc)
public String getReferer()(Code)(Java Doc)
public HttpAcceptEncoding[] getTE()(Code)(Java Doc)
protected String getTarget()(Code)(Java Doc)
public URL getURL()(Code)(Java Doc)
public String getUserAgent()(Code)(Java Doc)
public boolean hasAuthorization()(Code)(Java Doc)
public boolean hasProxy()(Code)(Java Doc)
public static void main(String args)(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 setAccept(HttpAccept accepts)(Code)(Java Doc)
public void setAcceptCharset(HttpAcceptCharset charsets)(Code)(Java Doc)
public void setAcceptEncoding(HttpAcceptEncoding encoding)(Code)(Java Doc)
public void setAcceptLanguage(HttpAcceptCharset langs)(Code)(Java Doc)
public void setAuthorization(HttpCredential credentials)(Code)(Java Doc)
public void setExpect(String expect)(Code)(Java Doc)
public void setFrom(String from)(Code)(Java Doc)
public void setHost(String host)(Code)(Java Doc)
public void setIfMatch(HttpEntityTag etags)(Code)(Java Doc)
public void setIfModifiedSince(long ims)(Code)(Java Doc)
public void setIfNoneMatch(HttpEntityTag etags)(Code)(Java Doc)
public void setIfRange(HttpEntityTag etag)(Code)(Java Doc)
public void setIfUnmodifiedSince(long date)(Code)(Java Doc)
public void setMaxForwards(int hops)(Code)(Java Doc)
public void setMaxStale(int maxstale)(Code)(Java Doc)
public void setMethod(String method)(Code)(Java Doc)
public void setMinFresh(int minfresh)(Code)(Java Doc)
public void setProxy(URL proxy)(Code)(Java Doc)
public void setProxyAuthorization(HttpCredential credentials)(Code)(Java Doc)
public void setRange(HttpRange ranges)(Code)(Java Doc)
public void setReferer(String referer)(Code)(Java Doc)
public void setTE(HttpAcceptEncoding encoding)(Code)(Java Doc)
protected void setTarget(String target)(Code)(Java Doc)
public void setURL(URL url)(Code)(Java Doc)
public void setUserAgent(String ua)(Code)(Java Doc)
protected void startEmit(OutputStream out, int what) throws IOException(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.