1 22 package org.jboss.mq.il.uil2.msgs; 23 24 import java.io.ObjectOutputStream ; 25 import java.io.IOException ; 26 import java.io.ObjectInputStream ; 27 28 32 public class GetIDMsg extends BaseMsg 33 { 34 private String id; 35 36 public GetIDMsg() 37 { 38 super(MsgTypes.m_getID); 39 } 40 41 public String getID() 42 { 43 return id; 44 } 45 public void setID(String id) 46 { 47 this.id = id; 48 } 49 50 public void write(ObjectOutputStream out) throws IOException 51 { 52 super.write(out); 53 out.writeObject(id); 54 } 55 public void read(ObjectInputStream in) throws IOException , ClassNotFoundException 56 { 57 super.read(in); 58 id = (String ) in.readObject(); 59 } 60 } 61 | Popular Tags |