Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mobile.protocol
Class Frame  view Frame download Frame.java

java.lang.Object
  extended bymobile.protocol.Frame
All Implemented Interfaces:
mobile.bearer.http.Protocol
Direct Known Subclasses:
Reply, Request

public class Frame
extends java.lang.Object
implements mobile.bearer.http.Protocol

The Frame class is an abstract class implementing a message which is sent between the library and the proxy server. The message concerns a JMS action such as creation of a new JMS object on the mobile device, a call of a JMS method on this object or a JNDI action, such as a lookup of a JMS administered object.


Field Summary
 int code
           Represents the code of the message contained in the Frame according to the Protocol interface.
private  java.lang.Object[] data
           message data
 int id
           A unique id of this Frame on this mobile device.
private  Frame next
           Reference to the next frame in the queue
 int owner
           Represents the id of calling MIDlet
private  Frame prev
           Reference to the previous frame in the frame queue
 
Fields inherited from interface mobile.bearer.http.Protocol
ACKNOWLEDGE_MESSAGE, CLOSE_CONNECTION, CLOSE_MESSAGE_CONSUMER, CLOSE_MESSAGE_PRODUCER, COMMIT, CREATE_CONNECTION, CREATE_DURABLE_CONSUMER, CREATE_DURABLE_TOPIC_SUBSCRIBER, CREATE_QUEUE_CONNECTION, CREATE_QUEUE_RECEIVER, CREATE_QUEUE_SENDER, CREATE_QUEUE_SESSION, CREATE_RECEIVER, CREATE_SENDER, CREATE_SESSION, CREATE_TEMPORARY_DESTINATION, CREATE_TEMPORARY_QUEUE, CREATE_TEMPORARY_TOPIC, CREATE_TOPIC_CONNECTION, CREATE_TOPIC_PUBLISHER, CREATE_TOPIC_SESSION, CREATE_TOPIC_SUBSCRIBER, DELETE_TEMPORARY_DESTINATION, DELETE_TEMPORARY_QUEUE, DELETE_TEMPORARY_TOPIC, EXC_INVALID_DESTINATION, EXC_NAMING, EXC_OTHER, EXC_RESOURCE_ALLOCATION, INT_LEN, LONG_LEN, LOOKUP, MAX_BYTES_LEN, PUBLISH_BYTES_MESSAGE, PUBLISH_TEXT_MESSAGE, QUEUE, RECEIVE_MESSAGE, RECEIVE_MESSAGE_FROM_QUEUE, RECEIVE_MESSAGE_FROM_TOPIC, RECEIVE_MESSAGE_TIMEOUT, REP_BYTES_MESSAGE, REP_BYTES_MESSAGE_FROM_QUEUE, REP_BYTES_MESSAGE_FROM_TOPIC, REP_CONNECTION, REP_CONNECTION_FACTORY, REP_DURABLE_TOPIC_SUBSCRIBER, REP_QUEUE, REP_QUEUE_CONNECTION, REP_QUEUE_CONNECTION_FACTORY, REP_QUEUE_RECEIVER, REP_QUEUE_SENDER, REP_QUEUE_SESSION, REP_RECEIVER, REP_SENDER, REP_SESSION, REP_TEMPORARY_DESTINATION, REP_TEMPORARY_QUEUE, REP_TEMPORARY_TOPIC, REP_TEXT_MESSAGE, REP_TEXT_MESSAGE_FROM_QUEUE, REP_TEXT_MESSAGE_FROM_TOPIC, REP_TOPIC, REP_TOPIC_CONNECTION, REP_TOPIC_CONNECTION_FACTORY, REP_TOPIC_PUBLISHER, REP_TOPIC_SESSION, REP_TOPIC_SUBSCRIBER, ROLLBACK, SEND_BYTES_MESSAGE, SEND_TEXT_MESSAGE, START_CONNECTION, STOP_CONNECTION, TEMPRORARY, TOPIC
 
Constructor Summary
Frame()
           
 
Method Summary
 java.lang.Object[] getData()
           Returns objects contained in this frame.
 Frame getNext()
           accessor method for the next frame
 Frame getPrev()
           accessor method for the previous frame
 void setData(java.lang.Object[] _data)
           Sets the objects associated with this frame.
 void setNext(Frame newFrame)
           accessor method for the next frame
 void setPrev(Frame newFrame)
           accessor method for the next frame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prev

private Frame prev

Reference to the previous frame in the frame queue


next

private Frame next

Reference to the next frame in the queue


code

public int code

Represents the code of the message contained in the Frame according to the Protocol interface.

See Also:
>


owner

public int owner

Represents the id of calling MIDlet


data

private java.lang.Object[] data

message data


id

public int id

A unique id of this Frame on this mobile device.

Constructor Detail

Frame

public Frame()
Method Detail

getNext

public Frame getNext()

accessor method for the next frame


getPrev

public Frame getPrev()

accessor method for the previous frame


setNext

public void setNext(Frame newFrame)

accessor method for the next frame


setPrev

public void setPrev(Frame newFrame)

accessor method for the next frame


getData

public java.lang.Object[] getData()

Returns objects contained in this frame. These objects are needed to execute the method associated with this frame.


setData

public void setData(java.lang.Object[] _data)

Sets the objects associated with this frame.