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


org.apache.cocoon.environment.AbstractEnvironment
   org.apache.cocoon.environment.portlet.PortletEnvironment

PortletEnvironment
public class PortletEnvironment extends AbstractEnvironment implements Redirector,PermanentRedirector(Code)
Implements org.apache.cocoon.environment.Environment interface for the JSR-168 Portlet environment.
author:
   Alex Rudnev
author:
   Vadim Gritsenko
version:
   CVS $Id: PortletEnvironment.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
final public static  StringHEADER_PORTLET_MODE
     This header can be read from any portlet request, and can be set on action response.
final public static  StringHEADER_PORTLET_TITLE
     This header can be set only, and only on render response.
final public static  StringHEADER_WINDOW_STATE
     This header can be read from any portlet request, and can be set on action response.
final public static  StringPARAMETER_PATH_INFO
     As portlets do not have a pathInfo in the request, we can simulate this by passing a parameter.
final public static  StringSESSION_APPLICATION_SCOPE
     This is the prefix for application scope session attributes.
final public static  StringSESSION_PORTLET_SCOPE
     This is the prefix for portlet scope session attributes.

Constructor Summary
public  PortletEnvironment(String servletPath, String pathInfo, String uri, String root, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, PortletContext portletContext, Context context, String containerEncoding, String defaultFormEncoding, int defaultSessionScope)
    
public  PortletEnvironment(String servletPath, String pathInfo, String uri, String root, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, PortletContext portletContext, Context context, String containerEncoding, String defaultFormEncoding, int defaultSessionScope)
    

Method Summary
public  StringgetContentType()
    
 intgetDefaultSessionScope()
     Default scope for the session attributes, either javax.portlet.PortletSession.PORTLET_SCOPE or javax.portlet.PortletSession.APPLICATION_SCOPE .
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)
     This method always returns true because portlet environment does not support response codes.
public  voidpermanentRedirect(boolean sessionmode, String newURL)
    
public  voidredirect(boolean sessionmode, String newURL)
    
public  voidsendStatus(int sc)
     Portlet environment does not support response status code.
public  voidsetContentLength(int length)
     Portlet environment does not support response content length.
public  voidsetContentType(String contentType)
    
public  voidsetResponseIsNotModified()
     Portlet environment does not support response status code.
public  voidsetStatus(int statusCode)
     Portlet environment does not support response status code.
public  booleantryResetResponse()
     Reset the response if possible.

Field Detail
HEADER_PORTLET_MODE
final public static String HEADER_PORTLET_MODE(Code)
This header can be read from any portlet request, and can be set on action response.



HEADER_PORTLET_TITLE
final public static String HEADER_PORTLET_TITLE(Code)
This header can be set only, and only on render response.



HEADER_WINDOW_STATE
final public static String HEADER_WINDOW_STATE(Code)
This header can be read from any portlet request, and can be set on action response.



PARAMETER_PATH_INFO
final public static String PARAMETER_PATH_INFO(Code)
As portlets do not have a pathInfo in the request, we can simulate this by passing a parameter. If parameter is null, this will translate to the absent pathInfo, and portlets will be matched in the sitemap using only servletPath.



SESSION_APPLICATION_SCOPE
final public static String SESSION_APPLICATION_SCOPE(Code)
This is the prefix for application scope session attributes.



SESSION_PORTLET_SCOPE
final public static String SESSION_PORTLET_SCOPE(Code)
This is the prefix for portlet scope session attributes.




Constructor Detail
PortletEnvironment
public PortletEnvironment(String servletPath, String pathInfo, String uri, String root, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, PortletContext portletContext, Context context, String containerEncoding, String defaultFormEncoding, int defaultSessionScope) throws IOException(Code)
Constructs a PortletEnvironment object from a PortletRequest and PortletResponse objects



PortletEnvironment
public PortletEnvironment(String servletPath, String pathInfo, String uri, String root, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, PortletContext portletContext, Context context, String containerEncoding, String defaultFormEncoding, int defaultSessionScope) throws IOException(Code)
Constructs a PortletEnvironment object from a PortletRequest and PortletResponse objects




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



getDefaultSessionScope
int getDefaultSessionScope()(Code)
Default scope for the session attributes, either javax.portlet.PortletSession.PORTLET_SCOPE or javax.portlet.PortletSession.APPLICATION_SCOPE .



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



hasRedirected
public boolean hasRedirected()(Code)



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



isResponseModified
public boolean isResponseModified(long lastModified)(Code)
This method always returns true because portlet environment does not support response codes.



permanentRedirect
public void permanentRedirect(boolean sessionmode, String newURL) throws IOException(Code)
In portlet environment this is the same as PortletEnvironment.redirect(boolean,String)



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



sendStatus
public void sendStatus(int sc)(Code)
Portlet environment does not support response status code.



setContentLength
public void setContentLength(int length)(Code)
Portlet environment does not support response content length. This method does nothing.



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



setResponseIsNotModified
public void setResponseIsNotModified()(Code)
Portlet environment does not support response status code. This method does nothing.



setStatus
public void setStatus(int statusCode)(Code)
Portlet environment does not support response status code.



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.