|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.apache.cocoon.components.flow.javascript.fom.AO_FOM_Cocoon
Implementation of FOM (Flow Object Model).
Nested Class Summary | |
static class |
AO_FOM_Cocoon.FOM_Context
|
static class |
AO_FOM_Cocoon.FOM_Cookie
|
static class |
AO_FOM_Cocoon.FOM_Log
|
static class |
AO_FOM_Cocoon.FOM_Request
|
static class |
AO_FOM_Cocoon.FOM_Response
|
static class |
AO_FOM_Cocoon.FOM_Session
|
Field Summary |
Fields inherited from class org.mozilla.javascript.ScriptableObject |
DONTENUM, EMPTY, PERMANENT, READONLY |
Fields inherited from interface org.mozilla.javascript.Scriptable |
NOT_FOUND |
Constructor Summary | |
AO_FOM_Cocoon()
|
Method Summary | |
void |
forwardTo(String uri,
Object bean,
FOM_WebContinuation fom_wk)
Call the Cocoon Sitemap to process a page |
String |
getClassName()
|
Context |
getContext()
Get the current context |
Map |
getObjectModel()
Get the current object model |
Request |
getRequest()
Get the current request |
Response |
getResponse()
Get the current response |
Session |
getSession()
Get the current session |
void |
handleContinuation(String kontId,
org.mozilla.javascript.Scriptable parameters)
Perform the behavior of |
void |
jsFunction_apply(String script)
Dummy function for apply methods which does nothing - only necessary to make it easy to switch between the interception aware interpreter (intercepted-javascript) and the other (javascript). |
Object |
jsFunction_getComponent(String id)
Access components. |
Object |
jsFunction_load(String filename)
Load the script file specified as argument. |
void |
jsFunction_processPipelineTo(String uri,
Object map,
Object outputStream)
|
void |
jsFunction_redirectTo(String uri)
|
void |
jsFunction_releaseComponent(Object component)
Release pooled components. |
FOM_WebContinuation |
jsFunction_sendPage(String uri,
Object obj,
Object continuation)
|
AO_FOM_Cocoon.FOM_Context |
jsGet_context()
|
AO_FOM_Cocoon.FOM_Log |
jsGet_log()
|
org.mozilla.javascript.Scriptable |
jsGet_parameters()
Get Sitemap parameters |
AO_FOM_Cocoon.FOM_Request |
jsGet_request()
|
AO_FOM_Cocoon.FOM_Response |
jsGet_response()
|
AO_FOM_Cocoon.FOM_Session |
jsGet_session()
|
FOM_WebContinuation |
makeWebContinuation(org.mozilla.javascript.continuations.Continuation k,
FOM_WebContinuation parent,
int timeToLive)
Create a Web Continuation from a JS Continuation |
protected static Object |
unwrap(Object obj)
|
Methods inherited from class org.mozilla.javascript.ScriptableObject |
associateValue, callMethod, callMethod, defineClass, defineClass, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isSealed, put, put, putProperty, putProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AO_FOM_Cocoon()
Method Detail |
public String getClassName()
public FOM_WebContinuation jsFunction_sendPage(String uri, Object obj, Object continuation) throws Exception
Exception
public void jsFunction_processPipelineTo(String uri, Object map, Object outputStream) throws Exception
Exception
public void jsFunction_redirectTo(String uri) throws Exception
Exception
public Object jsFunction_getComponent(String id) throws Exception
id
- - role name of the component
Exception
public void jsFunction_releaseComponent(Object component) throws Exception
component
- - an Object
that is an instance
of org.apache.avalon.framework.component.Component
Exception
public void jsFunction_apply(String script)
public Object jsFunction_load(String filename) throws Exception
filename
- a String
value
Object
value
org.mozilla.javascript.JavaScriptException
- if an error occurs
Exception
public AO_FOM_Cocoon.FOM_Request jsGet_request()
public AO_FOM_Cocoon.FOM_Response jsGet_response()
public AO_FOM_Cocoon.FOM_Log jsGet_log()
public AO_FOM_Cocoon.FOM_Context jsGet_context()
public AO_FOM_Cocoon.FOM_Session jsGet_session()
public org.mozilla.javascript.Scriptable jsGet_parameters()
Scriptable
value whose properties represent
the Sitemap parameters from protected static Object unwrap(Object obj)
public Request getRequest()
public Session getSession()
public Response getResponse()
public Context getContext()
public Map getObjectModel()
public void forwardTo(String uri, Object bean, FOM_WebContinuation fom_wk) throws Exception
uri
- Uri to matchbean
- Input to pagefom_wk
- Current Web continuation (may be null)
Exception
public void handleContinuation(String kontId, org.mozilla.javascript.Scriptable parameters) throws Exception
kontId
- The continuation idparameters
- Any parameters you want to pass to the continuation (may be null)
Exception
public FOM_WebContinuation makeWebContinuation(org.mozilla.javascript.continuations.Continuation k, FOM_WebContinuation parent, int timeToLive) throws Exception
k
- The JS continuation (may be null - null will be returned in that case)parent
- The parent of this continuation (may be null)timeToLive
- Lifetime for this continuation (zero means no limit)
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |