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 public abstract class ViewHandlerWrapper extends ViewHandler {
34
35 @Override
36 public String calculateCharacterEncoding(FacesContext context) {
37 return getWrapped().calculateCharacterEncoding(context);
38 }
39
40 @Override
41 public void initView(FacesContext context) throws FacesException {
42 getWrapped().initView(context);
43 }
44
45 protected abstract ViewHandler getWrapped();
46
47 public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
48 getWrapped().renderView(context, viewToRender);
49 }
50
51 public void writeState(FacesContext context) throws IOException {
52 getWrapped().writeState(context);
53 }
54
55 public String calculateRenderKitId(FacesContext context) {
56 return getWrapped().calculateRenderKitId(context);
57 }
58
59 public Locale calculateLocale(FacesContext context) {
60 return getWrapped().calculateLocale(context);
61 }
62
63 public UIViewRoot restoreView(FacesContext context, String viewId) {
64 return getWrapped().restoreView(context, viewId);
65 }
66
67 public String getResourceURL(FacesContext context, String path) {
68 return getWrapped().getResourceURL(context, path);
69 }
70
71 public String getActionURL(FacesContext context, String viewId) {
72 return getWrapped().getActionURL(context, viewId);
73 }
74
75 public UIViewRoot createView(FacesContext context, String viewId) {
76 return getWrapped().createView(context, viewId);
77 }
78
79 }