Coverage Report - javax.faces.application.ViewHandlerWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
ViewHandlerWrapper
0%
0/14
N/A
0
 
 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  
 
 20  
 package javax.faces.application;
 21  
 
 22  
 import java.io.IOException;
 23  
 import java.util.Locale;
 24  
 import javax.faces.FacesException;
 25  
 import javax.faces.component.UIViewRoot;
 26  
 import javax.faces.context.FacesContext;
 27  
 
 28  
 /**
 29  
  * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
 30  
  *
 31  
  * @author Stan Silvert
 32  
  */
 33  0
 public abstract class ViewHandlerWrapper extends ViewHandler {
 34  
     
 35  
     @Override
 36  
     public String calculateCharacterEncoding(FacesContext context) {
 37  0
         return getWrapped().calculateCharacterEncoding(context);
 38  
     }
 39  
 
 40  
     @Override
 41  
     public void initView(FacesContext context) throws FacesException {
 42  0
         getWrapped().initView(context);
 43  0
     }
 44  
 
 45  
     protected abstract ViewHandler getWrapped();
 46  
     
 47  
     public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
 48  0
         getWrapped().renderView(context, viewToRender);
 49  0
     }
 50  
 
 51  
     public void writeState(FacesContext context) throws IOException {
 52  0
         getWrapped().writeState(context);
 53  0
     }
 54  
 
 55  
     public String calculateRenderKitId(FacesContext context) {
 56  0
         return getWrapped().calculateRenderKitId(context);
 57  
     }
 58  
 
 59  
     public Locale calculateLocale(FacesContext context) {
 60  0
         return getWrapped().calculateLocale(context);
 61  
     }
 62  
 
 63  
     public UIViewRoot restoreView(FacesContext context, String viewId) {
 64  0
         return getWrapped().restoreView(context, viewId);
 65  
     }
 66  
 
 67  
     public String getResourceURL(FacesContext context, String path) {
 68  0
         return getWrapped().getResourceURL(context, path);
 69  
     }
 70  
 
 71  
     public String getActionURL(FacesContext context, String viewId) {
 72  0
         return getWrapped().getActionURL(context, viewId);
 73  
     }
 74  
 
 75  
     public UIViewRoot createView(FacesContext context, String viewId) {
 76  0
         return getWrapped().createView(context, viewId);
 77  
     }
 78  
     
 79  
 }