1 24 package org.objectweb.joram.shared.client; 25 26 import java.io.Externalizable ; 27 import java.io.InputStream ; 28 import java.io.OutputStream ; 29 import java.io.IOException ; 30 31 import org.objectweb.joram.shared.stream.Streamable; 32 import org.objectweb.joram.shared.stream.StreamUtil; 33 34 39 public final class GetAdminTopicReply extends AbstractJmsReply { 40 41 private String id; 42 43 44 public void setId(String id) { 45 this.id = id; 46 } 47 48 49 public String getId() { 50 return id; 51 } 52 53 59 public GetAdminTopicReply(GetAdminTopicRequest request, String id) { 60 super(request.getRequestId()); 61 this.id = id; 62 } 63 64 protected int getClassId() { 65 return GET_ADMIN_TOPIC_REPLY; 66 } 67 68 71 public GetAdminTopicReply() {} 72 73 public void toString(StringBuffer strbuf) { 74 super.toString(strbuf); 75 strbuf.append(",id=").append(id); 76 strbuf.append(')'); 77 } 78 79 82 83 89 public void writeTo(OutputStream os) throws IOException { 90 super.writeTo(os); 91 StreamUtil.writeTo(id, os); 92 } 93 94 100 public void readFrom(InputStream is) throws IOException { 101 super.readFrom(is); 102 id = StreamUtil.readStringFrom(is); 103 } 104 } 105 | Popular Tags |