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


org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon

FOM_Cocoon
public class FOM_Cocoon extends ScriptableObject (Code)
Implementation of FOM (Flow Object Model).
since:
   2.1
author:
   Christopher Oliver
author:
   Reinhard P\u00F6tz
version:
   CVS $Id: FOM_Cocoon.java 518747 2007-03-15 20:30:03Z antonio $

Inner Class :class CallContext
Inner Class :public static class FOM_Request extends AttributeHolderJavaObject
Inner Class :public static class FOM_Session extends AttributeHolderJavaObject
Inner Class :public static class FOM_Context extends AttributeHolderJavaObject

Field Summary
protected  PageLocalScopeHolderpageLocal
    


Method Summary
public  voidforwardTo(String uri, Object bean, FOM_WebContinuation fom_wk)
    
public  StringgetClassName()
    
public  org.apache.cocoon.environment.ContextgetContext()
    
public  StringgetInterpreterId()
     Required by FOM_WebContinuation.
public  MapgetObjectModel()
    
public  ScriptablegetParameters()
    
public  RequestgetRequest()
    
public  ResponsegetResponse()
    
public  ServiceManagergetServiceManager()
    
public  SessiongetSession()
    
public  voidhandleContinuation(String kontId, Scriptable parameters)
     Perform the behavior of This can be used in cases where the continuation id is not encoded in the request in a form convenient to access in the sitemap.
static  voidinit(Scriptable scope)
    
public  ObjectjsFunction_createObject(Object classObj)
     Create and setup an object so that it can access the information provided to regular components.
public  ScriptablejsFunction_createPageLocal()
    
public  voidjsFunction_disposeObject(Object obj)
     Dispose an object that has been created using FOM_Cocoon.jsFunction_createObject(Object) .
public  ObjectjsFunction_getComponent(String id)
     Access components.
public  ObjectjsFunction_load(String filename)
     Load the script file specified as argument.
public  FOM_WebContinuationjsFunction_makeWebContinuation(Object k, Object ttl)
     Create a Bookmark WebContinuation from a JS Continuation with the last continuation of sendPageAndWait as its parent.
public  voidjsFunction_processPipelineTo(String uri, Object map, Object outputStream)
    
public  voidjsFunction_redirectTo(String uri, boolean isGlobal)
    
public  voidjsFunction_releaseComponent(Object component)
     Release pooled components.
public  FOM_WebContinuationjsFunction_sendPage(String uri, Object obj, Object wk)
    
public  voidjsFunction_sendStatus(int sc)
    
public  ObjectjsFunction_setupObject(Object obj)
     Setup an object so that it can access the information provided to regular components.
public  ScriptablejsGet_context()
    
public  FOM_WebContinuationjsGet_continuation()
    
public  ScriptablejsGet_log()
    
public  ScriptablejsGet_parameters()
    
public  ScriptablejsGet_request()
    
public  ScriptablejsGet_response()
    
public  ScriptablejsGet_session()
    
public  voidjsSet_continuation(Object obj)
    
public  FOM_WebContinuationmakeWebContinuation(Continuation k, FOM_WebContinuation parent, int timeToLive)
    
public  voidpopCallContext()
    
public  voidpushCallContext(FOM_JavaScriptInterpreter interp, Redirector redirector, ServiceManager manager, Context avalonContext, Logger logger, WebContinuation lastContinuation)
    
 voidsetParameters(Scriptable value)
    

Field Detail
pageLocal
protected PageLocalScopeHolder pageLocal(Code)





Method Detail
forwardTo
public void forwardTo(String uri, Object bean, FOM_WebContinuation fom_wk) throws Exception(Code)
Call the Cocoon Sitemap to process a page
Parameters:
  uri - Uri to match
Parameters:
  bean - Input to page
Parameters:
  fom_wk - Current Web continuation (may be null)



getClassName
public String getClassName()(Code)



getContext
public org.apache.cocoon.environment.Context getContext()(Code)
Get the current context The context



getInterpreterId
public String getInterpreterId()(Code)
Required by FOM_WebContinuation. This way we do not make whole Interpreter public interpreter Id associated with this FOM.



getObjectModel
public Map getObjectModel()(Code)
Get the current object model The object model



getParameters
public Scriptable getParameters()(Code)



getRequest
public Request getRequest()(Code)
Get the current request The request



getResponse
public Response getResponse()(Code)
Get the current response The response



getServiceManager
public ServiceManager getServiceManager()(Code)



getSession
public Session getSession()(Code)
Get the current session The session (may be null)



handleContinuation
public void handleContinuation(String kontId, Scriptable parameters) throws Exception(Code)
Perform the behavior of This can be used in cases where the continuation id is not encoded in the request in a form convenient to access in the sitemap. Your script can extract the id from the request and then call this method to process it as normal.
Parameters:
  kontId - The continuation id
Parameters:
  parameters - Any parameters you want to pass to the continuation (may be null)



init
static void init(Scriptable scope) throws Exception(Code)



jsFunction_createObject
public Object jsFunction_createObject(Object classObj) throws Exception(Code)
Create and setup an object so that it can access the information provided to regular components. This is done by calling the various Avalon lifecycle interfaces implemented by the object, which are LogEnabled, Contextualizable, Serviceable, Composable (even if deprecated) and Initializable.

Contextualizable is of primary importance as it gives access to the whole object model (request, response, etc.) through the org.apache.cocoon.components.ContextHelper class.

Note that Configurable is ignored, as no configuration exists in a flowscript that can be passed to the object.
Parameters:
  classObj - the class to instantiate, either as a String or a Rhino NativeJavaClass object an set up instance of clazz
throws:
  Exception - if something goes wrong either during instantiation or setup.




jsFunction_createPageLocal
public Scriptable jsFunction_createPageLocal()(Code)



jsFunction_disposeObject
public void jsFunction_disposeObject(Object obj) throws Exception(Code)
Dispose an object that has been created using FOM_Cocoon.jsFunction_createObject(Object) .
Parameters:
  obj -
throws:
  Exception -



jsFunction_getComponent
public Object jsFunction_getComponent(String id) throws Exception(Code)
Access components. TODO: Do we want to restrict the access of sitemap components? (RP) TODO: Do we want to raise an error or return null? (RP)



jsFunction_load
public Object jsFunction_load(String filename) throws Exception(Code)
Load the script file specified as argument.
Parameters:
  filename - a String value an Object value
exception:
  JavaScriptException - if an error occurs



jsFunction_makeWebContinuation
public FOM_WebContinuation jsFunction_makeWebContinuation(Object k, Object ttl) throws Exception(Code)
Create a Bookmark WebContinuation from a JS Continuation with the last continuation of sendPageAndWait as its parent. PageLocal variables will be shared with the continuation of the next call to sendPageAndWait().
Parameters:
  k - The JS continuation
Parameters:
  ttl - Lifetime for this continuation (zero means no limit)



jsFunction_processPipelineTo
public void jsFunction_processPipelineTo(String uri, Object map, Object outputStream) throws Exception(Code)



jsFunction_redirectTo
public void jsFunction_redirectTo(String uri, boolean isGlobal) throws Exception(Code)



jsFunction_releaseComponent
public void jsFunction_releaseComponent(Object component) throws Exception(Code)
Release pooled components.
Parameters:
  component - a component



jsFunction_sendPage
public FOM_WebContinuation jsFunction_sendPage(String uri, Object obj, Object wk) throws Exception(Code)



jsFunction_sendStatus
public void jsFunction_sendStatus(int sc)(Code)



jsFunction_setupObject
public Object jsFunction_setupObject(Object obj) throws Exception(Code)
Setup an object so that it can access the information provided to regular components. This is done by calling the various Avalon lifecycle interfaces implemented by the object, which are LogEnabled, Contextualizable, Serviceable, Composable (even if deprecated) and Initializable.

Contextualizable is of primary importance as it gives access to the whole object model (request, response, etc.) through the org.apache.cocoon.components.ContextHelper class.

Note that Configurable is ignored, as no configuration exists in a flowscript that can be passed to the object.
Parameters:
  obj - the object to setup the same object (convenience that allows to write var foo = cocoon.setupObject(new Foo());).
throws:
  Exception - if something goes wrong during setup.




jsGet_context
public Scriptable jsGet_context()(Code)



jsGet_continuation
public FOM_WebContinuation jsGet_continuation()(Code)



jsGet_log
public Scriptable jsGet_log()(Code)



jsGet_parameters
public Scriptable jsGet_parameters()(Code)
Get Sitemap parameters a Scriptable value whose properties representthe Sitemap parameters from



jsGet_request
public Scriptable jsGet_request()(Code)



jsGet_response
public Scriptable jsGet_response()(Code)



jsGet_session
public Scriptable jsGet_session()(Code)



jsSet_continuation
public void jsSet_continuation(Object obj)(Code)



makeWebContinuation
public FOM_WebContinuation makeWebContinuation(Continuation k, FOM_WebContinuation parent, int timeToLive) throws Exception(Code)
Create a Web Continuation from a JS Continuation
Parameters:
  k - The JS continuation (may be null - null will be returned in that case)
Parameters:
  parent - The parent of this continuation (may be null)
Parameters:
  timeToLive - Lifetime for this continuation (zero means no limit)



popCallContext
public void popCallContext()(Code)



pushCallContext
public void pushCallContext(FOM_JavaScriptInterpreter interp, Redirector redirector, ServiceManager manager, Context avalonContext, Logger logger, WebContinuation lastContinuation)(Code)



setParameters
void setParameters(Scriptable value)(Code)



w___w__w.j__a_v__a_2s__._co__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.