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 | 0 | public abstract class ResponseWriterWrapper extends ResponseWriter implements FacesWrapper<ResponseWriter> |
31 | |
{ |
32 | |
@Override |
33 | |
public ResponseWriter cloneWithWriter(Writer writer) |
34 | |
{ |
35 | 0 | return getWrapped().cloneWithWriter(writer); |
36 | |
} |
37 | |
|
38 | |
@Override |
39 | |
public void close() throws IOException |
40 | |
{ |
41 | 0 | getWrapped().close(); |
42 | 0 | } |
43 | |
|
44 | |
@Override |
45 | |
public void endCDATA() throws IOException |
46 | |
{ |
47 | 0 | getWrapped().endCDATA(); |
48 | 0 | } |
49 | |
|
50 | |
@Override |
51 | |
public void endDocument() throws IOException |
52 | |
{ |
53 | 0 | getWrapped().endDocument(); |
54 | 0 | } |
55 | |
|
56 | |
@Override |
57 | |
public void endElement(String name) throws IOException |
58 | |
{ |
59 | 0 | getWrapped().endElement(name); |
60 | 0 | } |
61 | |
|
62 | |
@Override |
63 | |
public void flush() throws IOException |
64 | |
{ |
65 | 0 | getWrapped().flush(); |
66 | 0 | } |
67 | |
|
68 | |
@Override |
69 | |
public String getCharacterEncoding() |
70 | |
{ |
71 | 0 | return getWrapped().getCharacterEncoding(); |
72 | |
} |
73 | |
|
74 | |
@Override |
75 | |
public String getContentType() |
76 | |
{ |
77 | 0 | return getWrapped().getContentType(); |
78 | |
} |
79 | |
|
80 | |
public abstract ResponseWriter getWrapped(); |
81 | |
|
82 | |
@Override |
83 | |
public void startCDATA() throws IOException |
84 | |
{ |
85 | 0 | getWrapped().startCDATA(); |
86 | 0 | } |
87 | |
|
88 | |
@Override |
89 | |
public void startDocument() throws IOException |
90 | |
{ |
91 | 0 | getWrapped().startDocument(); |
92 | 0 | } |
93 | |
|
94 | |
@Override |
95 | |
public void startElement(String name, UIComponent component) throws IOException |
96 | |
{ |
97 | 0 | getWrapped().startElement(name, component); |
98 | 0 | } |
99 | |
|
100 | |
@Override |
101 | |
public void write(char[] cbuf, int off, int len) throws IOException |
102 | |
{ |
103 | 0 | getWrapped().write(cbuf, off, len); |
104 | 0 | } |
105 | |
|
106 | |
@Override |
107 | |
public void writeAttribute(String name, Object value, String property) throws IOException |
108 | |
{ |
109 | 0 | getWrapped().writeAttribute(name, value, property); |
110 | 0 | } |
111 | |
|
112 | |
@Override |
113 | |
public void writeComment(Object comment) throws IOException |
114 | |
{ |
115 | 0 | getWrapped().writeComment(comment); |
116 | 0 | } |
117 | |
|
118 | |
@Override |
119 | |
public void writeText(char[] text, int off, int len) throws IOException |
120 | |
{ |
121 | 0 | getWrapped().writeText(text, off, len); |
122 | 0 | } |
123 | |
|
124 | |
@Override |
125 | |
public void writeText(Object text, String property) throws IOException |
126 | |
{ |
127 | 0 | getWrapped().writeText(text, property); |
128 | 0 | } |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
@Override |
134 | |
public void writeText(Object object, UIComponent component, String string) throws IOException |
135 | |
{ |
136 | 0 | getWrapped().writeText(object, component, string); |
137 | 0 | } |
138 | |
|
139 | |
@Override |
140 | |
public void writeURIAttribute(String name, Object value, String property) throws IOException |
141 | |
{ |
142 | 0 | getWrapped().writeURIAttribute(name, value, property); |
143 | 0 | } |
144 | |
|
145 | |
@Override |
146 | |
public void writeDoctype(String doctype) throws IOException |
147 | |
{ |
148 | 0 | getWrapped().writeDoctype(doctype); |
149 | 0 | } |
150 | |
|
151 | |
@Override |
152 | |
public void writePreamble(String preamble) throws IOException |
153 | |
{ |
154 | 0 | getWrapped().writePreamble(preamble); |
155 | 0 | } |
156 | |
} |