Coverage report

  %line %branch
org.apache.jetspeed.engine.servlet.HttpSessionWrapper
0% 
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.jetspeed.engine.servlet;
 18  
 
 19  
 import java.util.Enumeration;
 20  
 
 21  
 import javax.servlet.ServletContext;
 22  
 import javax.servlet.http.HttpSession;
 23  
 
 24  
 /**
 25  
  * @author Scott T Weaver
 26  
  *
 27  
  */
 28  
 public class HttpSessionWrapper implements HttpSession
 29  
 {
 30  
     private HttpSession session;
 31  
     
 32  
     public HttpSessionWrapper(HttpSession session)
 33  0
     {
 34  0
         this.session = session;
 35  0
     }
 36  
     
 37  
 
 38  
     /* (non-Javadoc)
 39  
      * @see java.lang.Object#equals(java.lang.Object)
 40  
      */
 41  
     public boolean equals(Object obj)
 42  
     {
 43  0
         return session.equals(obj);
 44  
     }
 45  
     /**
 46  
      * @param arg0
 47  
      * @return
 48  
      */
 49  
     public Object getAttribute(String arg0)
 50  
     {
 51  0
         return session.getAttribute(arg0);
 52  
     }
 53  
     /**
 54  
      * @return
 55  
      */
 56  
     public Enumeration getAttributeNames()
 57  
     {
 58  0
         return session.getAttributeNames();
 59  
     }
 60  
     /**
 61  
      * @return
 62  
      */
 63  
     public long getCreationTime()
 64  
     {
 65  0
         return session.getCreationTime();
 66  
     }
 67  
     /**
 68  
      * @return
 69  
      */
 70  
     public String getId()
 71  
     {
 72  0
         return session.getId();
 73  
     }
 74  
     /**
 75  
      * @return
 76  
      */
 77  
     public long getLastAccessedTime()
 78  
     {
 79  0
         return session.getLastAccessedTime();
 80  
     }
 81  
     /**
 82  
      * @return
 83  
      */
 84  
     public int getMaxInactiveInterval()
 85  
     {
 86  0
         return session.getMaxInactiveInterval();
 87  
     }
 88  
     /**
 89  
      * @return
 90  
      */
 91  
     public ServletContext getServletContext()
 92  
     {
 93  0
         return session.getServletContext();
 94  
     }
 95  
     
 96  
     /**
 97  
      * @deprecated As of Java(tm) Servlet API 2.1 
 98  
      *  for security reasons, with no replacement.
 99  
      * @return
 100  
      */
 101  
     public javax.servlet.http.HttpSessionContext getSessionContext()
 102  
     {
 103  0
         return session.getSessionContext();
 104  
     }
 105  
     /**
 106  
      * @deprecated @see javax.servlet.http.HttpSession#getValue(String)
 107  
      * @param arg0
 108  
      * @return
 109  
      */
 110  
     public Object getValue(String arg0)
 111  
     {
 112  0
         return session.getValue(arg0);
 113  
     }
 114  
     
 115  
     /**
 116  
      * @deprecated @see javax.servlet.http.HttpSession#getValueNames(String)
 117  
      * @return
 118  
      */
 119  
     public String[] getValueNames()
 120  
     {
 121  0
         return session.getValueNames();
 122  
     }
 123  
     /* (non-Javadoc)
 124  
      * @see java.lang.Object#hashCode()
 125  
      */
 126  
     public int hashCode()
 127  
     {
 128  0
         return session.hashCode();
 129  
     }
 130  
     /**
 131  
      * 
 132  
      */
 133  
     public void invalidate()
 134  
     {
 135  0
         session.invalidate();
 136  0
     }
 137  
     /**
 138  
      * @return
 139  
      */
 140  
     public boolean isNew()
 141  
     {
 142  0
         return session.isNew();
 143  
     }
 144  
     /**
 145  
      * @deprecated @see javax.servlet.http.HttpSession#putValue(String,Object)
 146  
      * @param arg0
 147  
      * @param arg1
 148  
      */
 149  
     public void putValue(String arg0, Object arg1)
 150  
     {
 151  0
         session.putValue(arg0, arg1);
 152  0
     }
 153  
     /**
 154  
      * @param arg0
 155  
      */
 156  
     public void removeAttribute(String arg0)
 157  
     {
 158  0
         session.removeAttribute(arg0);
 159  0
     }
 160  
     /**
 161  
      * @deprecated @see javax.servlet.http.HttpSession#removeValue(String)
 162  
      * @param arg0
 163  
      */
 164  
     public void removeValue(String arg0)
 165  
     {
 166  0
         session.removeValue(arg0);
 167  0
     }
 168  
     /**
 169  
      * @param arg0
 170  
      * @param arg1
 171  
      */
 172  
     public void setAttribute(String arg0, Object arg1)
 173  
     {
 174  0
         session.setAttribute(arg0, arg1);
 175  0
     }
 176  
     /**
 177  
      * @param arg0
 178  
      */
 179  
     public void setMaxInactiveInterval(int arg0)
 180  
     {
 181  0
         session.setMaxInactiveInterval(arg0);
 182  0
     }
 183  
     /* (non-Javadoc)
 184  
      * @see java.lang.Object#toString()
 185  
      */
 186  
     public String toString()
 187  
     {
 188  0
         return session.toString();
 189  
     }
 190  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.