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


org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
   org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
      org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter

All known Subclasses:   org.apache.cocoon.portal.coplet.adapter.impl.ApplicationCopletAdapter,
CachingURICopletAdapter
public class CachingURICopletAdapter extends URICopletAdapter implements Parameterizable(Code)
This adapter extends the org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter by a caching mechanism. The result of the called uri/pipeline is cached until a org.apache.cocoon.portal.event.CopletInstanceEvent for that coplet instance is received. The content can eiter be cached in the user session or globally. The default is the user session.
author:
   Gerald Kahrer
author:
   Carsten Ziegeler
version:
   $Id: CachingURICopletAdapter.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
final public static  StringCACHE
     The temporary attribute name for the storing the cached coplet content.
final public static  StringCONFIGURATION_CACHE_GLOBAL
     The configuration name for using the global cache.
final public static  StringCONFIGURATION_CACHE_GLOBAL_USE_ATTRIBUTES
     The configuration name for querying instance attributes to generate the key for the global cache.
final public static  StringCONFIGURATION_ENABLE_CACHING
     The configuration name for enabling/disabling the cache.
final public static  StringCONFIGURATION_IGNORE_SIZING_EVENTS
     The configuration name for ignoring sizing events to clear the cache.
final public static  StringDO_NOT_CACHE
     This temporary attribute can be set on the instance to not cache the current response.
final public static  StringPARAMETER_DISABLE_CACHING
     Caching can be basically disabled with this boolean parameter.
protected  Cachecache
     The cache to use for global caching.
protected  BooleanenableCaching
    


Method Summary
public  voiddispose()
    
protected  StringgetCacheKey(CopletInstanceData coplet, String uri)
     Build the key for the global cache.
public  voidhandleCopletInstanceEvent(CopletInstanceEvent event)
     This adapter listens for CopletInstanceEvents.
public  voidinform(CopletInstanceEvent e, PortalService service)
    
protected  booleanisSizingEvent(CopletInstanceEvent event)
     Tests if the event is a sizing event for the coplet.
public  voidparameterize(Parameters parameters)
    
public  voidservice(ServiceManager manager)
    
public  voidstreamContent(CopletInstanceData coplet, ContentHandler contentHandler)
    
public  voidstreamContent(CopletInstanceData coplet, String uri, ContentHandler contentHandler)
    

Field Detail
CACHE
final public static String CACHE(Code)
The temporary attribute name for the storing the cached coplet content.



CONFIGURATION_CACHE_GLOBAL
final public static String CONFIGURATION_CACHE_GLOBAL(Code)
The configuration name for using the global cache.



CONFIGURATION_CACHE_GLOBAL_USE_ATTRIBUTES
final public static String CONFIGURATION_CACHE_GLOBAL_USE_ATTRIBUTES(Code)
The configuration name for querying instance attributes to generate the key for the global cache.



CONFIGURATION_ENABLE_CACHING
final public static String CONFIGURATION_ENABLE_CACHING(Code)
The configuration name for enabling/disabling the cache.



CONFIGURATION_IGNORE_SIZING_EVENTS
final public static String CONFIGURATION_IGNORE_SIZING_EVENTS(Code)
The configuration name for ignoring sizing events to clear the cache.



DO_NOT_CACHE
final public static String DO_NOT_CACHE(Code)
This temporary attribute can be set on the instance to not cache the current response.



PARAMETER_DISABLE_CACHING
final public static String PARAMETER_DISABLE_CACHING(Code)
Caching can be basically disabled with this boolean parameter.



cache
protected Cache cache(Code)
The cache to use for global caching.



enableCaching
protected Boolean enableCaching(Code)
Is caching enabled?





Method Detail
dispose
public void dispose()(Code)

See Also:   org.apache.avalon.framework.activity.Disposable.dispose



getCacheKey
protected String getCacheKey(CopletInstanceData coplet, String uri)(Code)
Build the key for the global cache.



handleCopletInstanceEvent
public void handleCopletInstanceEvent(CopletInstanceEvent event)(Code)
This adapter listens for CopletInstanceEvents. Each event sets the cache invalid, except for global caching using attributes, as all attributes are part of the cache key.



inform
public void inform(CopletInstanceEvent e, PortalService service)(Code)

See Also:   org.apache.cocoon.portal.event.Receiver



isSizingEvent
protected boolean isSizingEvent(CopletInstanceEvent event)(Code)
Tests if the event is a sizing event for the coplet.



parameterize
public void parameterize(Parameters parameters)(Code)

See Also:   org.apache.avalon.framework.parameters.Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)



service
public void service(ServiceManager manager) throws ServiceException(Code)

See Also:   org.apache.avalon.framework.service.Serviceable.service(org.apache.avalon.framework.service.ServiceManager)



streamContent
public void streamContent(CopletInstanceData coplet, ContentHandler contentHandler) throws SAXException(Code)

See Also:   org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter.streamContent(org.apache.cocoon.portal.coplet.CopletInstanceDataorg.xml.sax.ContentHandler)



streamContent
public void streamContent(CopletInstanceData coplet, String uri, ContentHandler contentHandler) throws SAXException(Code)

See Also:   org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter.streamContent(org.apache.cocoon.portal.coplet.CopletInstanceDatajava.lang.Stringorg.xml.sax.ContentHandler)



Fields inherited from org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
protected Context context(Code)(Java Doc)
protected SourceResolver resolver(Code)(Java Doc)

Methods inherited from org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
public void contextualize(Context context) throws ContextException(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
public void inform(CopletInstanceEvent event, PortalService service)(Code)(Java Doc)
public void initialize() throws Exception(Code)(Java Doc)
protected boolean renderErrorContent(CopletInstanceData coplet, ContentHandler handler, Exception error) throws SAXException(Code)(Java Doc)
public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
public void streamContent(CopletInstanceData coplet, ContentHandler contentHandler) throws SAXException(Code)(Java Doc)
public void streamContent(CopletInstanceData coplet, String uri, ContentHandler contentHandler) throws SAXException(Code)(Java Doc)

Fields inherited from org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
protected ServiceManager manager(Code)(Java Doc)

Methods inherited from org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
public void destroy(CopletInstanceData coplet)(Code)(Java Doc)
protected Object getConfiguration(CopletInstanceData coplet, String key)(Code)(Java Doc)
protected Object getConfiguration(CopletInstanceData coplet, String key, Object defaultValue)(Code)(Java Doc)
public void init(CopletInstanceData coplet)(Code)(Java Doc)
public void login(CopletInstanceData coplet)(Code)(Java Doc)
public void logout(CopletInstanceData coplet)(Code)(Java Doc)
protected boolean renderErrorContent(CopletInstanceData coplet, ContentHandler handler, Exception error) throws SAXException(Code)(Java Doc)
public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
abstract public void streamContent(CopletInstanceData coplet, ContentHandler contentHandler) throws SAXException(Code)(Java Doc)
public void toSAX(CopletInstanceData coplet, ContentHandler contentHandler) throws SAXException(Code)(Java Doc)

ww__w___.___j_a__v__a___2__s___.___c_om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.