Coverage Report - org.mule.interceptor.RequestContextInvocation
 
Classes in this File Line Coverage Branch Coverage Complexity
RequestContextInvocation
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * $Id: RequestContextInvocation.java 11130 2008-02-29 15:14:53Z acooke $
 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  
 
 11  
 package org.mule.interceptor;
 12  
 
 13  
 import org.mule.api.interceptor.Invocation;
 14  
 import org.mule.api.MuleMessage;
 15  
 import org.mule.api.MuleEvent;
 16  
 import org.mule.api.service.Service;
 17  
 import org.mule.RequestContext;
 18  
 
 19  0
 public abstract class RequestContextInvocation implements Invocation
 20  
 {
 21  
 
 22  
     public Service getService()
 23  
     {
 24  0
         return RequestContext.getEventContext().getService();
 25  
     }
 26  
 
 27  
     public MuleEvent getEvent()
 28  
     {
 29  0
         return RequestContext.getEvent();
 30  
     }
 31  
 
 32  
     public MuleMessage getMessage()
 33  
     {
 34  0
         return getEvent().getMessage();
 35  
     }
 36  
 
 37  
 }