Coverage Report - org.mule.transport.servlet.jetty.JettyContinuationsReplyToHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
JettyContinuationsReplyToHandler
100%
6/6
N/A
1
 
 1  
 /*
 2  
  * $Id: JettyContinuationsReplyToHandler.java 12320 2008-07-13 04:58:28Z rossmason $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 package org.mule.transport.servlet.jetty;
 11  
 
 12  
 import org.mule.api.MuleEvent;
 13  
 import org.mule.api.MuleException;
 14  
 import org.mule.api.MuleMessage;
 15  
 import org.mule.transport.DefaultReplyToHandler;
 16  
 
 17  
 import java.util.List;
 18  
 
 19  
 import org.mortbay.util.ajax.Continuation;
 20  
 
 21  
 /**
 22  
  * This handler is responsible for resuming the continuation for the current request
 23  
  */
 24  
 public class JettyContinuationsReplyToHandler extends DefaultReplyToHandler
 25  
 {
 26  
     public JettyContinuationsReplyToHandler(List transformers)
 27  
     {
 28  164
         super(transformers);
 29  164
     }
 30  
 
 31  
     //@Override
 32  
     public void processReplyTo(MuleEvent event, MuleMessage returnMessage, Object replyTo) throws MuleException
 33  
     {
 34  164
         Continuation continuation = (Continuation)replyTo;
 35  164
         continuation.setObject(returnMessage);
 36  164
         continuation.resume();
 37  164
     }
 38  
 }