org.keel.clients.cocoon
Class CocoonClientConnector
java.lang.Object
org.keel.clients.AbstractClientConnector
org.keel.clients.webapp.AbstractWebappClientConnector
org.keel.clients.cocoon.CocoonClientConnector
- All Implemented Interfaces:
- ClientConnector, WebappClientConnector
- Direct Known Subclasses:
- FacesCocoonClientConnector
- public class CocoonClientConnector
- extends AbstractWebappClientConnector
The glue to connect Cocoon to Keel
- Version:
- $Revision: 1.5 $ $Date: 2004/05/11 20:44:19 $
- Author:
- Michael Nash, Schatterjee Created on May 24, 2003
| Method Summary |
KeelResponse |
execute()
Run the business model, using a request/response pair The description sounds curious since the method doesn't take a request as an argument! This is because although most webapps use the HttpServletRequest/HttpServletResponse pair, some, particularly Cocoon, do not and use their own abstraction. |
java.lang.String |
getForward(KeelResponse kres)
Determine a string that tells the client where to navigate next |
void |
setConfiguration(Configuration config)
|
void |
setModel(java.lang.String model)
|
void |
setRequest(Request creq)
|
void |
setResponse(Response cres)
|
void |
setRoot(java.lang.String newRoot)
|
| Methods inherited from class org.keel.clients.webapp.AbstractWebappClientConnector |
createRequest, execute, getWebappPath, makeKeelRequest, makeWebappResponse, parseInitParameters, preProcessParamName, processCommandParam, processNonCommandParam, setRequestAttributes, setRequestCookies, setRequestModel, setRequestParameters, setResponseCookies |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
creq
protected Request creq
-
cres
protected Response cres
-
config
protected Configuration config
-
model
protected java.lang.String model
-
root
protected java.lang.String root
-
CocoonClientConnector
public CocoonClientConnector()
setRequest
public void setRequest(Request creq)
-
setResponse
public void setResponse(Response cres)
-
setConfiguration
public void setConfiguration(Configuration config)
-
setRoot
public void setRoot(java.lang.String newRoot)
-
setModel
public void setModel(java.lang.String model)
-
execute
public KeelResponse execute()
throws ClientException,
ModelException
- Description copied from interface:
WebappClientConnector
-
Run the business model, using a request/response pair The description sounds curious since the method doesn't take a request as an argument! This is because although most webapps use the HttpServletRequest/HttpServletResponse pair, some, particularly Cocoon, do not and use their own abstraction. So, the method preferred here, is that the WebappClientConnector implementation will pass in the the appropriate request/response and other paramters in the constructor and use those during the execution of this method. See org.keel.clients.struts.StrutsClientConnector and org.keel.clients.cocoon.CocoocClientConnector for examples.
-
- Returns:
- The Keel response
- Throws:
ModelException
ClientException
- See Also:
org.keel.clients.webapp.WebappClientConnector#execute(org.keel.clients.webapp.WebappRequest, org.keel.clients.webapp.WebappResponse, java.lang.String)
getForward
public java.lang.String getForward(KeelResponse kres)
- Description copied from interface:
WebappClientConnector
-
Determine a string that tells the client where to navigate next
-
- Parameters:
kres - The Keel response returned by execute()
- Returns:
- See Also:
org.keel.clients.webapp.WebappClientConnector#getForward()
Please see keelframework.org for information about new Keel releases.