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

Quick Search    Search Deep

Source code: proxy/bearer/PreparedMessage.java


1   package proxy.bearer;
2   
3   /**
4    * Represents three of identifer, code and jms4j2me-serialized message body
5    */
6   public class PreparedMessage{
7     private int id;
8     private int code;
9     private byte msg[];
10  
11    /**
12     * Constructor
13     * @param code message code
14     * @param message message body serialized into byte array
15     */
16    public PreparedMessage(int id, int code, byte []message){
17      this.id = id;
18      this.code = code;
19      this.msg = message;
20    }
21  
22  
23      /**
24       * accesor for identifer
25       * @return identifier of this message
26       */
27      public int id(){
28        return this.id;
29      }
30  
31  
32    /**
33     * accesor for code
34     * @return code of this message
35     */
36    public int code(){
37      return this.code;
38    }
39  
40    /**
41     * accesor for message body
42     * @return message body
43     */
44    public byte[] msg(){
45      return this.msg;
46    }
47  }