KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > carol > rmi > jrmp > server > JUnicastRefSf


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: JUnicastRefSf.java,v 1.5 2004/09/01 11:02:41 benoitf Exp $
26  * --------------------------------------------------------------------------
27  */

28 package org.objectweb.carol.rmi.jrmp.server;
29
30 // sun import
31
import java.io.IOException JavaDoc;
32 import java.io.ObjectInput JavaDoc;
33 import java.io.ObjectOutput JavaDoc;
34
35 import org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor;
36
37 import sun.rmi.transport.LiveRef;
38
39 /**
40  * Class <code>JUnicastRefSf</code> is the CAROL JRMP UnicastRef with context
41  * propagation Unicast Reference ensuring context propagation with custom
42  * sockets
43  * @author Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
44  * @version 1.0, 15/07/2002
45  */

46 public class JUnicastRefSf extends JUnicastRef {
47
48     /**
49      * Create a new (empty) Unicast remote reference.
50      */

51     public JUnicastRefSf() {
52     }
53
54     /**
55      * Create a new Unicast RemoteRef.
56      * @param liveRef the live reference
57      * @param cis the client interceptor array
58      */

59     public JUnicastRefSf(LiveRef liveRef, JClientRequestInterceptor[] cis, String JavaDoc[] initial, int local) {
60         super(liveRef, cis, initial, local);
61     }
62
63     /**
64      * override readExternal to initialise localRef We could actually receive
65      * anything from the server on lookup
66      * @param in the object input
67      */

68     public void readExternal(ObjectInput JavaDoc in) throws IOException JavaDoc, ClassNotFoundException JavaDoc {
69         readExternal(in, true);
70     }
71
72     /**
73      * override writeExternal to send spaceID We could actually send anything to
74      * the client on lookup
75      * @param out the object output stream
76      */

77     public void writeExternal(ObjectOutput JavaDoc out) throws IOException JavaDoc {
78         writeExternal(out, true);
79     }
80
81 }
Popular Tags