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


org.apache.cocoon.environment.AbstractEnvironment
   org.apache.cocoon.environment.wrapper.EnvironmentWrapper

EnvironmentWrapper
public class EnvironmentWrapper extends AbstractEnvironment (Code)
This is a wrapper class for the Environment object. It has the same properties except that the object model contains a RequestWrapper object.
author:
   Björn Lütkemeier
author:
   Carsten Ziegeler
version:
   $Id: EnvironmentWrapper.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
protected  StringcontentType
    
protected  Environmentenvironment
    
protected  booleaninternalRedirect
    
protected  MapobjectModel
    
protected  OutputStreamoutputStream
    
protected  StringredirectURL
    
protected  Requestrequest
    

Constructor Summary
public  EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger)
    
public  EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, boolean rawMode)
    
public  EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode)
    
public  EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view)
    
public  EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view, boolean wrapResponse)
    
public  EnvironmentWrapper(Environment env, ComponentManager manager, String uri, Logger logger, boolean wrapResponse)
    

Method Summary
public  voidcommitResponse()
    
public  ObjectgetAttribute(String name)
     Lookup an attribute in this instance, and if not found search it in the wrapped environment.
public  StringgetContentType()
    
public  MapgetObjectModel()
    
public  OutputStreamgetOutputStream()
    
public  OutputStreamgetOutputStream(int bufferSize)
    
public  StringgetRedirectURL()
    
public  voidglobalRedirect(boolean sessionmode, String newURL)
    
public  booleanisExternal()
     Always return false.
public  booleanisInternalRedirect()
    
public  voidredirect(boolean sessionmode, String newURL)
    
public  voidreset()
    
public  voidsetContentLength(int length)
    
public  voidsetContentType(String contentType)
    
public  voidsetInternalRedirect(boolean flag)
    
public  voidsetOutputStream(OutputStream stream)
     Set the output stream for this environment.
public  voidsetStatus(int statusCode)
    
public  voidsetURI(String prefix, String uris)
     Set a new URI for processing.
public  booleantryResetResponse()
     Reset the response if possible.

Field Detail
contentType
protected String contentType(Code)



environment
protected Environment environment(Code)
The wrapped environment



internalRedirect
protected boolean internalRedirect(Code)



objectModel
protected Map objectModel(Code)
The object model



outputStream
protected OutputStream outputStream(Code)
The stream to output to



redirectURL
protected String redirectURL(Code)
The redirect url



request
protected Request request(Code)
The request object




Constructor Detail
EnvironmentWrapper
public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger) throws MalformedURLException(Code)
Constructs an EnvironmentWrapper object from a Request and Response objects



EnvironmentWrapper
public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, boolean rawMode) throws MalformedURLException(Code)
Constructs an EnvironmentWrapper object from a Request and Response objects



EnvironmentWrapper
public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode) throws MalformedURLException(Code)
Constructs an EnvironmentWrapper object from a Request and Response objects



EnvironmentWrapper
public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view) throws MalformedURLException(Code)
Constructs an EnvironmentWrapper object from a Request and Response objects



EnvironmentWrapper
public EnvironmentWrapper(Environment env, String requestURI, String queryString, Logger logger, ComponentManager manager, boolean rawMode, String view, boolean wrapResponse) throws MalformedURLException(Code)
Constructs an EnvironmentWrapper object from a Request and Response objects



EnvironmentWrapper
public EnvironmentWrapper(Environment env, ComponentManager manager, String uri, Logger logger, boolean wrapResponse) throws MalformedURLException(Code)




Method Detail
commitResponse
public void commitResponse() throws IOException(Code)
Commit the response



getAttribute
public Object getAttribute(String name)(Code)
Lookup an attribute in this instance, and if not found search it in the wrapped environment.
Parameters:
  name - a String, the name of the attribute tolook for an Object, the value of the attribute ornull if no such attribute was found.



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



getObjectModel
public Map getObjectModel()(Code)
Get the underlying object model



getOutputStream
public OutputStream getOutputStream() throws IOException(Code)
Get the output stream EnvironmentWrapper.getOutputStream(int)



getOutputStream
public OutputStream getOutputStream(int bufferSize) throws IOException(Code)
Get the output stream



getRedirectURL
public String getRedirectURL()(Code)
if a redirect should happen this returns the url, otherwise null is returned



globalRedirect
public void globalRedirect(boolean sessionmode, String newURL) throws IOException(Code)
Redirect in the first non-wrapped environment



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



isInternalRedirect
public boolean isInternalRedirect()(Code)



redirect
public void redirect(boolean sessionmode, String newURL) throws IOException(Code)
Redirect the client to a new URL is not allowed



reset
public void reset()(Code)



setContentLength
public void setContentLength(int length)(Code)



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



setInternalRedirect
public void setInternalRedirect(boolean flag)(Code)



setOutputStream
public void setOutputStream(OutputStream stream)(Code)
Set the output stream for this environment. It hides the one of the wrapped environment.



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



setURI
public void setURI(String prefix, String uris)(Code)
Set a new URI for processing. If the prefix is null the new URI is inside the current context. If the prefix is not null the context is changed to the root context and the prefix is set.



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.