01: /* ----- BEGIN LICENSE BLOCK -----
02: * Version: MPL 1.1
03: *
04: * The contents of this file are subject to the Mozilla Public License Version
05: * 1.1 (the "License"); you may not use this file except in compliance with
06: * the License. You may obtain a copy of the License at
07: * http://www.mozilla.org/MPL/
08: *
09: * Software distributed under the License is distributed on an "AS IS" basis,
10: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11: * for the specific language governing rights and limitations under the
12: * License.
13: *
14: * The Original Code is the DataShare server.
15: *
16: * The Initial Developer of the Original Code is
17: * Ball Aerospace & Technologies Corp, Fairborn, Ohio
18: * Portions created by the Initial Developer are Copyright (C) 2001
19: * the Initial Developer. All Rights Reserved.
20: *
21: * Contributor(s): Charles Wood <cwood@ball.com>
22: *
23: * ----- END LICENSE BLOCK ----- */
24: /* RCS $Id: ClientSessionInfo.java,v 1.1.1.1 2001/10/23 13:37:20 lizellaman Exp $
25: * $Log: ClientSessionInfo.java,v $
26: * Revision 1.1.1.1 2001/10/23 13:37:20 lizellaman
27: * initial sourceforge release
28: *
29: */
30:
31: package org.datashare.objects;
32:
33: import javax.swing.tree.DefaultMutableTreeNode;
34:
35: /**
36: * This object is sent from the Server to the Client that requested that a Session
37: * be created (via a CreateSession object) or joined (via a JoinSession object).
38: * The purpose of this object is to allow the client to 'automatically' join the Session.
39: * The client
40: * will also receive the UpdateAvailableMsg indicating that a new Session has been
41: * created. The sessionKey returned here is used to find the Session in the newly
42: * updated tree, so the client can get the Session information from just one source.
43: */
44: public class ClientSessionInfo implements java.io.Serializable {
45: /**
46: * this allows us to serialize this class without 'marshalling' errors.
47: *
48: */
49: static final long serialVersionUID = 9031593813755490504L;
50:
51: public DataShareConnectionDescriptor[] dsConnDescriptor = null;
52: public String sessionKey;
53: public String sessionName;
54: public String sessionDescription;
55: public boolean privateSession;
56: public boolean isNewSession; // set to true if this session was just created (no need to ask for history)
57:
58: public ClientSessionInfo() {
59: }
60:
61: public ClientSessionInfo(String sessionName,
62: String sessionDescription, String sessionKey,
63: DataShareConnectionDescriptor[] dsConnDescriptor,
64: boolean isNewSession, boolean privateSession) {
65: this.dsConnDescriptor = dsConnDescriptor;
66: this.sessionKey = sessionKey;
67: this.sessionName = sessionName;
68: this.sessionDescription = sessionDescription;
69: this.isNewSession = isNewSession;
70: this.privateSession = privateSession;
71: }
72: }
|