/* */ package org.jboss.jms.wireformat;
/* */
/* */ import java.io.DataInputStream;
/* */ import java.io.DataOutputStream;
/* */ import org.jboss.jms.delegate.ConnectionEndpoint;
/* */
/* */ public class ConnectionStopRequest extends RequestSupport
/* */ {
/* */ public ConnectionStopRequest()
/* */ {
/* */ }
/* */
/* */ public ConnectionStopRequest(String objectId, byte version)
/* */ {
/* 49 */ super(objectId, 205, version);
/* */ }
/* */
/* */ public void read(DataInputStream is) throws Exception
/* */ {
/* 54 */ super.read(is);
/* */ }
/* */
/* */ public ResponseSupport serverInvoke() throws Exception
/* */ {
/* 59 */ ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/* */
/* 62 */ if (endpoint == null)
/* */ {
/* 64 */ throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/* */ }
/* */
/* 67 */ endpoint.stop();
/* */
/* 69 */ return null;
/* */ }
/* */
/* */ public void write(DataOutputStream os) throws Exception
/* */ {
/* 74 */ super.write(os);
/* */
/* 76 */ 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.ConnectionStopRequest
* JD-Core Version: 0.6.0
*/