Source Code Cross Referenced for RDResponseWrapper.java in  » Portal » Open-Portal » com » sun » portal » portlet » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.portlet.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2002 Sun Microsystems, Inc. All 
003:         * rights reserved. Use of this product is subject 
004:         * to license terms. Federal Acquisitions: 
005:         * Commercial Software -- Government Users 
006:         * Subject to Standard License Terms and 
007:         * Conditions. 
008:         * 
009:         * Sun, Sun Microsystems, the Sun logo, and Sun ONE 
010:         * are trademarks or registered trademarks of Sun Microsystems, 
011:         * Inc. in the United States and other countries. 
012:         */
013:        package com.sun.portal.portlet.impl;
014:
015:        import java.io.IOException;
016:        import java.io.PrintWriter;
017:        import java.util.Enumeration;
018:        import java.util.Locale;
019:
020:        import javax.portlet.RenderResponse;
021:        import javax.servlet.ServletOutputStream;
022:        import javax.servlet.http.Cookie;
023:        import javax.servlet.http.HttpServletResponse;
024:        import javax.servlet.http.HttpServletResponseWrapper;
025:
026:        /**
027:         * RDResponseWrapper is a wrapped HttpServerResponse object that needs
028:         * to be passed into the servlet request dispatcher.
029:         */
030:
031:        public class RDResponseWrapper extends HttpServletResponseWrapper {
032:
033:            // private members
034:            private RDRequestWrapper _rdRequestWrapper;
035:            private RenderResponse _rResponse;
036:            private PSServletOutputStream _psServletOutputStream;
037:
038:            // constructor
039:            public RDResponseWrapper(RDRequestWrapper rdReq, RenderResponse rRes) {
040:                super (
041:                        (HttpServletResponse) rdReq
042:                                .getAttribute(PortletRequestConstants.HTTP_SERVLET_RESPONSE));
043:                _rdRequestWrapper = rdReq;
044:                _rResponse = rRes;
045:            }
046:
047:            /*************************************************************
048:             * The following methods must return null based on the portlet 
049:             * specification.
050:             *************************************************************/
051:            public String encodeRedirectUrl(String url) {
052:
053:                return null;
054:            }
055:
056:            public String encodeRedirectURL(java.lang.String url) {
057:
058:                return null;
059:            }
060:
061:            /*************************************************************
062:             * The following methods of the HttpServletResponse must be 
063:             * based on the methods of the RenderResponse of similar names.
064:             *************************************************************/
065:
066:            public String getCharacterEncoding() {
067:
068:                return _rResponse.getCharacterEncoding();
069:            }
070:
071:            public void setBufferSize(int size) {
072:
073:                _rResponse.setBufferSize(size);
074:            }
075:
076:            public void flushBuffer() throws IOException {
077:
078:                _rResponse.flushBuffer();
079:            }
080:
081:            public void resetBuffer() {
082:
083:                _rResponse.resetBuffer();
084:            }
085:
086:            public void reset() {
087:
088:                _rResponse.reset();
089:            }
090:
091:            public int getBufferSize() {
092:
093:                return _rResponse.getBufferSize();
094:            }
095:
096:            public boolean isCommitted() {
097:
098:                return _rResponse.isCommitted();
099:            }
100:
101:            public ServletOutputStream getOutputStream()
102:                    throws java.io.IOException {
103:
104:                if (_psServletOutputStream == null) {
105:                    _psServletOutputStream = new PSServletOutputStream(
106:                            _rResponse.getPortletOutputStream());
107:                }
108:                return _psServletOutputStream;
109:            }
110:
111:            public PrintWriter getWriter() throws java.io.IOException {
112:
113:                return _rResponse.getWriter();
114:            }
115:
116:            public String encodeURL(String path) {
117:
118:                return _rResponse.encodeURL(path);
119:            }
120:
121:            public String encodeUrl(java.lang.String url) {
122:
123:                return _rResponse.encodeURL(url);
124:            }
125:
126:            /*************************************************************
127:             * The following methods of the HttpServletResponse must 
128:             * perform no operations.
129:             *************************************************************/
130:
131:            public void setContentType(String type) {
132:
133:            }
134:
135:            public void setContentLength(int len) {
136:
137:            }
138:
139:            public void setLocale(Locale loc) {
140:
141:            }
142:
143:            public void addCookie(Cookie cookie) {
144:
145:            }
146:
147:            public void sendError(int sc) throws IOException {
148:
149:            }
150:
151:            public void sendError(int sc, String msg) throws IOException {
152:
153:            }
154:
155:            public void sendRedirect(String location) throws IOException {
156:
157:            }
158:
159:            public void setDateHeader(String name, long date) {
160:
161:            }
162:
163:            public void addDateHeader(String name, long date) {
164:
165:            }
166:
167:            public void setHeader(String name, String value) {
168:
169:            }
170:
171:            public void addHeader(String name, String value) {
172:
173:            }
174:
175:            public void setIntHeader(String name, int value) {
176:
177:            }
178:
179:            public void addIntHeader(String name, int value) {
180:
181:            }
182:
183:            public void setStatus(int sc) {
184:
185:            }
186:
187:            /*************************************************************
188:             * The containsHeader method of the HttpServletResponse must 
189:             * return false.
190:             *************************************************************/
191:
192:            public boolean containsHeader(String name) {
193:
194:                return false;
195:            }
196:
197:            /*************************************************************
198:             * The getLocale method of the HttpServletResponse must be
199:             * based on the getLocale method of the PortletRerquest.
200:             *************************************************************/
201:            public Locale getLocale() {
202:
203:                return _rResponse.getLocale();
204:            }
205:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.