Coverage Report - org.apache.tapestry.portlet.multipart.ActionRequestWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
ActionRequestWrapper
0%
0/47
N/A
1
 
 1  
 // Copyright 2006 The Apache Software Foundation
 2  
 //
 3  
 // Licensed under the Apache License, Version 2.0 (the "License");
 4  
 // you may not use this file except in compliance with the License.
 5  
 // You may obtain a copy of the License at
 6  
 //
 7  
 //     http://www.apache.org/licenses/LICENSE-2.0
 8  
 //
 9  
 // Unless required by applicable law or agreed to in writing, software
 10  
 // distributed under the License is distributed on an "AS IS" BASIS,
 11  
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
 // See the License for the specific language governing permissions and
 13  
 // limitations under the License.
 14  
 package org.apache.tapestry.portlet.multipart;
 15  
 
 16  
 import java.io.BufferedReader;
 17  
 import java.io.IOException;
 18  
 import java.io.InputStream;
 19  
 import java.io.UnsupportedEncodingException;
 20  
 import java.security.Principal;
 21  
 import java.util.Enumeration;
 22  
 import java.util.Locale;
 23  
 import java.util.Map;
 24  
 
 25  
 import javax.portlet.ActionRequest;
 26  
 import javax.portlet.PortalContext;
 27  
 import javax.portlet.PortletMode;
 28  
 import javax.portlet.PortletPreferences;
 29  
 import javax.portlet.PortletSession;
 30  
 import javax.portlet.WindowState;
 31  
 
 32  
 /**
 33  
  * @author Raphael Jean
 34  
  */
 35  
 public class ActionRequestWrapper extends Object implements ActionRequest
 36  
 {
 37  
 
 38  
     private ActionRequest wrapped;
 39  
 
 40  
     public ActionRequestWrapper(ActionRequest request)
 41  0
     {
 42  0
         wrapped = request;
 43  0
     }
 44  
 
 45  
     public InputStream getPortletInputStream()
 46  
         throws IOException
 47  
     {
 48  0
         return wrapped.getPortletInputStream();
 49  
     }
 50  
 
 51  
     public void setCharacterEncoding(String arg0)
 52  
         throws UnsupportedEncodingException
 53  
     {
 54  0
         wrapped.setCharacterEncoding(arg0);
 55  0
     }
 56  
 
 57  
     public BufferedReader getReader()
 58  
         throws IOException
 59  
     {
 60  0
         return wrapped.getReader();
 61  
     }
 62  
 
 63  
     public String getCharacterEncoding()
 64  
     {
 65  0
         return wrapped.getCharacterEncoding();
 66  
     }
 67  
 
 68  
     public String getContentType()
 69  
     {
 70  0
         return wrapped.getContentType();
 71  
     }
 72  
 
 73  
     public int getContentLength()
 74  
     {
 75  0
         return wrapped.getContentLength();
 76  
     }
 77  
 
 78  
     public boolean isWindowStateAllowed(WindowState arg0)
 79  
     {
 80  0
         return wrapped.isWindowStateAllowed(arg0);
 81  
     }
 82  
 
 83  
     public boolean isPortletModeAllowed(PortletMode arg0)
 84  
     {
 85  0
         return wrapped.isPortletModeAllowed(arg0);
 86  
     }
 87  
 
 88  
     public PortletMode getPortletMode()
 89  
     {
 90  0
         return wrapped.getPortletMode();
 91  
     }
 92  
 
 93  
     public WindowState getWindowState()
 94  
     {
 95  0
         return wrapped.getWindowState();
 96  
     }
 97  
 
 98  
     public PortletPreferences getPreferences()
 99  
     {
 100  0
         return wrapped.getPreferences();
 101  
     }
 102  
 
 103  
     public PortletSession getPortletSession()
 104  
     {
 105  0
         return wrapped.getPortletSession();
 106  
     }
 107  
 
 108  
     public PortletSession getPortletSession(boolean arg0)
 109  
     {
 110  0
         return wrapped.getPortletSession(arg0);
 111  
     }
 112  
 
 113  
     public String getProperty(String arg0)
 114  
     {
 115  0
         return wrapped.getProperty(arg0);
 116  
     }
 117  
 
 118  
     public Enumeration getProperties(String arg0)
 119  
     {
 120  0
         return wrapped.getProperties(arg0);
 121  
     }
 122  
 
 123  
     public Enumeration getPropertyNames()
 124  
     {
 125  0
         return wrapped.getPropertyNames();
 126  
     }
 127  
 
 128  
     public PortalContext getPortalContext()
 129  
     {
 130  0
         return wrapped.getPortalContext();
 131  
     }
 132  
 
 133  
     public String getAuthType()
 134  
     {
 135  0
         return wrapped.getAuthType();
 136  
     }
 137  
 
 138  
     public String getContextPath()
 139  
     {
 140  0
         return wrapped.getContextPath();
 141  
     }
 142  
 
 143  
     public String getRemoteUser()
 144  
     {
 145  0
         return wrapped.getRemoteUser();
 146  
     }
 147  
 
 148  
     public Principal getUserPrincipal()
 149  
     {
 150  0
         return wrapped.getUserPrincipal();
 151  
     }
 152  
 
 153  
     public boolean isUserInRole(String arg0)
 154  
     {
 155  0
         return wrapped.isUserInRole(arg0);
 156  
     }
 157  
 
 158  
     public Object getAttribute(String arg0)
 159  
     {
 160  0
         return wrapped.getAttribute(arg0);
 161  
     }
 162  
 
 163  
     public Enumeration getAttributeNames()
 164  
     {
 165  0
         return wrapped.getAttributeNames();
 166  
     }
 167  
 
 168  
     public String getParameter(String arg0)
 169  
     {
 170  0
         return wrapped.getParameter(arg0);
 171  
     }
 172  
 
 173  
     public Enumeration getParameterNames()
 174  
     {
 175  0
         return wrapped.getParameterNames();
 176  
     }
 177  
 
 178  
     public String[] getParameterValues(String arg0)
 179  
     {
 180  0
         return wrapped.getParameterValues(arg0);
 181  
     }
 182  
 
 183  
     public Map getParameterMap()
 184  
     {
 185  0
         return wrapped.getParameterMap();
 186  
     }
 187  
 
 188  
     public boolean isSecure()
 189  
     {
 190  0
         return wrapped.isSecure();
 191  
     }
 192  
 
 193  
     public void setAttribute(String arg0, Object arg1)
 194  
     {
 195  0
         wrapped.setAttribute(arg0, arg1);
 196  0
     }
 197  
 
 198  
     public void removeAttribute(String arg0)
 199  
     {
 200  0
         wrapped.removeAttribute(arg0);
 201  0
     }
 202  
 
 203  
     public String getRequestedSessionId()
 204  
     {
 205  0
         return wrapped.getRequestedSessionId();
 206  
     }
 207  
 
 208  
     public boolean isRequestedSessionIdValid()
 209  
     {
 210  0
         return wrapped.isRequestedSessionIdValid();
 211  
     }
 212  
 
 213  
     public String getResponseContentType()
 214  
     {
 215  0
         return wrapped.getResponseContentType();
 216  
     }
 217  
 
 218  
     public Enumeration getResponseContentTypes()
 219  
     {
 220  0
         return wrapped.getResponseContentTypes();
 221  
     }
 222  
 
 223  
     public Locale getLocale()
 224  
     {
 225  0
         return wrapped.getLocale();
 226  
     }
 227  
 
 228  
     public Enumeration getLocales()
 229  
     {
 230  0
         return wrapped.getLocales();
 231  
     }
 232  
 
 233  
     public String getScheme()
 234  
     {
 235  0
         return wrapped.getScheme();
 236  
     }
 237  
 
 238  
     public String getServerName()
 239  
     {
 240  0
         return wrapped.getServerName();
 241  
     }
 242  
 
 243  
     public int getServerPort()
 244  
     {
 245  0
         return wrapped.getServerPort();
 246  
     }
 247  
 
 248  
     protected ActionRequest getRequest()
 249  
     {
 250  0
         return wrapped;
 251  
     }
 252  
 
 253  
 }