Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ResourceWrapper |
|
| 0.0;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 | 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 | * @author Simon Lessard (latest modification by $Author: slessard $) | |
31 | * @version $Revision: 696523 $ $Date: 2008-09-24 18:31:37 -0400 (mer., 17 sept. 2008) $ | |
32 | * | |
33 | * @since 2.0 | |
34 | */ | |
35 | 0 | public abstract class ResourceWrapper extends Resource |
36 | implements FacesWrapper<Resource> | |
37 | { | |
38 | @Override | |
39 | public InputStream getInputStream() throws IOException | |
40 | { | |
41 | 0 | return getWrapped().getInputStream(); |
42 | } | |
43 | ||
44 | @Override | |
45 | public String getRequestPath() | |
46 | { | |
47 | 0 | return getWrapped().getRequestPath(); |
48 | } | |
49 | ||
50 | @Override | |
51 | public Map<String, String> getResponseHeaders() | |
52 | { | |
53 | 0 | return getWrapped().getResponseHeaders(); |
54 | } | |
55 | ||
56 | @Override | |
57 | public URL getURL() | |
58 | { | |
59 | 0 | return getWrapped().getURL(); |
60 | } | |
61 | ||
62 | @Override | |
63 | public boolean userAgentNeedsUpdate(FacesContext context) | |
64 | { | |
65 | 0 | return getWrapped().userAgentNeedsUpdate(context); |
66 | } | |
67 | ||
68 | public abstract Resource getWrapped(); | |
69 | } |