cocoon

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 » Web Framework » cocoon 
Apache Cocoon
License:Apache License
URL:http://cocoon.apache.org/
Description:Apache Cocoon is a web development framework built around the concepts of separation of concerns and component-based web development.
Package NameComment
anttasks
com.ibatis.sqlmap.engine.datasource
com.informix.jdbc
javax.sql
loader
oracle.jdbc
oracle.sql
org.apache.cocoon
org.apache.cocoon.acting
org.apache.cocoon.acting.modular modular

modular

These sitemap components use modules to obtain values and are thus very flexible in use.

org.apache.cocoon.ajax
org.apache.cocoon.auth
org.apache.cocoon.auth.acting
org.apache.cocoon.auth.impl
org.apache.cocoon.auth.portal
org.apache.cocoon.bean
org.apache.cocoon.bean.helpers
org.apache.cocoon.bean.query
org.apache.cocoon.caching
org.apache.cocoon.caching.impl
org.apache.cocoon.caching.validity
org.apache.cocoon.components
org.apache.cocoon.components.accessor
org.apache.cocoon.components.axis
org.apache.cocoon.components.axis.providers
org.apache.cocoon.components.classloader
org.apache.cocoon.components.crawler Crawler - starts from a given URL and follows the links

Crawler - starts from a given URL and follows the links

This package provides Cocoon crawler components.

A crawler component crawls through URLs. The process is initiated by calling crawl(). The method iterator() returns an Iterator object. This Iterator object iterates over all URLs reachable from the passed URL of method crawl().

org.apache.cocoon.components.cron
org.apache.cocoon.components.deli
org.apache.cocoon.components.elementprocessor
org.apache.cocoon.components.elementprocessor.impl
org.apache.cocoon.components.elementprocessor.impl.poi
org.apache.cocoon.components.elementprocessor.impl.poi.hssf
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements
org.apache.cocoon.components.elementprocessor.types
org.apache.cocoon.components.expression
org.apache.cocoon.components.expression.javascript
org.apache.cocoon.components.expression.jexl
org.apache.cocoon.components.expression.jxpath
org.apache.cocoon.components.flow
org.apache.cocoon.components.flow.apples
org.apache.cocoon.components.flow.apples.samples
org.apache.cocoon.components.flow.java
org.apache.cocoon.components.flow.java.test
org.apache.cocoon.components.flow.javascript
org.apache.cocoon.components.flow.javascript.fom
org.apache.cocoon.components.flow.util
org.apache.cocoon.components.hsqldb
org.apache.cocoon.components.jms
org.apache.cocoon.components.jsp
org.apache.cocoon.components.language
org.apache.cocoon.components.language.generator
org.apache.cocoon.components.language.markup
org.apache.cocoon.components.language.markup.xsp
org.apache.cocoon.components.language.programming
org.apache.cocoon.components.language.programming.java
org.apache.cocoon.components.language.programming.javascript
org.apache.cocoon.components.language.programming.python
org.apache.cocoon.components.midi.xmidi
org.apache.cocoon.components.modules.database output

database

Database modules provide an abstraction layer for different interfaces used by database management systems for autoincrement columns. The value can be obtained from the DBMS or some other source before or after the statement is executed. Or some code can be inserted into the query to direct the DBMS to use the next value of a sequence.

org.apache.cocoon.components.modules.input input

InputModules

Introduction

Input modules are generic components that let one map a key to one or more values. In concept and API, input modules are closest to the java.util.Properties class. An input module has a number of named attributes, each of which has an associated value or values, which will be computed or looked up when requested.

    |       InputModule          |
    |----------------------------|
    | PropName   | PropValue(s)  |
    |----------------------------|
    | prop1      | value1        |
    | prop2      | value2        |
    | ...        | ...           |
    | propn      | valuen        |
    +----------------------------+

Three operations are defined by the InputModule interface:

getAttributeNames
Retrieve a list of all available attributes (the set prop1, prop2, ..., propn).
getAttribute
Retrieve the value of an attribute. For instance, getAttribute(prop1) would return value1
GetAttributeValues
Retrieve an Iterator for a list of values for an attribute.

Usage

Input modules are used in various places in Cocoon, notably from within the sitemap, XSPs, and matchers.

In the sitemap, input modules are made available through a {modulename:attributename} syntax. For instance, if a RequestParameterModule named request-param is defined in cocoon.xconf, then {request-param:user} will in effect be replaced by the value of the user request parameter (e.g. index.html?user=joe). Similarly, a SystemPropertyModule named system-property would allow {system-property:user.home} to represent user's home directory path.

Configuration

Input modules are declared in cocoon.xconf. There is a section dedicated to input modules:

  <input-modules>
    <component-instance name="global"
             class="org.apache.cocoon.components.modules.input.GlobalInputModule"
             logger="core.modules.input"/>
    <component-instance name="request"
             class="org.apache.cocoon.components.modules.input.RequestModule"
             logger="core.modules.input"/>
    <component-instance name="session"
             class="org.apache.cocoon.components.modules.input.SessionModule"
             logger="core.modules.input"/>
    <component-instance name="request-param"
             class="org.apache.cocoon.components.modules.input.RequestParameterModule"
             logger="core.modules.input"/>
    ...
    <component-instance name="defaults"
             class="org.apache.cocoon.components.modules.input.DefaultsModule"
             logger="core.modules.input">
      <values>
        <skin>defaultSkin</skin>
        <base-url>http://localhost:8080/cocoon</base-url>
      </values>
    </component-instance>
  <input-modules>

Static/dynamic configuration

In cocoon.xconf, each input module can take a static configuration. This is made available to the class via the configure() method, called once on startup. In the example above, an Avalon Configuration object representing the <values> node will be passed to the DefaultsModule.

In addition, every time an input module is used, a dynamic configuration is passed to it, as well as the current "object model". You can see these in the InputModule interface definition for all three methods. This dynamic, per-request configuration will usually override the static configuration. This dual static/dynamic configuration makes input modules useful in a wide variety of circumstances.

Meta Modules

So-called "meta" modules are modules that act on other modules. The simplest example of a meta module is the SimpleMappingMetaModule, which will query another module with a modified version of an attribute name. For instance, if configured with:

<component-instance name="mappingmodule"
    class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
    logger="core.modules.mapper">
  <input-module name="xmlmodule"/>
  <prefix>/site/</prefix>
  <suffix>/@href</suffix>
</component-instance>

Then a key foo will cause xmlmodule to be queried for attribute /site/foo/@href, and that value will be returned.

Another useful example is ChainMetaModule, which will query a set of input modules until one returns a non-null value for an attribute, providing "fall-back" behaviour.

The machinery for meta modules is provided in AbstractMetaModule.

JXPath use in Input Modules

Many input modules make use of the JXPath library, which lets one traverse Java object structures with an XPath-like syntax. Support for this is mostly located in the JXPathMetaModule and AbstractJXPathModule superclasses, which should be kept synchronised.

Further Information

The best way to learn what can be done with input modules is by examining the samples that come with the Cocoon application. The main Cocoon documentation and Cocoon Wiki should have further information.

org.apache.cocoon.components.modules.output output

output

Output modules provide a simple interface to set values largely based on the methods provided by request and session to set values of attributes. Output modules should support transactional behaviour. Transaction begin is implicit with the first setAttribute method call. Transactions must be terminated either by commit or rollback. 

org.apache.cocoon.components.naming
org.apache.cocoon.components.notification
org.apache.cocoon.components.persistence
org.apache.cocoon.components.pipeline
org.apache.cocoon.components.pipeline.impl
org.apache.cocoon.components.profiler
org.apache.cocoon.components.renderer
org.apache.cocoon.components.repository
org.apache.cocoon.components.repository.helpers
org.apache.cocoon.components.repository.impl
org.apache.cocoon.components.resolver Catalog Entity Resolver

Catalog Entity Resolver

A component that uses entity catalogs for resolving external entities. It sets the entity resolver onto the hook provided by the SAX parser, and then handles the resolveEntity() requests.

This implementation uses the XML Entity and URI Resolvers published by Norman Walsh at Apache XML Commons

org.apache.cocoon.components.sax
org.apache.cocoon.components.search Search

Search - indexing and searching of xml content

The search package provides interfaces and methods for indexing, and for searching.

The indexing part builds a searchindex. The search part searches through the searchindex.

See the document userdocs/concepts/xmlsearching.html - XML Searching

org.apache.cocoon.components.serializers
org.apache.cocoon.components.serializers.encoding
org.apache.cocoon.components.serializers.util
org.apache.cocoon.components.slide
org.apache.cocoon.components.slide.impl
org.apache.cocoon.components.source
org.apache.cocoon.components.source.helpers
org.apache.cocoon.components.source.impl
org.apache.cocoon.components.source.impl.validity
org.apache.cocoon.components.store.impl
org.apache.cocoon.components.thread
org.apache.cocoon.components.transcoder
org.apache.cocoon.components.treeprocessor Tree Processor

Evaluation tree based implementation of the Processor interface

org.apache.cocoon.components.treeprocessor.sitemap Implemention of the Sitemap language

Implemention of the Sitemap language

org.apache.cocoon.components.treeprocessor.variables
org.apache.cocoon.components.url
org.apache.cocoon.components.validation
org.apache.cocoon.components.validation.impl
org.apache.cocoon.components.validation.jaxp
org.apache.cocoon.components.validation.jing
org.apache.cocoon.components.variables
org.apache.cocoon.components.web3
org.apache.cocoon.components.web3.impl
org.apache.cocoon.components.webdav
org.apache.cocoon.components.webdav.impl
org.apache.cocoon.components.xpointer
org.apache.cocoon.components.xpointer.parser
org.apache.cocoon.components.xscript
org.apache.cocoon.components.xslt
org.apache.cocoon.core.container
org.apache.cocoon.databases.ibatis
org.apache.cocoon.environment
org.apache.cocoon.environment.background
org.apache.cocoon.environment.commandline
org.apache.cocoon.environment.commandline.test Search

Test Cases Environment Commandline

This package provides Cocoon environment commandline test cases.

For more information @see org.apache.cocoon.environment.commandline

org.apache.cocoon.environment.http
org.apache.cocoon.environment.mock
org.apache.cocoon.environment.portlet
org.apache.cocoon.environment.wrapper
org.apache.cocoon.faces
org.apache.cocoon.faces.context
org.apache.cocoon.faces.renderkit
org.apache.cocoon.faces.samples
org.apache.cocoon.faces.samples.carstore
org.apache.cocoon.faces.samples.components.components
org.apache.cocoon.faces.samples.components.model
org.apache.cocoon.faces.samples.components.renderkit
org.apache.cocoon.faces.samples.components.taglib
org.apache.cocoon.faces.taglib
org.apache.cocoon.faces.taglib.html
org.apache.cocoon.forms
org.apache.cocoon.forms.acting
org.apache.cocoon.forms.binding
org.apache.cocoon.forms.binding.library
org.apache.cocoon.forms.datatype
org.apache.cocoon.forms.datatype.convertor
org.apache.cocoon.forms.datatype.typeimpl
org.apache.cocoon.forms.datatype.validationruleimpl
org.apache.cocoon.forms.event
org.apache.cocoon.forms.event.impl
org.apache.cocoon.forms.expression
org.apache.cocoon.forms.flow.java
org.apache.cocoon.forms.flow.javascript
org.apache.cocoon.forms.formmodel
org.apache.cocoon.forms.formmodel.algorithms
org.apache.cocoon.forms.formmodel.library
org.apache.cocoon.forms.formmodel.tree
org.apache.cocoon.forms.formmodel.tree.builder
org.apache.cocoon.forms.generation
org.apache.cocoon.forms.samples
org.apache.cocoon.forms.samples.bindings
org.apache.cocoon.forms.samples.dreamteam
org.apache.cocoon.forms.transformation
org.apache.cocoon.forms.util
org.apache.cocoon.forms.validation
org.apache.cocoon.forms.validation.impl
org.apache.cocoon.generation
org.apache.cocoon.generation.asciiart
org.apache.cocoon.i18n Internationalization

Internationalization support.

Internationalization bundle resource handling interfaces and default implementation for XML message catalogue.

Other helper classes for i18n and localization.

org.apache.cocoon.jcr
org.apache.cocoon.jcr.source
org.apache.cocoon.jxpath
org.apache.cocoon.mail
org.apache.cocoon.mail.command
org.apache.cocoon.mail.datasource
org.apache.cocoon.mail.transformation
org.apache.cocoon.matching
org.apache.cocoon.matching.modular
org.apache.cocoon.ojb.components
org.apache.cocoon.ojb.jdo.components
org.apache.cocoon.ojb.odmg.components
org.apache.cocoon.ojb.samples
org.apache.cocoon.ojb.samples.bean
org.apache.cocoon.portal
org.apache.cocoon.portal.acting
org.apache.cocoon.portal.acting.helpers
org.apache.cocoon.portal.aspect
org.apache.cocoon.portal.aspect.impl
org.apache.cocoon.portal.bridges
org.apache.cocoon.portal.components.modules.input
org.apache.cocoon.portal.coplet
org.apache.cocoon.portal.coplet.adapter
org.apache.cocoon.portal.coplet.adapter.impl
org.apache.cocoon.portal.coplet.impl
org.apache.cocoon.portal.coplet.status
org.apache.cocoon.portal.coplets.basket
org.apache.cocoon.portal.coplets.basket.events
org.apache.cocoon.portal.event
org.apache.cocoon.portal.event.aspect
org.apache.cocoon.portal.event.aspect.impl
org.apache.cocoon.portal.event.impl
org.apache.cocoon.portal.event.subscriber.impl
org.apache.cocoon.portal.factory
org.apache.cocoon.portal.factory.impl
org.apache.cocoon.portal.generation
org.apache.cocoon.portal.impl
org.apache.cocoon.portal.layout
org.apache.cocoon.portal.layout.impl
org.apache.cocoon.portal.layout.renderer
org.apache.cocoon.portal.layout.renderer.aspect
org.apache.cocoon.portal.layout.renderer.aspect.impl
org.apache.cocoon.portal.layout.renderer.impl
org.apache.cocoon.portal.pluto
org.apache.cocoon.portal.pluto.factory
org.apache.cocoon.portal.pluto.om
org.apache.cocoon.portal.pluto.om.common
org.apache.cocoon.portal.pluto.service.log
org.apache.cocoon.portal.pluto.services
org.apache.cocoon.portal.pluto.services.factory
org.apache.cocoon.portal.pluto.servlet
org.apache.cocoon.portal.pluto.test
org.apache.cocoon.portal.profile
org.apache.cocoon.portal.profile.impl
org.apache.cocoon.portal.reading
org.apache.cocoon.portal.security
org.apache.cocoon.portal.serialization
org.apache.cocoon.portal.source
org.apache.cocoon.portal.tools
org.apache.cocoon.portal.tools.acting
org.apache.cocoon.portal.tools.copletManagement
org.apache.cocoon.portal.tools.copletManagement.generation
org.apache.cocoon.portal.tools.generation
org.apache.cocoon.portal.tools.helper
org.apache.cocoon.portal.tools.model
org.apache.cocoon.portal.tools.service
org.apache.cocoon.portal.tools.transformation
org.apache.cocoon.portal.tools.userManagement
org.apache.cocoon.portal.transformation
org.apache.cocoon.portal.util
org.apache.cocoon.portal.wsrp.adapter
org.apache.cocoon.portal.wsrp.consumer
org.apache.cocoon.portal.wsrp.logging
org.apache.cocoon.portlet
org.apache.cocoon.portlet.multipart
org.apache.cocoon.profiling.generation
org.apache.cocoon.profiling.statistics
org.apache.cocoon.reading
org.apache.cocoon.reading.imageop
org.apache.cocoon.samples
org.apache.cocoon.samples.errorhandling
org.apache.cocoon.samples.flow.java
org.apache.cocoon.samples.flow.prefs
org.apache.cocoon.samples.jms
org.apache.cocoon.samples.parentcm
org.apache.cocoon.samples.tour.beans
org.apache.cocoon.samples.tour.shapes
org.apache.cocoon.selection
org.apache.cocoon.serialization
org.apache.cocoon.servlet
org.apache.cocoon.servlet.multipart
org.apache.cocoon.sitemap
org.apache.cocoon.slide.util
org.apache.cocoon.slop.generation
org.apache.cocoon.slop.interfaces
org.apache.cocoon.slop.parsing
org.apache.cocoon.taglib
org.apache.cocoon.taglib.core
org.apache.cocoon.taglib.datetime
org.apache.cocoon.taglib.i18n
org.apache.cocoon.taglib.jxpath.core
org.apache.cocoon.taglib.string
org.apache.cocoon.taglib.test
org.apache.cocoon.taglib.test.acting
org.apache.cocoon.template
org.apache.cocoon.template.environment
org.apache.cocoon.template.expression
org.apache.cocoon.template.instruction
org.apache.cocoon.template.script
org.apache.cocoon.template.script.event
org.apache.cocoon.template.xml
org.apache.cocoon.transformation
org.apache.cocoon.transformation.helpers
org.apache.cocoon.transformation.pagination
org.apache.cocoon.util
org.apache.cocoon.util.jxpath
org.apache.cocoon.util.location Classes and utilities used to track location information.
org.apache.cocoon.util.log LogKit related utilities

LogKit related utilities

org.apache.cocoon.util.test
org.apache.cocoon.webapps.authentication
org.apache.cocoon.webapps.authentication.acting
org.apache.cocoon.webapps.authentication.components
org.apache.cocoon.webapps.authentication.configuration
org.apache.cocoon.webapps.authentication.context
org.apache.cocoon.webapps.authentication.generation
org.apache.cocoon.webapps.authentication.user
org.apache.cocoon.webapps.portal
org.apache.cocoon.webapps.portal.acting
org.apache.cocoon.webapps.portal.components
org.apache.cocoon.webapps.portal.context
org.apache.cocoon.webapps.portal.generation
org.apache.cocoon.webapps.session
org.apache.cocoon.webapps.session.acting
org.apache.cocoon.webapps.session.components
org.apache.cocoon.webapps.session.context
org.apache.cocoon.webapps.session.selection
org.apache.cocoon.webapps.session.transformation
org.apache.cocoon.webapps.session.xml
org.apache.cocoon.webservices
org.apache.cocoon.webservices.instrument
org.apache.cocoon.webservices.memory
org.apache.cocoon.webservices.system
org.apache.cocoon.woody
org.apache.cocoon.woody.acting
org.apache.cocoon.woody.binding
org.apache.cocoon.woody.datatype
org.apache.cocoon.woody.datatype.convertor General purpose convertors for converting between string and object representations of things (numbers, dates, ...).
org.apache.cocoon.woody.datatype.typeimpl
org.apache.cocoon.woody.datatype.validationruleimpl
org.apache.cocoon.woody.event
org.apache.cocoon.woody.event.impl
org.apache.cocoon.woody.expression
org.apache.cocoon.woody.flow.javascript
org.apache.cocoon.woody.flow.javascript.v2
org.apache.cocoon.woody.formmodel
org.apache.cocoon.woody.generation
org.apache.cocoon.woody.samples
org.apache.cocoon.woody.samples.bindings
org.apache.cocoon.woody.transformation
org.apache.cocoon.woody.util
org.apache.cocoon.woody.validation
org.apache.cocoon.woody.validation.impl
org.apache.cocoon.xml
org.apache.cocoon.xml.dom
org.apache.cocoon.xml.xlink
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.