KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > carol > rmi > jrmp > interceptor > JRequestInfo


1 /**
2  * Copyright (C) 2002,2004 - INRIA (www.inria.fr)
3  *
4  * CAROL: Common Architecture for RMI ObjectWeb Layer
5  *
6  * This library is developed inside the ObjectWeb Consortium,
7  * http://www.objectweb.org
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22  * USA
23  *
24  * --------------------------------------------------------------------------
25  * $Id: JRequestInfo.java,v 1.5 2004/09/01 11:02:41 benoitf Exp $
26  * --------------------------------------------------------------------------
27  */

28 package org.objectweb.carol.rmi.jrmp.interceptor;
29
30 import java.util.Collection JavaDoc;
31
32 /**
33  * Class <code>JRequestInfo</code> is the CAROL JRMP general Request info
34  * @author Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
35  * @version 1.0, 15/07/2002
36  */

37 public interface JRequestInfo {
38
39     /**
40      * Get the context specifie by this id if there is no context corresponding
41      * with this id return null
42      * @param id the context id
43      * @return JServiceContex the specific ServiceContext
44      */

45     public JServiceContext get_request_service_context(int id);
46
47     /**
48      * Get the all the request service context if there is no context return
49      * null
50      * @return Collection the ServiceContexts
51      */

52     public Collection JavaDoc get_all_request_service_context();
53
54     /**
55      * Get the context specifie by this id if there is no context corresponding
56      * with this id return null
57      * @param id the context id
58      * @return JServiceContex the specific ServiceContext
59      */

60     public JServiceContext get_reply_service_context(int id);
61
62     /**
63      * Get the all the reply service context if there is no context return null
64      * @return Collection the ServiceContexts Array
65      */

66     public Collection JavaDoc get_all_reply_service_context();
67
68     /**
69      * true if exit one or more context
70      */

71     public boolean hasContexts();
72
73     /**
74      * clear the service contexts table
75      */

76     public void clearAllContexts();
77 }
Popular Tags