KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > invocation > InvocationFactory


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.invocation;
10
11 import javax.servlet.http.HttpServletRequest JavaDoc;
12 import javax.servlet.http.HttpServletResponse JavaDoc;
13
14 /**
15  * This object is responsible for creating an invocation from the request
16  * and the response that are originating from the client.
17  *
18  * It is also responsible to put the PortalRequest and PortalResponse in the
19  * invocation object.
20  *
21  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
22  * @version $Revision: 1.1.1.1 $
23  */

24 public interface InvocationFactory
25 {
26    /**
27     * Get the info from the request and create an invocation. The two
28     * important objects in the invocation are the PortalRequest and
29     * the PortalResponse that contains the informations carried by
30     * the link originating from the PortalURL.
31     *
32     * How invocations are carried accross different calls is really
33     * done by the InvocationContext and the PostalResponse. They both
34     * are responsible to marshall and unmarshall of the information
35     * present on the PortalURL.
36     */

37    Invocation decode(HttpServletRequest JavaDoc req, HttpServletResponse JavaDoc resp);
38 }
39
Popular Tags