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


org.apache.cocoon.components.pipeline.AbstractProcessingPipeline

All known Subclasses:   org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline,  org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline,
AbstractProcessingPipeline
abstract public class AbstractProcessingPipeline extends AbstractLogEnabled implements ProcessingPipeline,Parameterizable,Recyclable(Code)
This is the base for all implementations of a ProcessingPipeline.
since:
   2.1
author:
   Carsten Ziegeler
version:
   CVS $Id: AbstractProcessingPipeline.java 451148 2006-09-29 07:50:00Z anathaniel $


Field Summary
protected  Parametersconfiguration
    
protected  longconfiguredExpires
    
protected  intconfiguredOutputBufferSize
    
protected  longexpires
    
protected  Generatorgenerator
    
protected  ParametersgeneratorParam
    
protected  ComponentSelectorgeneratorSelector
    
protected  StringgeneratorSource
    
protected  XMLConsumerlastConsumer
     This is the last component in the pipeline, either the serializer or a custom XML consumer in case of internal processing.
protected  ComponentManagermanager
    
protected  ComponentManagernewManager
    
protected  intoutputBufferSize
    
protected  Parametersparameters
    
protected  Readerreader
    
protected  StringreaderMimeType
    
protected  ParametersreaderParam
    
protected  OutputComponentSelectorreaderSelector
    
protected  StringreaderSource
    
protected  Serializerserializer
    
protected  StringserializerMimeType
    
protected  ParametersserializerParam
    
protected  OutputComponentSelectorserializerSelector
    
protected  StringserializerSource
    
protected  StringsitemapReaderMimeType
    
protected  StringsitemapSerializerMimeType
    
protected  ArrayListtransformerParams
    
protected  ArrayListtransformerSelectors
    
protected  ArrayListtransformerSources
    
protected  ArrayListtransformers
    


Method Summary
public  voidaddTransformer(String role, String source, Parameters param, Parameters hintParam)
     Add a transformer at the end of the pipeline. The transformer role is given : the actual Transformer is fetched from the latest ComponentManager given by compose() or recompose().
Parameters:
  role - the transformer role in the component manager.
Parameters:
  source - the source used to setup the transformer (e.g.
protected  booleancheckIfModified(Environment environment, long lastModified)
    
protected  booleancheckPipeline()
    
public  voidcompose(ComponentManager manager)
    
protected  voidconnect(Environment environment, XMLProducer producer, XMLConsumer consumer)
    
protected  voidconnectPipeline(Environment environment)
     Connect the XML pipeline.
public  GeneratorgetGenerator()
    
public  StringgetKeyForEventPipeline()
     Return the key for the event pipeline If the "event pipeline" (= the complete pipeline without the serializer) is cacheable and valid, return a key.
protected  LocationgetLocation(Parameters param)
    
public  SourceValiditygetValidityForEventPipeline()
     Return valid validity objects for the event pipeline If the "event pipeline" (= the complete pipeline without the serializer) is cacheable and valid, return all validity objects.
protected  voidhandleException(Exception e)
     Handles exception which can happen during pipeline processing.
public  voidinformBranchPoint()
     Informs pipeline we have come across a branch point.
protected  booleanisInternalError()
    
public  voidparameterize(Parameters params)
    
public  voidprepareInternal(Environment environment)
     Prepare an internal processing.
protected  voidprepareInternalErrorHandler(Environment environment, ProcessingException ex)
     If prepareInternal fails, prepare internal error handler.
protected  voidpreparePipeline(Environment environment)
    
public  booleanprocess(Environment environment)
     Process the given Environment, producing the output.
public  booleanprocess(Environment environment, XMLConsumer consumer)
     Process the given Environment, but do not use the serializer.
protected  booleanprocessErrorHandler(Environment environment, ProcessingException e, XMLConsumer consumer)
    
protected  booleanprocessReader(Environment environment)
     Process the pipeline using a reader.
protected  booleanprocessXMLPipeline(Environment environment)
    
public  voidrecompose(ComponentManager manager)
    
public  voidrecycle()
    
public  voidrelease()
     Release this component.
public  voidsetErrorHandler(SitemapErrorHandler errorHandler)
     Sets error handler for this pipeline.
public  voidsetGenerator(String role, String source, Parameters param, Parameters hintParam)
     Set the generator that will be used as the initial step in the pipeline.
protected  voidsetMimeTypeForReader(Environment environment)
    
protected  voidsetMimeTypeForSerializer(Environment environment)
    
public  voidsetReader(String role, String source, Parameters param, String mimeType)
    
public  voidsetSerializer(String role, String source, Parameters param, Parameters hintParam, String mimeType)
    
public  voidsetup(Parameters params)
    
protected  voidsetupPipeline(Environment environment)
     Setup pipeline components.
protected  voidsetupReader(Environment environment)
    

Field Detail
configuration
protected Parameters configuration(Code)
The configuration



configuredExpires
protected long configuredExpires(Code)
Configured Expires value



configuredOutputBufferSize
protected int configuredOutputBufferSize(Code)
Configured Output Buffer Size



expires
protected long expires(Code)
Expires value



generator
protected Generator generator(Code)



generatorParam
protected Parameters generatorParam(Code)



generatorSelector
protected ComponentSelector generatorSelector(Code)



generatorSource
protected String generatorSource(Code)



lastConsumer
protected XMLConsumer lastConsumer(Code)
This is the last component in the pipeline, either the serializer or a custom XML consumer in case of internal processing.



manager
protected ComponentManager manager(Code)
The component manager set with compose()



newManager
protected ComponentManager newManager(Code)
The component manager set with compose() and recompose()



outputBufferSize
protected int outputBufferSize(Code)
Output Buffer Size



parameters
protected Parameters parameters(Code)
The parameters



reader
protected Reader reader(Code)



readerMimeType
protected String readerMimeType(Code)



readerParam
protected Parameters readerParam(Code)



readerSelector
protected OutputComponentSelector readerSelector(Code)



readerSource
protected String readerSource(Code)



serializer
protected Serializer serializer(Code)



serializerMimeType
protected String serializerMimeType(Code)



serializerParam
protected Parameters serializerParam(Code)



serializerSelector
protected OutputComponentSelector serializerSelector(Code)



serializerSource
protected String serializerSource(Code)



sitemapReaderMimeType
protected String sitemapReaderMimeType(Code)



sitemapSerializerMimeType
protected String sitemapSerializerMimeType(Code)



transformerParams
protected ArrayList transformerParams(Code)



transformerSelectors
protected ArrayList transformerSelectors(Code)



transformerSources
protected ArrayList transformerSources(Code)



transformers
protected ArrayList transformers(Code)





Method Detail
addTransformer
public void addTransformer(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code)
Add a transformer at the end of the pipeline. The transformer role is given : the actual Transformer is fetched from the latest ComponentManager given by compose() or recompose().
Parameters:
  role - the transformer role in the component manager.
Parameters:
  source - the source used to setup the transformer (e.g. XSL file), ornull if no source is given.
Parameters:
  param - the parameters for the transfomer.
throws:
  ProcessingException - if the generator couldn't be obtained.



checkIfModified
protected boolean checkIfModified(Environment environment, long lastModified) throws ProcessingException(Code)



checkPipeline
protected boolean checkPipeline()(Code)
Sanity check true if the pipeline is 'sane', false otherwise.



compose
public void compose(ComponentManager manager) throws ComponentException(Code)
Composable Interface



connect
protected void connect(Environment environment, XMLProducer producer, XMLConsumer consumer) throws ProcessingException(Code)
Connect the next component



connectPipeline
protected void connectPipeline(Environment environment) throws ProcessingException(Code)
Connect the XML pipeline.



getGenerator
public Generator getGenerator()(Code)
Get the generator - used for content aggregation



getKeyForEventPipeline
public String getKeyForEventPipeline()(Code)
Return the key for the event pipeline If the "event pipeline" (= the complete pipeline without the serializer) is cacheable and valid, return a key. Otherwise return null



getLocation
protected Location getLocation(Parameters param)(Code)



getValidityForEventPipeline
public SourceValidity getValidityForEventPipeline()(Code)
Return valid validity objects for the event pipeline If the "event pipeline" (= the complete pipeline without the serializer) is cacheable and valid, return all validity objects. Otherwise return null



handleException
protected void handleException(Exception e) throws ProcessingException(Code)
Handles exception which can happen during pipeline processing. If this not a connection reset, then all locations for pipeline components are added to the exception.
throws:
  ConnectionResetException - if connection reset detected
throws:
  ProcessingException - in all other cases



informBranchPoint
public void informBranchPoint()(Code)
Informs pipeline we have come across a branch point. Default behaviour is do nothing.



isInternalError
protected boolean isInternalError()(Code)
true if error happened during internal pipeline prepare call.



parameterize
public void parameterize(Parameters params) throws ParameterException(Code)
Parameterizable Interface - Configuration



prepareInternal
public void prepareInternal(Environment environment) throws ProcessingException(Code)
Prepare an internal processing.
Parameters:
  environment - The current environment.
throws:
  ProcessingException -



prepareInternalErrorHandler
protected void prepareInternalErrorHandler(Environment environment, ProcessingException ex) throws ProcessingException(Code)
If prepareInternal fails, prepare internal error handler.



preparePipeline
protected void preparePipeline(Environment environment) throws ProcessingException(Code)
Prepare the pipeline



process
public boolean process(Environment environment) throws ProcessingException(Code)
Process the given Environment, producing the output.



process
public boolean process(Environment environment, XMLConsumer consumer) throws ProcessingException(Code)
Process the given Environment, but do not use the serializer. Instead all SAX events are streamed to the XMLConsumer.



processErrorHandler
protected boolean processErrorHandler(Environment environment, ProcessingException e, XMLConsumer consumer) throws ProcessingException(Code)



processReader
protected boolean processReader(Environment environment) throws ProcessingException(Code)
Process the pipeline using a reader.
throws:
  ProcessingException - if



processXMLPipeline
protected boolean processXMLPipeline(Environment environment) throws ProcessingException(Code)
Process the SAX event pipeline



recompose
public void recompose(ComponentManager manager) throws ComponentException(Code)
Recomposable Interface



recycle
public void recycle()(Code)



release
public void release()(Code)
Release this component. If you get an instance not by a component manager but for example by a processor, you have to release this component by calling this method and NOT by using a component manager!



setErrorHandler
public void setErrorHandler(SitemapErrorHandler errorHandler)(Code)
Sets error handler for this pipeline. Used for handling errors in the internal pipelines.
Parameters:
  errorHandler - error handler



setGenerator
public void setGenerator(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code)
Set the generator that will be used as the initial step in the pipeline. The generator role is given : the actual Generator is fetched from the latest ComponentManager given by compose() or recompose().
Parameters:
  role - the generator role in the component manager.
Parameters:
  source - the source where to produce XML from, or null if nosource is given.
Parameters:
  param - the parameters for the generator.
throws:
  ProcessingException - if the generator couldn't be obtained.



setMimeTypeForReader
protected void setMimeTypeForReader(Environment environment) throws ProcessingException(Code)
Set the mime-type for a reader
Parameters:
  environment - The current environment



setMimeTypeForSerializer
protected void setMimeTypeForSerializer(Environment environment) throws ProcessingException(Code)
Set the mime-type for a serializer
Parameters:
  environment - The current environment



setReader
public void setReader(String role, String source, Parameters param, String mimeType) throws ProcessingException(Code)
Set the reader for this pipeline
Parameters:
  mimeType - Can be null



setSerializer
public void setSerializer(String role, String source, Parameters param, Parameters hintParam, String mimeType) throws ProcessingException(Code)
Set the serializer for this pipeline
Parameters:
  mimeType - Can be null



setup
public void setup(Parameters params)(Code)
Setup this component



setupPipeline
protected void setupPipeline(Environment environment) throws ProcessingException(Code)
Setup pipeline components.



setupReader
protected void setupReader(Environment environment) throws ProcessingException(Code)
Setup the reader



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