Coverage Report - org.mule.providers.soap.xfire.XFireMuleSession
 
Classes in this File Line Coverage Branch Coverage Complexity
XFireMuleSession
0%
0/8
0%
0/1
1.667
 
 1  
 /*
 2  
  * $Id: XFireMuleSession.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 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.providers.soap.xfire;
 12  
 
 13  
 import org.mule.umo.UMOSession;
 14  
 
 15  
 import org.codehaus.xfire.transport.Session;
 16  
 
 17  
 /**
 18  
  * Mules session wrapper for XFire
 19  
  */
 20  
 public class XFireMuleSession implements Session
 21  
 {
 22  
     UMOSession session;
 23  
 
 24  
     public XFireMuleSession(UMOSession session)
 25  0
     {
 26  0
         if (session == null)
 27  
         {
 28  0
             throw new IllegalArgumentException("UMOSession");
 29  
         }
 30  0
         this.session = session;
 31  0
     }
 32  
 
 33  
     /**
 34  
      * Get a variable from the session by the key.
 35  
      * 
 36  
      * @param key
 37  
      * @return Value
 38  
      */
 39  
     public Object get(Object key)
 40  
     {
 41  0
         return session.getProperty(key);
 42  
     }
 43  
 
 44  
     /**
 45  
      * Put a variable into the session with a key.
 46  
      * 
 47  
      * @param key
 48  
      * @param value
 49  
      */
 50  
     public void put(Object key, Object value)
 51  
     {
 52  0
         session.setProperty(key, value);
 53  0
     }
 54  
 }