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.List; |
24 | |
import java.util.Locale; |
25 | |
import java.util.Map; |
26 | |
import java.util.Set; |
27 | |
|
28 | |
import javax.faces.FacesException; |
29 | |
import javax.faces.FacesWrapper; |
30 | |
import javax.faces.component.UIViewRoot; |
31 | |
import javax.faces.context.FacesContext; |
32 | |
import javax.faces.view.ViewDeclarationLanguage; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | 0 | public abstract class ViewHandlerWrapper extends ViewHandler |
38 | |
implements FacesWrapper<ViewHandler> |
39 | |
{ |
40 | |
|
41 | |
@Override |
42 | |
public String calculateCharacterEncoding(FacesContext context) |
43 | |
{ |
44 | 0 | return getWrapped().calculateCharacterEncoding(context); |
45 | |
} |
46 | |
|
47 | |
@Override |
48 | |
public void initView(FacesContext context) throws FacesException |
49 | |
{ |
50 | 0 | getWrapped().initView(context); |
51 | 0 | } |
52 | |
|
53 | |
public abstract ViewHandler getWrapped(); |
54 | |
|
55 | |
@Override |
56 | |
public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException |
57 | |
{ |
58 | 0 | getWrapped().renderView(context, viewToRender); |
59 | 0 | } |
60 | |
|
61 | |
@Override |
62 | |
public void writeState(FacesContext context) throws IOException |
63 | |
{ |
64 | 0 | getWrapped().writeState(context); |
65 | 0 | } |
66 | |
|
67 | |
@Override |
68 | |
public String calculateRenderKitId(FacesContext context) |
69 | |
{ |
70 | 0 | return getWrapped().calculateRenderKitId(context); |
71 | |
} |
72 | |
|
73 | |
@Override |
74 | |
public Locale calculateLocale(FacesContext context) |
75 | |
{ |
76 | 0 | return getWrapped().calculateLocale(context); |
77 | |
} |
78 | |
|
79 | |
@Override |
80 | |
public UIViewRoot restoreView(FacesContext context, String viewId) |
81 | |
{ |
82 | 0 | return getWrapped().restoreView(context, viewId); |
83 | |
} |
84 | |
|
85 | |
@Override |
86 | |
public String getResourceURL(FacesContext context, String path) |
87 | |
{ |
88 | 0 | return getWrapped().getResourceURL(context, path); |
89 | |
} |
90 | |
|
91 | |
@Override |
92 | |
public String getActionURL(FacesContext context, String viewId) |
93 | |
{ |
94 | 0 | return getWrapped().getActionURL(context, viewId); |
95 | |
} |
96 | |
|
97 | |
@Override |
98 | |
public UIViewRoot createView(FacesContext context, String viewId) |
99 | |
{ |
100 | 0 | return getWrapped().createView(context, viewId); |
101 | |
} |
102 | |
|
103 | |
@Override |
104 | |
public String deriveViewId(FacesContext context, String input) |
105 | |
{ |
106 | 0 | return getWrapped().deriveViewId(context, input); |
107 | |
} |
108 | |
|
109 | |
@Override |
110 | |
public String deriveLogicalViewId(FacesContext context, String rawViewId) |
111 | |
{ |
112 | 0 | return getWrapped().deriveLogicalViewId(context, rawViewId); |
113 | |
} |
114 | |
|
115 | |
@Override |
116 | |
public String getBookmarkableURL(FacesContext context, String viewId, |
117 | |
Map<String, List<String>> parameters, boolean includeViewParams) |
118 | |
{ |
119 | 0 | return getWrapped().getBookmarkableURL(context, viewId, parameters, includeViewParams); |
120 | |
} |
121 | |
|
122 | |
@Override |
123 | |
public String getRedirectURL(FacesContext context, String viewId, |
124 | |
Map<String, List<String>> parameters, boolean includeViewParams) |
125 | |
{ |
126 | 0 | return getWrapped().getRedirectURL(context, viewId, parameters, includeViewParams); |
127 | |
} |
128 | |
|
129 | |
@Override |
130 | |
public ViewDeclarationLanguage getViewDeclarationLanguage( |
131 | |
FacesContext context, String viewId) |
132 | |
{ |
133 | 0 | return getWrapped().getViewDeclarationLanguage(context, viewId); |
134 | |
} |
135 | |
|
136 | |
@Override |
137 | |
public Set<String> getProtectedViewsUnmodifiable() |
138 | |
{ |
139 | 0 | return getWrapped().getProtectedViewsUnmodifiable(); |
140 | |
} |
141 | |
|
142 | |
@Override |
143 | |
public boolean removeProtectedView(String urlPattern) |
144 | |
{ |
145 | 0 | return getWrapped().removeProtectedView(urlPattern); |
146 | |
} |
147 | |
|
148 | |
@Override |
149 | |
public void addProtectedView(String urlPattern) |
150 | |
{ |
151 | 0 | getWrapped().addProtectedView(urlPattern); |
152 | 0 | } |
153 | |
|
154 | |
} |