1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
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 | |
|
30 | |
|
31 | |
|
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 | |
} |