/* */ package org.jboss.jms.wireformat;
/* */
/* */ import java.io.DataInputStream;
/* */ import java.io.DataOutputStream;
/* */ import org.jboss.jms.client.Closeable;
/* */
/* */ public class CloseRequest extends RequestSupport
/* */ {
/* */ public CloseRequest()
/* */ {
/* */ }
/* */
/* */ public CloseRequest(String objectId, byte version)
/* */ {
/* 48 */ super(objectId, 602, version);
/* */ }
/* */
/* */ public void read(DataInputStream is) throws Exception
/* */ {
/* 53 */ super.read(is);
/* */ }
/* */
/* */ public ResponseSupport serverInvoke() throws Exception
/* */ {
/* 58 */ Closeable endpoint = (Closeable)Dispatcher.instance.getTarget(this.objectId);
/* */
/* 61 */ if (endpoint == null)
/* */ {
/* 63 */ throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/* */ }
/* */
/* 66 */ endpoint.close();
/* */
/* 68 */ return null;
/* */ }
/* */
/* */ public void write(DataOutputStream os) throws Exception
/* */ {
/* 73 */ super.write(os);
/* */
/* 75 */ os.flush();
/* */ }
/* */ }
/* Location: /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name: org.jboss.jms.wireformat.CloseRequest
* JD-Core Version: 0.6.0
*/