Package org.jboss.jms.wireformat

Source Code of org.jboss.jms.wireformat.BrowserNextMessageRequest

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

Related Classes of org.jboss.jms.wireformat.BrowserNextMessageRequest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.