1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
package javax.faces.context; |
21 | |
|
22 | |
import javax.faces.component.UIComponent; |
23 | |
import javax.faces.FacesWrapper; |
24 | |
import java.io.IOException; |
25 | |
import java.io.Writer; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | 0 | public abstract class ResponseWriterWrapper extends ResponseWriter implements FacesWrapper<ResponseWriter> |
33 | |
{ |
34 | |
|
35 | |
public abstract ResponseWriter getWrapped(); |
36 | |
|
37 | |
@Override |
38 | |
public void endElement(String name) throws IOException |
39 | |
{ |
40 | 0 | getWrapped().endElement(name); |
41 | 0 | } |
42 | |
|
43 | |
@Override |
44 | |
public void writeComment(Object comment) throws IOException |
45 | |
{ |
46 | 0 | getWrapped().writeComment(comment); |
47 | 0 | } |
48 | |
|
49 | |
@Override |
50 | |
public void startElement(String name, UIComponent component) throws IOException |
51 | |
{ |
52 | 0 | getWrapped().startElement(name, component); |
53 | 0 | } |
54 | |
|
55 | |
@Override |
56 | |
public void writeText(Object text, String property) throws IOException |
57 | |
{ |
58 | 0 | getWrapped().writeText(text, property); |
59 | 0 | } |
60 | |
|
61 | |
@Override |
62 | |
public void writeText(char[] text, int off, int len) throws IOException |
63 | |
{ |
64 | 0 | getWrapped().writeText(text, off, len); |
65 | 0 | } |
66 | |
|
67 | |
@Override |
68 | |
public void write(char[] cbuf, int off, int len) throws IOException |
69 | |
{ |
70 | 0 | getWrapped().write(cbuf, off, len); |
71 | 0 | } |
72 | |
|
73 | |
@Override |
74 | |
public ResponseWriter cloneWithWriter(Writer writer) |
75 | |
{ |
76 | 0 | return getWrapped().cloneWithWriter(writer); |
77 | |
} |
78 | |
|
79 | |
@Override |
80 | |
public void writeURIAttribute(String name, Object value, String property) throws IOException |
81 | |
{ |
82 | 0 | getWrapped().writeURIAttribute(name, value, property); |
83 | 0 | } |
84 | |
|
85 | |
@Override |
86 | |
public void close() throws IOException |
87 | |
{ |
88 | 0 | getWrapped().close(); |
89 | 0 | } |
90 | |
|
91 | |
@Override |
92 | |
public void endDocument() throws IOException |
93 | |
{ |
94 | 0 | getWrapped().endDocument(); |
95 | 0 | } |
96 | |
|
97 | |
@Override |
98 | |
public void flush() throws IOException |
99 | |
{ |
100 | 0 | getWrapped().flush(); |
101 | 0 | } |
102 | |
|
103 | |
@Override |
104 | |
public String getCharacterEncoding() |
105 | |
{ |
106 | 0 | return getWrapped().getCharacterEncoding(); |
107 | |
} |
108 | |
|
109 | |
@Override |
110 | |
public String getContentType() |
111 | |
{ |
112 | 0 | return getWrapped().getContentType(); |
113 | |
} |
114 | |
|
115 | |
@Override |
116 | |
public void startDocument() throws IOException |
117 | |
{ |
118 | 0 | getWrapped().startDocument(); |
119 | 0 | } |
120 | |
|
121 | |
@Override |
122 | |
public void writeAttribute(String name, Object value, String property) throws IOException |
123 | |
{ |
124 | 0 | getWrapped().writeAttribute(name, value, property); |
125 | 0 | } |
126 | |
|
127 | |
|
128 | |
|
129 | |
|
130 | |
@Override |
131 | |
public void writeText(Object object, UIComponent component, String string) throws IOException |
132 | |
{ |
133 | 0 | getWrapped().writeText(object, component, string); |
134 | 0 | } |
135 | |
|
136 | |
@Override |
137 | |
public void startCDATA() throws IOException |
138 | |
{ |
139 | 0 | getWrapped().startCDATA(); |
140 | 0 | } |
141 | |
|
142 | |
@Override |
143 | |
public void endCDATA() throws IOException |
144 | |
{ |
145 | 0 | getWrapped().endCDATA(); |
146 | 0 | } |
147 | |
|
148 | |
@Override |
149 | |
public Writer append(char c) throws IOException |
150 | |
{ |
151 | 0 | return getWrapped().append(c); |
152 | |
} |
153 | |
|
154 | |
@Override |
155 | |
public Writer append(CharSequence csq, int start, int end) |
156 | |
throws IOException |
157 | |
{ |
158 | 0 | return getWrapped().append(csq, start, end); |
159 | |
} |
160 | |
|
161 | |
@Override |
162 | |
public Writer append(CharSequence csq) throws IOException |
163 | |
{ |
164 | 0 | return getWrapped().append(csq); |
165 | |
} |
166 | |
|
167 | |
@Override |
168 | |
public void write(char[] cbuf) throws IOException |
169 | |
{ |
170 | 0 | getWrapped().write(cbuf); |
171 | 0 | } |
172 | |
|
173 | |
@Override |
174 | |
public void write(int c) throws IOException |
175 | |
{ |
176 | 0 | getWrapped().write(c); |
177 | 0 | } |
178 | |
|
179 | |
@Override |
180 | |
public void write(String str, int off, int len) throws IOException |
181 | |
{ |
182 | 0 | getWrapped().write(str, off, len); |
183 | 0 | } |
184 | |
|
185 | |
@Override |
186 | |
public void write(String str) throws IOException |
187 | |
{ |
188 | 0 | getWrapped().write(str); |
189 | 0 | } |
190 | |
|
191 | |
} |