1 23 package org.objectweb.joram.shared.admin; 24 25 import java.io.IOException ; 26 import java.io.ObjectInputStream ; 27 import java.io.ObjectOutputStream ; 28 29 import org.objectweb.joram.shared.messages.Message; 30 31 public class GetSubscriptionMessageRep extends AdminReply { 32 private static final long serialVersionUID = -7547698179282063264L; 33 34 private transient Message msg; 35 36 public GetSubscriptionMessageRep(Message msg) { 37 super(true, null); 38 this.msg = msg; 39 } 40 41 public final Message getMessage() { 42 return msg; 43 } 44 45 48 49 private void writeObject(ObjectOutputStream out) throws IOException { 50 msg.writeTo(out); 51 } 52 53 private void readObject(ObjectInputStream in) throws IOException , ClassNotFoundException { 54 msg = new Message(); 55 msg.readFrom(in); 56 } 57 } 58 | Popular Tags |