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


java.lang.Object
   org.apache.cocoon.bean.CocoonWrapper

All known Subclasses:   org.apache.cocoon.bean.XSPPrecompileWrapper,  org.apache.cocoon.bean.CocoonBean,
CocoonWrapper
public class CocoonWrapper (Code)
The Cocoon Wrapper simplifies usage of the Cocoon object. Allows to create, configure Cocoon instance and process single requests.
author:
   Stefano Mazzocchi
author:
   Nicola Ken Barozzi
author:
   Vadim Gritsenko
author:
   Upayavira
version:
   $Id: CocoonWrapper.java 433543 2006-08-22 06:22:54Z crossley $

Inner Class :static class NullOutputStream extends OutputStream

Field Summary
final protected static  StringDEFAULT_ACCEPT
    
final protected static  StringDEFAULT_USER_AGENT
    
protected  Stringaccept
    
protected  CommandLineContextcliContext
    
protected  Cocooncocoon
    
protected  Filecontext
    
protected  Loggerlog
    
protected  StringlogLevel
    
protected  Stringlogger
    
protected  StringuserAgent
    


Method Summary
public  voidaddLoadedClass(String className)
    
public  voidaddLoadedClasses(List classList)
    
public  voiddispose()
    
protected  voidfinalize()
    
protected  StringgetClassPath(String context)
     This builds the important ClassPath used by this class.
protected  ExcaliburComponentManagergetComponentManager()
    
protected  CollectiongetLinks(String deparameterizedURI, Map parameters)
     Samples an URI for its links.
public  StringgetLoggerName()
    
protected  intgetPage(String deparameterizedURI, long lastModified, Map parameters, Map headers, Map links, List gatheredLinks, OutputStream stream)
     Processes an URI for its content.
protected  intgetPage(String deparameterizedURI, long lastModified, Map parameters, Map headers, Map links, List gatheredLinks, ContentHandler handler)
     Processes an URI for its content.
protected  StringgetType(String deparameterizedURI, Map parameters)
     Analyze the type of content for an URI.
public  voidinitialize()
    
protected  voidloadClasses(List classList)
    
public  voidprocessURI(String uri, OutputStream outputStream)
     Process single URI into given output stream.
public  voidprocessURI(String uri, ContentHandler handler)
    
public  voidsetAcceptOptions(String accept)
    
public  voidsetAgentOptions(String userAgent)
    
public  voidsetConfigFile(String configFile)
    
public  voidsetContextDir(String contextDir)
    
public  voidsetLogKit(String logKit)
    
public  voidsetLogLevel(String logLevel)
     Set log level.
public  voidsetLogger(String logger)
    
public  voidsetUseExistingCocoon(boolean useExistingCocoon)
    
public  voidsetWorkDir(String workDir)
    

Field Detail
DEFAULT_ACCEPT
final protected static String DEFAULT_ACCEPT(Code)



DEFAULT_USER_AGENT
final protected static String DEFAULT_USER_AGENT(Code)



accept
protected String accept(Code)



cliContext
protected CommandLineContext cliContext(Code)



cocoon
protected Cocoon cocoon(Code)



context
protected File context(Code)



log
protected Logger log(Code)



logLevel
protected String logLevel(Code)



logger
protected String logger(Code)



userAgent
protected String userAgent(Code)





Method Detail
addLoadedClass
public void addLoadedClass(String className)(Code)



addLoadedClasses
public void addLoadedClasses(List classList)(Code)



dispose
public void dispose()(Code)



finalize
protected void finalize() throws Throwable(Code)



getClassPath
protected String getClassPath(String context)(Code)
This builds the important ClassPath used by this class. It does so in a neutral way. It iterates in alphabetical order through every file in the lib directory and adds it to the classpath. Also, we add the files to the ClassLoader for the Cocoon system. In order to protect ourselves from skitzofrantic classloaders, we need to work with a known one.
Parameters:
  context - The context path a String value



getComponentManager
protected ExcaliburComponentManager getComponentManager()(Code)



getLinks
protected Collection getLinks(String deparameterizedURI, Map parameters) throws Exception(Code)
Samples an URI for its links.
Parameters:
  deparameterizedURI - a String value of an URI to start sampling from
Parameters:
  parameters - a Map value containing request parameters a Collection of links
exception:
  Exception - if an error occurs



getLoggerName
public String getLoggerName()(Code)



getPage
protected int getPage(String deparameterizedURI, long lastModified, Map parameters, Map headers, Map links, List gatheredLinks, OutputStream stream) throws Exception(Code)
Processes an URI for its content.
Parameters:
  deparameterizedURI - a String value of an URI to start sampling from
Parameters:
  parameters - a Map value containing request parameters
Parameters:
  links - a Map value
Parameters:
  stream - an OutputStream to write the content to a String value for the content
exception:
  Exception - if an error occurs



getPage
protected int getPage(String deparameterizedURI, long lastModified, Map parameters, Map headers, Map links, List gatheredLinks, ContentHandler handler) throws Exception(Code)
Processes an URI for its content.
Parameters:
  deparameterizedURI - a String value of an URI to start sampling from
Parameters:
  parameters - a Map value containing request parameters
Parameters:
  links - a Map value
Parameters:
  handler - an ContentHandler to send the content to a String value for the content
exception:
  Exception - if an error occurs



getType
protected String getType(String deparameterizedURI, Map parameters) throws Exception(Code)
Analyze the type of content for an URI.
Parameters:
  deparameterizedURI - a String value to analyze
Parameters:
  parameters - a Map value for the request a String value denoting the type of content
exception:
  Exception - if an error occurs



initialize
public void initialize() throws Exception(Code)



loadClasses
protected void loadClasses(List classList)(Code)



processURI
public void processURI(String uri, OutputStream outputStream) throws Exception(Code)
Process single URI into given output stream.
Parameters:
  uri - to process
Parameters:
  outputStream - to write generated contents into



processURI
public void processURI(String uri, ContentHandler handler) throws Exception(Code)
Process single URI into given content handler, skipping final serializer
Parameters:
  uri - to process
Parameters:
  handler - to write generated contents into



setAcceptOptions
public void setAcceptOptions(String accept)(Code)



setAgentOptions
public void setAgentOptions(String userAgent)(Code)



setConfigFile
public void setConfigFile(String configFile)(Code)



setContextDir
public void setContextDir(String contextDir)(Code)
Set context directory
Parameters:
  contextDir - context directory



setLogKit
public void setLogKit(String logKit)(Code)
Set LogKit configuration file name
Parameters:
  logKit - LogKit configuration file



setLogLevel
public void setLogLevel(String logLevel)(Code)
Set log level. Default is DEBUG.
Parameters:
  logLevel - log level



setLogger
public void setLogger(String logger)(Code)
Set logger category as default logger for the Cocoon engine
Parameters:
  logger - logger category



setUseExistingCocoon
public void setUseExistingCocoon(boolean useExistingCocoon)(Code)



setWorkDir
public void setWorkDir(String workDir)(Code)
Set working directory
Parameters:
  workDir - working directory



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.