Java Doc for HttpEnvironment.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » environment » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.environment.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.environment.AbstractEnvironment
   org.apache.cocoon.environment.http.HttpEnvironment

HttpEnvironment
public class HttpEnvironment extends AbstractEnvironment implements Redirector,PermanentRedirector(Code)
HTTP Servlet environment.
author:
   Apache Cocoon Team
version:
   $Id: HttpEnvironment.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
final public static  StringHTTP_REQUEST_OBJECT
    
final public static  StringHTTP_RESPONSE_OBJECT
    
final public static  StringHTTP_SERVLET_CONTEXT
    

Constructor Summary
public  HttpEnvironment(String uri, String root, HttpServletRequest req, HttpServletResponse res, ServletContext servletContext, HttpContext context, String containerEncoding, String defaultFormEncoding)
    

Method Summary
public  StringgetContentType()
    
public  OutputStreamgetOutputStream(int bufferSize)
     Get the output stream where to write the generated resource. The returned stream is buffered by the environment.
public  booleanhasRedirected()
    
public  booleanisExternal()
     Always return true.
public  booleanisResponseModified(long lastModified)
     Check if the response has been modified since the same "resource" was requested.
public  voidpermanentRedirect(boolean sessionmode, String newURL)
    
public  voidredirect(boolean sessionmode, String newURL)
    
public  voidsendStatus(int sc)
    
public  voidsetContentLength(int length)
    
public  voidsetContentType(String contentType)
    
public  voidsetResponseIsNotModified()
     Mark the response as not modified.
public  voidsetStatus(int statusCode)
    
public  booleantryResetResponse()
     Reset the response if possible.

Field Detail
HTTP_REQUEST_OBJECT
final public static String HTTP_REQUEST_OBJECT(Code)



HTTP_RESPONSE_OBJECT
final public static String HTTP_RESPONSE_OBJECT(Code)



HTTP_SERVLET_CONTEXT
final public static String HTTP_SERVLET_CONTEXT(Code)




Constructor Detail
HttpEnvironment
public HttpEnvironment(String uri, String root, HttpServletRequest req, HttpServletResponse res, ServletContext servletContext, HttpContext context, String containerEncoding, String defaultFormEncoding) throws MalformedURLException, IOException(Code)
Constructs a HttpEnvironment object from a HttpServletRequest and HttpServletResponse objects




Method Detail
getContentType
public String getContentType()(Code)
Get the ContentType



getOutputStream
public OutputStream getOutputStream(int bufferSize) throws IOException(Code)
Get the output stream where to write the generated resource. The returned stream is buffered by the environment. If the buffer size is -1 then the complete output is buffered. If the buffer size is 0, no buffering takes place. This method replaces HttpEnvironment.getOutputStream() .



hasRedirected
public boolean hasRedirected()(Code)



isExternal
public boolean isExternal()(Code)
Always return true.



isResponseModified
public boolean isResponseModified(long lastModified)(Code)
Check if the response has been modified since the same "resource" was requested. The caller has to test if it is really the same "resource" which is requested. true if the response is modified or if theenvironment is not able to test it



permanentRedirect
public void permanentRedirect(boolean sessionmode, String newURL) throws IOException(Code)



redirect
public void redirect(boolean sessionmode, String newURL) throws IOException(Code)



sendStatus
public void sendStatus(int sc)(Code)



setContentLength
public void setContentLength(int length)(Code)
Set the length of the generated content



setContentType
public void setContentType(String contentType)(Code)
Set the ContentType



setResponseIsNotModified
public void setResponseIsNotModified()(Code)
Mark the response as not modified.



setStatus
public void setStatus(int statusCode)(Code)
Set the StatusCode



tryResetResponse
public boolean tryResetResponse() throws IOException(Code)
Reset the response if possible. This allows error handlers to have a higher chance to produce clean output if the pipeline that raised the error has already output some data. true if the response was successfully reset



Fields inherited from org.apache.cocoon.environment.AbstractEnvironment
protected String action(Code)(Java Doc)
protected static Method avalonToCocoonSourceWrapper(Code)(Java Doc)
protected String context(Code)(Java Doc)
protected boolean initializedComponents(Code)(Java Doc)
protected ComponentManager manager(Code)(Java Doc)
protected HashMap objectModel(Code)(Java Doc)
protected OutputStream outputStream(Code)(Java Doc)
protected StringBuffer prefix(Code)(Java Doc)
protected String rootContext(Code)(Java Doc)
protected BufferedOutputStream secureOutputStream(Code)(Java Doc)
protected org.apache.excalibur.source.SourceResolver sourceResolver(Code)(Java Doc)
protected String uris(Code)(Java Doc)
protected String view(Code)(Java Doc)

Methods inherited from org.apache.cocoon.environment.AbstractEnvironment
public void changeContext(String newPrefix, String newContext) throws IOException(Code)(Java Doc)
public void commitResponse() throws IOException(Code)(Java Doc)
protected static String extractAction(Request req)(Code)(Java Doc)
protected static String extractView(Request request)(Code)(Java Doc)
public void finishingProcessing()(Code)(Java Doc)
public String getAction()(Code)(Java Doc)
public Object getAttribute(String name)(Code)(Java Doc)
public Enumeration getAttributeNames()(Code)(Java Doc)
public String getContext()(Code)(Java Doc)
public Map getObjectModel()(Code)(Java Doc)
public OutputStream getOutputStream() throws IOException(Code)(Java Doc)
public OutputStream getOutputStream(int bufferSize) throws IOException(Code)(Java Doc)
public String getRootContext()(Code)(Java Doc)
public String getURI()(Code)(Java Doc)
public String getURIPrefix()(Code)(Java Doc)
public String getView()(Code)(Java Doc)
public void globalRedirect(boolean sessionmode, String newURL) throws IOException(Code)(Java Doc)
protected boolean hasAttribute(String name)(Code)(Java Doc)
protected void initComponents()(Code)(Java Doc)
public boolean isInternalRedirect()(Code)(Java Doc)
public boolean isResponseModified(long lastModified)(Code)(Java Doc)
public void release(org.apache.excalibur.source.Source source)(Code)(Java Doc)
public void removeAttribute(String name)(Code)(Java Doc)
public Source resolve(String systemId) throws ProcessingException, SAXException, IOException(Code)(Java Doc)
public org.apache.excalibur.source.Source resolveURI(String location) throws MalformedURLException, IOException, SourceException(Code)(Java Doc)
public org.apache.excalibur.source.Source resolveURI(String location, String baseURI, Map parameters) throws MalformedURLException, IOException, SourceException(Code)(Java Doc)
protected void setAction(String action)(Code)(Java Doc)
public void setAttribute(String name, Object value)(Code)(Java Doc)
protected void setContext(String context)(Code)(Java Doc)
public void setContext(String prefix, String uri, String context)(Code)(Java Doc)
public void setResponseIsNotModified()(Code)(Java Doc)
public void setStatus(int statusCode)(Code)(Java Doc)
protected void setURIPrefix(String prefix)(Code)(Java Doc)
protected void setView(String view)(Code)(Java Doc)
public void startingProcessing()(Code)(Java Doc)
public boolean tryResetResponse() 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.