Source code: proxy/protocol/Frame.java
1 /** Java class "Frame.java" generated from Poseidon for UML.
2 * Poseidon for UML is developed by <A HREF="http://www.gentleware.com">Gentleware</A>.
3 * Generated with <A HREF="http://jakarta.apache.org/velocity/">velocity</A> template engine.
4 */
5 package proxy.protocol;
6
7 import java.util.*;
8 //import java.util.Vector;
9 //import proxy.bearer.*;
10 //import proxy.jmsapi.*;
11 //import proxy.jndi.*;
12
13 /**
14 * <p>
15 * The Frame class is an abstract class implementing a message which is sent
16 * between the library and the proxy server. The message concerns a JMS action
17 * such as creation of a new JMS object on the mobile device, a call of a JMS
18 * method on this object or a JNDI action, such as a lookup of a JMS administered
19 * object.
20 * </p>
21 * @author Pawel Koziol
22 */
23
24 public class Frame {
25
26 ///////////////////////////////////////
27 // attributes
28
29
30 /**
31 * <p>
32 * The unique id of this Frame on the mobile device, where it came from.
33 * </p>
34 */
35
36 public int id;
37
38 /**
39 * <p>
40 * Represents the code of the message contained in the Frame according to the
41 * Protocol interface.
42 * @see mobile.bearer.http.Protocol
43 * </p>
44 */
45
46 public int code;
47
48 /**
49 * <p>
50 * Represents the id of calling MIDlet
51 * </p>
52 *
53 */
54
55 public int owner;
56
57 /**
58 * <p>
59 * The id of the mobile device, where this frame came from.
60 * </p>
61 */
62 public int mobile;
63
64 /**
65 * <p>
66 * Represents ...
67 * </p>
68 */
69 private Object[] data;
70
71 ///////////////////////////////////////
72 // operations
73
74
75 /**
76 * <p>
77 * Returns the objects associated with this frame.
78 * </p>
79 * <p>
80 * @return the array of objects associated with this frame
81 * </p>
82 */
83 public Object[] getData() {
84 return data;
85 } // end getData
86
87 /**
88 * <p>
89 * Sets the objects associated with this frame.
90 * </p>
91 * <p>
92 * @param _data the array of objects to be stored in this frame
93 * </p>
94 */
95 public void setData(Object[] _data) {
96 data = _data;
97 } // end setData
98
99 } // end Frame
100
101
102
103
104