KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > datashare > objects > FunctionsInSession


1 /* ----- BEGIN LICENSE BLOCK -----
2  * Version: MPL 1.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * 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: FunctionsInSession.java,v 1.1 2002/02/04 13:52:48 lizellaman Exp $
25  * $Log: FunctionsInSession.java,v $
26  * Revision 1.1 2002/02/04 13:52:48 lizellaman
27  * Remove all references to past product names (or)
28  * Add PublicAPI for creating Rendezvous Sessions
29  *
30  */

31
32 package org.datashare.objects;
33
34 /**
35  * contains the names of the functions in the specified Session, which may be null
36  * if there are not functions or the Session was not found on the DataShare server.
37  */

38 public class FunctionsInSession implements java.io.Serializable JavaDoc
39    {
40    /**
41     * this allows us to serialize this class without 'marshalling' errors.
42     *
43     */

44    static final long serialVersionUID = 4543264653679733576L;
45
46    public String JavaDoc sessionName;
47    public String JavaDoc[] functionNames;
48
49    public FunctionsInSession(String JavaDoc sessionName)
50       {
51       this.sessionName = sessionName;
52       }
53
54    public FunctionsInSession(String JavaDoc sessionName, String JavaDoc [] functionNames)
55       {
56       this(sessionName);
57       this.functionNames = functionNames;
58       }
59       
60    /**
61     * allows you to set the function names after instance created
62     */

63    public void
64    setFunctionsInSession(String JavaDoc[] functionNames)
65       {
66       this.functionNames = functionNames;
67       }
68    }
Popular Tags