Coverage Report - org.apache.camel.language.ognl.RootObject
 
Classes in this File Line Coverage Branch Coverage Complexity
RootObject
40% 
N/A 
0
 
 1  
 /**
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.camel.language.ognl;
 18  
 
 19  
 import java.util.Map;
 20  
 
 21  
 import org.apache.camel.CamelContext;
 22  
 import org.apache.camel.Exchange;
 23  
 import org.apache.camel.Message;
 24  
 
 25  
 /**
 26  
  * @version $Revision: $
 27  
  */
 28  
 public class RootObject {
 29  
     private final Exchange exchange;
 30  
 
 31  6
     public RootObject(Exchange exchange) {
 32  6
         this.exchange = exchange;
 33  6
     }
 34  
 
 35  
     public Exchange getExchange() {
 36  2
         return exchange;
 37  
     }
 38  
 
 39  
     public CamelContext getContext() {
 40  0
         return exchange.getContext();
 41  
     }
 42  
 
 43  
     public Throwable getException() {
 44  0
         return exchange.getException();
 45  
     }
 46  
 
 47  
     public String getExchangeId() {
 48  0
         return exchange.getExchangeId();
 49  
     }
 50  
 
 51  
     public Message getFault() {
 52  0
         return exchange.getFault();
 53  
     }
 54  
 
 55  
     public Message getRequest() {
 56  1
         return exchange.getIn();
 57  
     }
 58  
     public Message getIn() {
 59  3
         return exchange.getIn();
 60  
     }
 61  
 
 62  
     public Message getOut() {
 63  0
         return exchange.getOut();
 64  
     }
 65  
 
 66  
     public Message getResponse() {
 67  0
         return exchange.getOut();
 68  
     }
 69  
 
 70  
     public Map<String, Object> getProperties() {
 71  0
         return exchange.getProperties();
 72  
     }
 73  
 
 74  
     public Object getProperty(String name) {
 75  0
         return exchange.getProperty(name);
 76  
     }
 77  
 
 78  
     public <T> T getProperty(String name, Class<T> type) {
 79  0
         return exchange.getProperty(name, type);
 80  
     }
 81  
 }