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


org.apache.cocoon.environment.Environment

All known Subclasses:   org.apache.cocoon.environment.AbstractEnvironment,  org.apache.cocoon.environment.mock.MockEnvironment,  org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade,
Environment
public interface Environment extends SourceResolver(Code)
Base interface for an environment abstraction
author:
   Björn Lütkemeier
author:
   Giacomo Pati
author:
   Carsten Ziegeler
version:
   $Id: Environment.java 433543 2006-08-22 06:22:54Z crossley $




Method Summary
 voidchangeContext(String uriprefix, String context)
    
 voidcommitResponse()
    
 voidfinishingProcessing()
    
 StringgetAction()
    
 ObjectgetAttribute(String name)
     Returns the object bound with the specified name, or null if no object is bound under the name.
 EnumerationgetAttributeNames()
     Returns an Enumeration of String objects containing the names of all the objects bound to this environment.
 StringgetContentType()
    
 StringgetContext()
    
 MapgetObjectModel()
    
 OutputStreamgetOutputStream()
     Get the output stream where to write the generated resource.
 OutputStreamgetOutputStream(int bufferSize)
     Get the output stream where to write the generated resource. The returned stream is buffered by the environment.
 StringgetRootContext()
    
 StringgetURI()
     Get the URI to process.
 StringgetURIPrefix()
     Get the prefix of the URI in progress.
 StringgetView()
    
 booleanisExternal()
     Is this environment external ? An external environment is one that is created in response to an external request (http, commandline, etc.).
 booleanisInternalRedirect()
     Is this an internal redirect? An environment is on internal redirect if it is an internal request (via the cocoon: protocol) and used for a redirect.
 booleanisResponseModified(long lastModified)
     Check if the response has been modified since the same "resource" was requested.
 voidredirect(boolean sessionmode, String url)
    
 voidremoveAttribute(String name)
     Removes the object bound with the specified name from this environment.
 voidsetAttribute(String name, Object value)
     Binds an object to this environment, using the name specified.
 voidsetContentLength(int length)
    
 voidsetContentType(String mimeType)
    
 voidsetContext(String prefix, String uri, String context)
     Set the context.
 voidsetResponseIsNotModified()
     Mark the response as not modified.
 voidsetStatus(int statusCode)
    
 voidstartingProcessing()
     Notify that the processing starts.
 booleantryResetResponse()
     Reset the response if possible.



Method Detail
changeContext
void changeContext(String uriprefix, String context) throws Exception(Code)
Change the context from uriprefix to context



commitResponse
void commitResponse() throws IOException(Code)
Commit the response



finishingProcessing
void finishingProcessing()(Code)
Notify that the processing is finished This can be used to cleanup the environment object



getAction
String getAction()(Code)
Get the action to process



getAttribute
Object getAttribute(String name)(Code)
Returns the object bound with the specified name, or null if no object is bound under the name.
Parameters:
  name - a string specifying the name of the object the object with the specified name



getAttributeNames
Enumeration getAttributeNames()(Code)
Returns an Enumeration of String objects containing the names of all the objects bound to this environment. an Enumeration of Strings.



getContentType
String getContentType()(Code)
Get the content type of the resource



getContext
String getContext()(Code)
Get current context



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



getOutputStream
OutputStream getOutputStream() throws IOException(Code)
Get the output stream where to write the generated resource. Environment.getOutputStream(int)



getOutputStream
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 Environment.getOutputStream() .



getRootContext
String getRootContext()(Code)
Get the Root Context



getURI
String getURI()(Code)
Get the URI to process. The prefix is stripped off.



getURIPrefix
String getURIPrefix()(Code)
Get the prefix of the URI in progress.



getView
String getView()(Code)
Get the view to process



isExternal
boolean isExternal()(Code)
Is this environment external ? An external environment is one that is created in response to an external request (http, commandline, etc.). Environments created by the "cocoon:" protocol aren't external. true if this environment is external



isInternalRedirect
boolean isInternalRedirect()(Code)
Is this an internal redirect? An environment is on internal redirect if it is an internal request (via the cocoon: protocol) and used for a redirect.



isResponseModified
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



redirect
void redirect(boolean sessionmode, String url) throws IOException(Code)
Redirect the client to the given URL



removeAttribute
void removeAttribute(String name)(Code)
Removes the object bound with the specified name from this environment. If the environment does not have an object bound with the specified name, this method does nothing.
Parameters:
  name - the name of the object to remove



setAttribute
void setAttribute(String name, Object value)(Code)
Binds an object to this environment, using the name specified. This allows the pipeline assembly engine to store for its own use objects that souldn't be exposed to other components (generators, selectors, etc) and therefore cannot be put in the object model.

If an object of the same name is already bound, the object is replaced.
Parameters:
  name - the name to which the object is bound
Parameters:
  value - the object to be bound




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



setContentType
void setContentType(String mimeType)(Code)
Set the content type of the generated resource



setContext
void setContext(String prefix, String uri, String context)(Code)
Set the context. This is similar to changeContext() except that it is absolute.



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



setStatus
void setStatus(int statusCode)(Code)
Set the response status code



startingProcessing
void startingProcessing()(Code)
Notify that the processing starts.



tryResetResponse
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. If a buffered output stream is used, resetting is always successful. true if the response was successfully reset



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.