|
|||||||||
| Home >> All >> mobile >> [ protocol overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
mobile.protocol
Class Request

java.lang.Objectmobile.protocol.Frame
mobile.protocol.Request
- All Implemented Interfaces:
- mobile.bearer.http.Protocol
- public class Request
- extends Frame
This class provides implementation of message sent to the proxy server. This message represents an action such as a call of a JMS or JNDI method.
| Field Summary | |
int |
rms_id
Id of the RMS record containing this Request. |
| Fields inherited from class mobile.protocol.Frame |
code, id, owner |
| Constructor Summary | |
|
Request()
A default constructor for this class. |
(package private) |
Request(byte[] msg)
A constructor used to recreate the request from the byte array form used, when the request is stored in the record store |
| Method Summary | |
private java.lang.Boolean |
byteToBool(byte[] tab,
int offset)
Converts a byte from tab starting at offset into an Boolean object |
private int |
byteToInt(byte[] tab,
int offset)
Converts four consecutive bytes of tab starting at offset into an int value |
private long |
byteToLong(byte[] tab,
int offset)
Converts eight consecutive bytes of tab starting at offset into a long value |
private void |
copyBytes(byte[] source,
byte[] dest,
int offset,
int len)
Copies len bytes from source to dest beginning from offset in the dest and from the begining in the source |
private void |
copyBytesRMS(byte[] source,
byte[] dest,
int offset,
int len)
Copies len bytes from source to dest beginning from offset in the source and from the begining in the dest |
private void |
intToByte(int anInt,
byte[] tab,
int offset)
Converts an int value into 4 bytes and puts them into the tab beginning at the given offset |
private void |
log(java.lang.String msg)
logs a debuging message |
private void |
longToByte(long aLong,
byte[] tab,
int offset)
Converts a long value into 8 bytes and puts them into the tab beginning at the given offset |
byte[] |
rmsSerialize()
Converts this message to a byte array. |
byte[] |
serialize()
Converts this message to a byte array. |
| Methods inherited from class mobile.protocol.Frame |
getData, getNext, getPrev, setData, setNext, setPrev |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
rms_id
public int rms_id
Id of the RMS record containing this Request. Some records are stored in the RMS to ensure reliability of message sending.
| Constructor Detail |
Request
Request(byte[] msg)
A constructor used to recreate the request from the byte array form used, when the request is stored in the record store
Request
public Request()
A default constructor for this class.
| Method Detail |
log
private void log(java.lang.String msg)
- logs a debuging message
intToByte
private void intToByte(int anInt,
byte[] tab,
int offset)
Converts an int value into 4 bytes and puts them into the tab beginning at the given offset
longToByte
private void longToByte(long aLong,
byte[] tab,
int offset)
Converts a long value into 8 bytes and puts them into the tab beginning at the given offset
copyBytes
private void copyBytes(byte[] source,
byte[] dest,
int offset,
int len)
Copies len bytes from source to dest beginning from offset in the dest and from the begining in the source
serialize
public byte[] serialize()
Converts this message to a byte array. All objects associated with this request are converted to their byte representation.
rmsSerialize
public byte[] rmsSerialize()
Converts this message to a byte array. All objects associated with this request are converted to their byte representation. All request attributes are also stored in the array.
It is used when the request is stored in the record store.
copyBytesRMS
private void copyBytesRMS(byte[] source,
byte[] dest,
int offset,
int len)
Copies len bytes from source to dest beginning from offset in the source and from the begining in the dest
byteToInt
private int byteToInt(byte[] tab,
int offset)
Converts four consecutive bytes of tab starting at offset into an int value
byteToLong
private long byteToLong(byte[] tab,
int offset)
Converts eight consecutive bytes of tab starting at offset into a long value
byteToBool
private java.lang.Boolean byteToBool(byte[] tab, int offset)
Converts a byte from tab starting at offset into an Boolean object
|
|||||||||
| Home >> All >> mobile >> [ protocol overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC