001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.kernel.portlet;
022:
023: import java.io.IOException;
024: import java.io.OutputStream;
025: import java.io.PrintWriter;
026:
027: import java.util.Locale;
028:
029: import javax.portlet.PortletURL;
030: import javax.portlet.RenderResponse;
031:
032: /**
033: * <a href="RenderResponseWrapper.java.html"><b><i>View Source</i></b></a>
034: *
035: * @author Brian Wing Shun Chan
036: *
037: */
038: public class RenderResponseWrapper extends PortletResponseWrapper
039: implements RenderResponse {
040:
041: public RenderResponseWrapper(RenderResponse res) {
042: super (res);
043:
044: _res = res;
045: }
046:
047: public String getContentType() {
048: return _res.getContentType();
049: }
050:
051: public PortletURL createRenderURL() {
052: return _res.createRenderURL();
053: }
054:
055: public PortletURL createActionURL() {
056: return _res.createActionURL();
057: }
058:
059: public String getNamespace() {
060: return _res.getNamespace();
061: }
062:
063: public void setTitle(String title) {
064: _res.setTitle(title);
065: }
066:
067: public void setContentType(String type) {
068: _res.setContentType(type);
069: }
070:
071: public String getCharacterEncoding() {
072: return _res.getCharacterEncoding();
073: }
074:
075: public PrintWriter getWriter() throws IOException {
076: return _res.getWriter();
077: }
078:
079: public Locale getLocale() {
080: return _res.getLocale();
081: }
082:
083: public void setBufferSize(int size) {
084: _res.setBufferSize(size);
085: }
086:
087: public int getBufferSize() {
088: return _res.getBufferSize();
089: }
090:
091: public void flushBuffer() throws IOException {
092: _res.flushBuffer();
093: }
094:
095: public void resetBuffer() {
096: _res.resetBuffer();
097: }
098:
099: public boolean isCommitted() {
100: return _res.isCommitted();
101: }
102:
103: public void reset() {
104: _res.reset();
105: }
106:
107: public OutputStream getPortletOutputStream() throws IOException {
108: return _res.getPortletOutputStream();
109: }
110:
111: private RenderResponse _res;
112:
113: }
|