Coverage Report - org.mule.transport.servlet.jetty.JettyContinuationsReplyToHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
JettyContinuationsReplyToHandler
0%
0/6
N/A
0
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.transport.servlet.jetty;
 8  
 
 9  
 import org.mule.DefaultMuleMessage;
 10  
 import org.mule.api.MuleContext;
 11  
 import org.mule.api.MuleEvent;
 12  
 import org.mule.api.MuleException;
 13  
 import org.mule.api.MuleMessage;
 14  
 import org.mule.api.transformer.Transformer;
 15  
 import org.mule.transport.DefaultReplyToHandler;
 16  
 
 17  
 import java.util.List;
 18  
 
 19  
 /**
 20  
  * This handler is responsible for resuming the continuation for the current request
 21  
  */
 22  
 public class JettyContinuationsReplyToHandler extends DefaultReplyToHandler
 23  
 {
 24  
     public JettyContinuationsReplyToHandler(List<Transformer> transformers, MuleContext muleContext)
 25  
     {
 26  0
         super(transformers, muleContext);
 27  0
     }
 28  
 
 29  
     @Override
 30  
     public void processReplyTo(MuleEvent event, MuleMessage returnMessage, Object replyTo) throws MuleException
 31  
     {
 32  0
         ContinuationsReplyTo continuationReplyTo = (ContinuationsReplyTo) replyTo;
 33  0
         MuleMessage threadSafeMessage = new DefaultMuleMessage(returnMessage);
 34  0
         continuationReplyTo.setAndResume(threadSafeMessage);
 35  0
     }
 36  
 }