View Javadoc

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  
23  import javax.faces.FacesWrapper;
24  import javax.faces.context.FacesContext;
25  
26  /**
27   * @since 2.0
28   */
29  public abstract class ResourceHandlerWrapper extends ResourceHandler
30      implements FacesWrapper<ResourceHandler>
31  {
32      @Override
33      public Resource createResource(String resourceName)
34      {
35          return getWrapped().createResource(resourceName);
36      }
37      
38      @Override
39      public Resource createResource(String resourceName, String libraryName)
40      {
41          return getWrapped().createResource(resourceName, libraryName);
42      }
43      
44      @Override
45      public Resource createResource(String resourceName, String libraryName, String contentType)
46      {
47          return getWrapped().createResource(resourceName, libraryName, contentType);
48      }
49      
50      @Override
51      public String getRendererTypeForResourceName(String resourceName)
52      {
53          return getWrapped().getRendererTypeForResourceName(resourceName);
54      }
55      
56      @Override
57      public void handleResourceRequest(FacesContext context) throws IOException
58      {
59          getWrapped().handleResourceRequest(context);
60      }
61      
62      @Override
63      public boolean isResourceRequest(FacesContext context)
64      {
65          return getWrapped().isResourceRequest(context);
66      }
67      
68      @Override
69      public boolean libraryExists(String libraryName)
70      {
71          return getWrapped().libraryExists(libraryName);
72      }
73  
74      @Override
75      public Resource createResourceFromId(String resourceId)
76      {
77          return getWrapped().createResourceFromId(resourceId);
78      }
79  
80      @Override
81      public ViewResource createViewResource(FacesContext context, String resourceName)
82      {
83          return getWrapped().createViewResource(context, resourceName);
84      }
85  
86      @Override
87      public boolean isResourceURL(String url)
88      {
89          return getWrapped().isResourceURL(url);
90      }
91      
92      public abstract ResourceHandler getWrapped();
93  }