Coverage Report - org.apache.camel.component.irc.IrcExchange
 
Classes in this File Line Coverage Branch Coverage Complexity
IrcExchange
0% 
N/A 
0
 
 1  
 /**
 2  
  *
 3  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 4  
  * contributor license agreements.  See the NOTICE file distributed with
 5  
  * this work for additional information regarding copyright ownership.
 6  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 7  
  * (the "License"); you may not use this file except in compliance with
 8  
  * the License.  You may obtain a copy of the License at
 9  
  *
 10  
  * http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15  
  * See the License for the specific language governing permissions and
 16  
  * limitations under the License.
 17  
  */
 18  
 package org.apache.camel.component.irc;
 19  
 
 20  
 import org.apache.camel.CamelContext;
 21  
 import org.apache.camel.impl.DefaultExchange;
 22  
 
 23  0
 public class IrcExchange extends DefaultExchange {
 24  
     private IrcBinding binding;
 25  
 
 26  
     public IrcExchange(CamelContext context, IrcBinding binding) {
 27  0
         super(context);
 28  0
         this.binding = binding;
 29  0
     }
 30  
 
 31  
     public IrcExchange(CamelContext context, IrcBinding binding, IrcMessage inMessage) {
 32  0
         this(context, binding);
 33  0
         setIn(inMessage);
 34  0
     }
 35  
 
 36  
     public IrcBinding getBinding() {
 37  0
         return binding;
 38  
     }
 39  
 
 40  
     public void setBinding(IrcBinding binding) {
 41  0
         this.binding = binding;
 42  0
     }
 43  
 
 44  
     @Override
 45  
     public IrcMessage getIn() {
 46  0
         return (IrcMessage) super.getIn();
 47  
     }
 48  
 
 49  
     @Override
 50  
     public IrcMessage getOut() {
 51  0
         return (IrcMessage) super.getOut();
 52  
     }
 53  
 
 54  
     @Override
 55  
     public IrcMessage getOut(boolean lazyCreate) {
 56  0
         return (IrcMessage) super.getOut(lazyCreate);
 57  
     }
 58  
 
 59  
     @Override
 60  
     public IrcMessage getFault() {
 61  0
         return (IrcMessage) super.getFault();
 62  
     }
 63  
 
 64  
     @Override
 65  
     public IrcExchange newInstance() {
 66  0
         return new IrcExchange(getContext(), getBinding());
 67  
     }
 68  
 
 69  
     @Override
 70  
     protected IrcMessage createInMessage() {
 71  0
         return new IrcMessage();
 72  
     }
 73  
 
 74  
     @Override
 75  
     protected IrcMessage createOutMessage() {
 76  0
         return new IrcMessage();
 77  
     }
 78  
 }