1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.shared.context; |
20 | |
|
21 | |
import javax.faces.component.UIComponent; |
22 | |
import javax.faces.context.ResponseWriter; |
23 | |
import java.io.IOException; |
24 | |
import java.io.Writer; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
public abstract class ResponseWriterWrapper |
30 | |
extends ResponseWriter |
31 | |
{ |
32 | |
protected ResponseWriter _responseWriter; |
33 | |
|
34 | |
public ResponseWriterWrapper(ResponseWriter responseWriter) |
35 | 0 | { |
36 | 0 | _responseWriter = responseWriter; |
37 | 0 | } |
38 | |
|
39 | |
public String getContentType() |
40 | |
{ |
41 | 0 | return _responseWriter.getContentType(); |
42 | |
} |
43 | |
|
44 | |
public String getCharacterEncoding() |
45 | |
{ |
46 | 0 | return _responseWriter.getCharacterEncoding(); |
47 | |
} |
48 | |
|
49 | |
public void flush() throws IOException |
50 | |
{ |
51 | 0 | _responseWriter.flush(); |
52 | 0 | } |
53 | |
|
54 | |
public void startDocument() throws IOException |
55 | |
{ |
56 | 0 | _responseWriter.startDocument(); |
57 | 0 | } |
58 | |
|
59 | |
public void endDocument() throws IOException |
60 | |
{ |
61 | 0 | _responseWriter.endDocument(); |
62 | 0 | } |
63 | |
|
64 | |
public void startElement(String s, UIComponent uicomponent) throws IOException |
65 | |
{ |
66 | 0 | _responseWriter.startElement(s, uicomponent); |
67 | 0 | } |
68 | |
|
69 | |
public void endElement(String s) throws IOException |
70 | |
{ |
71 | 0 | _responseWriter.endElement(s); |
72 | 0 | } |
73 | |
|
74 | |
public void writeAttribute(String s, Object obj, String s1) throws IOException |
75 | |
{ |
76 | 0 | _responseWriter.writeAttribute(s, obj, s1); |
77 | 0 | } |
78 | |
|
79 | |
public void writeURIAttribute(String s, Object obj, String s1) throws IOException |
80 | |
{ |
81 | 0 | _responseWriter.writeURIAttribute(s, obj, s1); |
82 | 0 | } |
83 | |
|
84 | |
public void writeComment(Object obj) throws IOException |
85 | |
{ |
86 | 0 | _responseWriter.writeComment(obj); |
87 | 0 | } |
88 | |
|
89 | |
public void writeText(Object obj, String s) throws IOException |
90 | |
{ |
91 | 0 | _responseWriter.writeText(obj, s); |
92 | 0 | } |
93 | |
|
94 | |
public void writeText(char ac[], int i, int j) throws IOException |
95 | |
{ |
96 | 0 | _responseWriter.writeText(ac, i, j); |
97 | 0 | } |
98 | |
|
99 | |
public abstract ResponseWriter cloneWithWriter(Writer writer); |
100 | |
|
101 | |
public void close() throws IOException |
102 | |
{ |
103 | 0 | _responseWriter.close(); |
104 | 0 | } |
105 | |
|
106 | |
public void write(char cbuf[], int off, int len) throws IOException |
107 | |
{ |
108 | 0 | _responseWriter.write(cbuf, off, len); |
109 | 0 | } |
110 | |
|
111 | |
public void write(int c) throws IOException |
112 | |
{ |
113 | 0 | _responseWriter.write(c); |
114 | 0 | } |
115 | |
|
116 | |
public void write(char cbuf[]) throws IOException |
117 | |
{ |
118 | 0 | _responseWriter.write(cbuf); |
119 | 0 | } |
120 | |
|
121 | |
public void write(String str) throws IOException |
122 | |
{ |
123 | 0 | _responseWriter.write(str); |
124 | 0 | } |
125 | |
|
126 | |
public void write(String str, int off, int len) throws IOException |
127 | |
{ |
128 | 0 | _responseWriter.write(str, off, len); |
129 | 0 | } |
130 | |
} |