Java Doc for PortletServlet.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » portal » generic » 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 » EJB Server resin 3.1.5 » resin » com.caucho.portal.generic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServlet
   com.caucho.portal.generic.PortletServlet

PortletServlet
public class PortletServlet extends HttpServlet implements Window,PortletConfig(Code)
A servlet that uses a class implementing javax.portlet.Portlet. This servlet supports the following configuration items. Items marked with a * can be set as init-param.
portal
an instance of Portal , default is an instance of GenericPortal .
portal-class*
a class name, an alternative to portal
portal-ref*
an attribute name to use for a lookup for a Portal as an application attribute. This is an alternative to using portal and is useful when more than one portlet servlet share a Portal.
portlet
an instance of javax.portlet.Portlet , required
portlet-class*
a class name, an alternative to portlet
portlet-name*
a name for the value of javax.portlet.PortletConfig.getPortletName , the default is ServletConfig.getServletName()
portlet-preferences
Set the default preferences for the portlet (see "Portlet Preferences")
expiration-cache*
an integer, a cache time in seconds for the portlet, 0 (the default) disables and -1 means forever
private*
"true" or "false", if true the response is marked as private for the client, no cache will share the response with other users
supported-locales* A comma-separated list of locales of the form "en-us" or "en_us', the default is to support all locales.
resource-bundle*
the name of a resource bundle, the portlet may use the resource bundle with javax.portlet.PortletConfig.getResourceBundle(Locale)
renderer
an instance of Renderer , used to add decorations like headers footers and controls to the portlet, the default is no renderer. See AbstractRenderer .
renderer-class*
a class name, an alternative to renderer PortletServlet.setRenderer(Renderer) .

Portlet Preferences

 
 <servlet servlet-name="portal" 
 servlet-class="com.caucho.portal.generic.PortletServlet"> 
 <init>
 ... 
 <portlet-preferences>
 <preference name="colour" value="green" read-only="true"/> 
 or
 <preference>
 <name>colour</name>
 <value>green</value>
 <read-only>true</read-only>
 </preference>
 </portlet-preferences>
 ... 
 </init>
 </servlet> 
 


Field Summary
final protected static  Loggerlog
    


Method Summary
public  voidaddInitParam(String name, String value)
     Add an init-param for the portlet.
public  voidaddInitParam(NameValuePair nameValuePair)
    
 voidaddSupportedLocale(String locale)
     Add a supported locale, the default is to support all locales.
 voidaddSupportedLocales(String locales)
     Add supported locales with a comma separated list, the default is to support all locales.
public  voiddestroy()
    
protected  voiddoGet(HttpServletRequest req, HttpServletResponse res)
    
protected  voiddoPost(HttpServletRequest req, HttpServletResponse res)
    
protected  voiddoRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
    
public  intgetBufferSize()
    
public  ArrayList<Constraint>getConstraints()
     This implementation returns null.
public  PortletPreferencesgetDefaultPreferences()
     This implementation returns null.
public  intgetExpirationCache()
    
public  StringgetInitParameter(String name)
    
public  EnumerationgetInitParameterNames()
    
public  PortletConfiggetPortletConfig()
    
public  PortletContextgetPortletContext()
    
public  StringgetPortletName()
    
public  ArrayList<PreferencesValidator>getPreferencesValidators()
    
public  RenderergetRenderer()
    
public  ResourceBundlegetResourceBundle(Locale locale)
    
public  Map<String, String>getRoleRefMap()
     This implementation returns null.
public  Set<String>getSupportedContentTypes(PortletMode portletMode)
     This implementation returns null, which means that all content types are supported.
public  Set<Locale>getSupportedLocales()
     This implementation returns null, which means that all locales are supported.
public  voidhandleConstraintFailure(RenderRequest request, RenderResponse response, ConstraintFailureEvent event)
     This implementation does nothing.
public  voidhandleException(RenderRequest request, RenderResponse response, ExceptionEvent event)
     This implementation does nothing.
public  PortletModehandlePortletModeFailure(PortletRequest request, PortletMode notAllowed)
     This implementation returns PortletMode.VIEW.
public  WindowStatehandleWindowStateFailure(PortletRequest request, WindowState notAllowed)
     This implementation returns WindowState.NORMAL.
public  voidinit(ServletConfig servletConfig)
    
public  booleanisPortletModeAllowed(PortletRequest request, PortletMode portletMode)
     This implementation returns true.
public  booleanisPrivate()
    
public  booleanisWindowStateAllowed(PortletRequest request, WindowState windowState)
     This implementation returns true.
protected  ObjectnewInstance(Class targetClass, String className)
    
public  voidsetBufferSize(int bufferSize)
    
public  voidsetExpirationCache(int expirationCache)
     Enable caching of the response and set the expiration time in seconds.
public  voidsetNamespace(String namespace)
     The namespace is used to uniquely identify this usage of the portlet, the default is "" (the empty string).
public  voidsetPortal(Portal portal)
     Default is an instance of GenericPortal .
public  voidsetPortalClass(String className)
    
public  voidsetPortalRef(String attributeName)
     An alternative to PortletServlet.setPortal(Portal) , specify the name of an attribute to lookup in the ServletContext.
public  voidsetPortlet(Portlet portlet)
     The portlet, required.
public  voidsetPortletClass(String className)
    
public  voidsetPortletName(String portletName)
    
public  voidsetPortletPreferences(GenericPortletPreferences defaultPreferences)
     Set the default preferences.
public  voidsetPrivate(boolean isPrivate)
     If true then the response is private, indicating that it contains information that should only be provided to the current client, default is false.
public  voidsetRenderer(Renderer renderer)
     A Renderer wraps decorations around the portlet, see AbstractRenderer .
public  voidsetRendererClass(String className)
    
public  voidsetResourceBundle(String name)
     Set a resource bundle name, used to instantiate an instance of ResourceBundleFactory.
public  voidsetResourceBundleFactory(ResourceBundleFactory factory)
    

Field Detail
log
final protected static Logger log(Code)





Method Detail
addInitParam
public void addInitParam(String name, String value)(Code)
Add an init-param for the portlet. If no init-param are added, the default behaviour is to expose the Servlet's init-param to the portlet. If this method is called at least once, the Servlet's init-param are not exposed to the portlet.



addInitParam
public void addInitParam(NameValuePair nameValuePair)(Code)



addSupportedLocale
void addSupportedLocale(String locale)(Code)
Add a supported locale, the default is to support all locales. This is an ordered list, those added first are more preferrable.



addSupportedLocales
void addSupportedLocales(String locales)(Code)
Add supported locales with a comma separated list, the default is to support all locales. This is an ordered list, those added first are more preferrable.



destroy
public void destroy()(Code)



doGet
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code)



doPost
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code)



doRequest
protected void doRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException(Code)



getBufferSize
public int getBufferSize()(Code)



getConstraints
public ArrayList<Constraint> getConstraints()(Code)
This implementation returns null.



getDefaultPreferences
public PortletPreferences getDefaultPreferences()(Code)
This implementation returns null.



getExpirationCache
public int getExpirationCache()(Code)



getInitParameter
public String getInitParameter(String name)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getPortletConfig
public PortletConfig getPortletConfig()(Code)



getPortletContext
public PortletContext getPortletContext()(Code)



getPortletName
public String getPortletName()(Code)



getPreferencesValidators
public ArrayList<PreferencesValidator> getPreferencesValidators()(Code)



getRenderer
public Renderer getRenderer()(Code)



getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)(Code)



getRoleRefMap
public Map<String, String> getRoleRefMap()(Code)
This implementation returns null.



getSupportedContentTypes
public Set<String> getSupportedContentTypes(PortletMode portletMode)(Code)
This implementation returns null, which means that all content types are supported.



getSupportedLocales
public Set<Locale> getSupportedLocales()(Code)
This implementation returns null, which means that all locales are supported.



handleConstraintFailure
public void handleConstraintFailure(RenderRequest request, RenderResponse response, ConstraintFailureEvent event)(Code)
This implementation does nothing.



handleException
public void handleException(RenderRequest request, RenderResponse response, ExceptionEvent event)(Code)
This implementation does nothing.



handlePortletModeFailure
public PortletMode handlePortletModeFailure(PortletRequest request, PortletMode notAllowed)(Code)
This implementation returns PortletMode.VIEW.



handleWindowStateFailure
public WindowState handleWindowStateFailure(PortletRequest request, WindowState notAllowed)(Code)
This implementation returns WindowState.NORMAL.



init
public void init(ServletConfig servletConfig) throws ServletException(Code)



isPortletModeAllowed
public boolean isPortletModeAllowed(PortletRequest request, PortletMode portletMode)(Code)
This implementation returns true.



isPrivate
public boolean isPrivate()(Code)



isWindowStateAllowed
public boolean isWindowStateAllowed(PortletRequest request, WindowState windowState)(Code)
This implementation returns true.



newInstance
protected Object newInstance(Class targetClass, String className) throws IllegalArgumentException(Code)



setBufferSize
public void setBufferSize(int bufferSize)(Code)
Default is 0



setExpirationCache
public void setExpirationCache(int expirationCache)(Code)
Enable caching of the response and set the expiration time in seconds. 0 (the default) means do not cache, -1 means unlimited cach time, any other number is the number of seconds for which the response can be cached. Can also be specified with init-param `expiration-cache'.



setNamespace
public void setNamespace(String namespace)(Code)
The namespace is used to uniquely identify this usage of the portlet, the default is "" (the empty string). The namespace is important when using a portlet preferences store, and also has an effect on the encoding of parameters.



setPortal
public void setPortal(Portal portal)(Code)
Default is an instance of GenericPortal .



setPortalClass
public void setPortalClass(String className)(Code)
An alternative to PortletServlet.setPortal(Portal) , specify the class name of an object to instantiate



setPortalRef
public void setPortalRef(String attributeName)(Code)
An alternative to PortletServlet.setPortal(Portal) , specify the name of an attribute to lookup in the ServletContext. This is useful for sharing a Portal amongst different servlets.



setPortlet
public void setPortlet(Portlet portlet)(Code)
The portlet, required. This method can be called in derived classes, or through the use of depndency injection on containers that support it, or indirectly using the init param `portlet-class'.



setPortletClass
public void setPortletClass(String className)(Code)
An alternative to PortletServlet.setPortlet(Portlet) , specify the class name of an object to instantiate



setPortletName
public void setPortletName(String portletName)(Code)
The default is the value of ServletConfig.getServletName()



setPortletPreferences
public void setPortletPreferences(GenericPortletPreferences defaultPreferences)(Code)
Set the default preferences.



setPrivate
public void setPrivate(boolean isPrivate)(Code)
If true then the response is private, indicating that it contains information that should only be provided to the current client, default is false. Setting this to true has an effect on caching, if true then a cached value cannot be shared amongst different users and the effectiveness of caching is greatly reduced. Can also be specified with init-param `private'.



setRenderer
public void setRenderer(Renderer renderer)(Code)
A Renderer wraps decorations around the portlet, see AbstractRenderer .



setRendererClass
public void setRendererClass(String className)(Code)
An alternative to PortletServlet.setRenderer(Renderer) , specify the class name of an object to instantiate



setResourceBundle
public void setResourceBundle(String name)(Code)
Set a resource bundle name, used to instantiate an instance of ResourceBundleFactory.



setResourceBundleFactory
public void setResourceBundleFactory(ResourceBundleFactory factory)(Code)



Methods inherited from javax.servlet.http.HttpServlet
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected long getLastModified(HttpServletRequest req)(Code)(Java Doc)
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
public void service(ServletRequest req, ServletResponse res) throws ServletException, 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.