Coverage Report - javax.faces.application.ResourceWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
ResourceWrapper
0%
0/15
N/A
1
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements.  See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership.  The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with 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,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied.  See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 package javax.faces.application;
 20  
 
 21  
 import java.io.IOException;
 22  
 import java.io.InputStream;
 23  
 import java.net.URL;
 24  
 import java.util.Map;
 25  
 
 26  
 import javax.faces.FacesWrapper;
 27  
 import javax.faces.context.FacesContext;
 28  
 
 29  
 /**
 30  
  * @since 2.0
 31  
  */
 32  0
 public abstract class ResourceWrapper extends Resource
 33  
     implements FacesWrapper<Resource>
 34  
 {
 35  
     @Override
 36  
     public InputStream getInputStream() throws IOException
 37  
     {
 38  0
         return getWrapped().getInputStream();
 39  
     }
 40  
 
 41  
     @Override
 42  
     public String getRequestPath()
 43  
     {
 44  0
         return getWrapped().getRequestPath();
 45  
     }
 46  
 
 47  
     @Override
 48  
     public Map<String, String> getResponseHeaders()
 49  
     {
 50  0
         return getWrapped().getResponseHeaders();
 51  
     }
 52  
 
 53  
     @Override
 54  
     public URL getURL()
 55  
     {
 56  0
         return getWrapped().getURL();
 57  
     }
 58  
 
 59  
     @Override
 60  
     public boolean userAgentNeedsUpdate(FacesContext context)
 61  
     {
 62  0
         return getWrapped().userAgentNeedsUpdate(context);
 63  
     }
 64  
     
 65  
     public abstract Resource getWrapped();
 66  
 
 67  
     @Override
 68  
     public void setResourceName(String resourceName)
 69  
     {
 70  0
         getWrapped().setResourceName(resourceName);
 71  0
     }
 72  
 
 73  
     @Override
 74  
     public void setLibraryName(String libraryName)
 75  
     {
 76  0
         getWrapped().setLibraryName(libraryName);
 77  0
     }
 78  
 
 79  
     @Override
 80  
     public void setContentType(String contentType)
 81  
     {
 82  0
         getWrapped().setContentType(contentType);
 83  0
     }
 84  
 
 85  
     @Override
 86  
     public String getResourceName()
 87  
     {
 88  0
         return getWrapped().getResourceName();
 89  
     }
 90  
 
 91  
     @Override
 92  
     public String getLibraryName()
 93  
     {
 94  0
         return getWrapped().getLibraryName();
 95  
     }
 96  
 
 97  
     @Override
 98  
     public String getContentType()
 99  
     {
 100  0
         return getWrapped().getContentType();
 101  
     }
 102  
 
 103  
 }