Source Code Cross Referenced for DesktopResponse.java in  » Portal » Open-Portal » com » sun » portal » desktop » 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.desktop 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package com.sun.portal.desktop;
002:
003:        import java.util.*;
004:        import java.text.*;
005:        import java.net.*;
006:        import java.io.*;
007:        import javax.servlet.*;
008:        import javax.servlet.http.*;
009:
010:        /**
011:         * A DesktopResponse encapsulates the HttpServletResponse that is passed
012:         * to the provider, hiding and redefining those methods that are 
013:         * inappropriate to be called by a provider.
014:         */
015:
016:        class DesktopResponse extends HttpServletResponseWrapper {
017:
018:            public DesktopResponse(HttpServletResponse response) {
019:                super (response);
020:            }
021:
022:            /**
023:             * @deprecated As of version 2.1, use encodeRedirectURL(String url) instead
024:             */
025:            public String encodeRedirectUrl(String url) {
026:                return url;
027:            }
028:
029:            public String encodeRedirectURL(String url) {
030:                return url;
031:            }
032:
033:            /**
034:             * @deprecated As of version 2.1, use encodeURL(String url) instead
035:             */
036:            public String encodeUrl(String url) {
037:                return url;
038:            }
039:
040:            public String encodeURL(String url) {
041:                return url;
042:            }
043:
044:            public void sendError(int sc) {
045:                throw new UnsupportedOperationException(
046:                        "sendError is not available to providers");
047:            }
048:
049:            public void sendError(int sc, String msg) {
050:                throw new UnsupportedOperationException(
051:                        "sendError is not available to providers");
052:            }
053:
054:            public void sendRedirect(String location) throws IOException {
055:                // Please see DesktopServlet.sendRedirect
056:                setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
057:                setHeader("Location", location);
058:            }
059:
060:            /**
061:             * @deprecated As of version 2.1, due to ambiguous meaning of the message parameter. To
062:             * set a status code use setStatus(int), to send an error with a description use sendError(int,
063:             * String). Sets the status code and message for this response.
064:             */
065:            public void setStatus(int sc, String sm) {
066:                throw new UnsupportedOperationException(
067:                        "setStatus is not available to providers");
068:            }
069:
070:            /* ServletResponse methods */
071:
072:            public void flushBuffer() {
073:                // do nothing
074:            }
075:
076:            public int getBufferSize() {
077:                return 0;
078:            }
079:
080:            public ServletOutputStream getOutputStream() {
081:                throw new UnsupportedOperationException(
082:                        "getOutputStream is not available to providers");
083:
084:            }
085:
086:            public java.io.PrintWriter getWriter() {
087:                throw new UnsupportedOperationException(
088:                        "getWriter is not available to providers");
089:            }
090:
091:            public boolean isCommitted() {
092:                return false;
093:            }
094:
095:            public void reset() {
096:                throw new UnsupportedOperationException(
097:                        "reset is not available to providers");
098:            }
099:
100:            public void setBufferSize(int size) {
101:                throw new UnsupportedOperationException(
102:                        "setBufferSize is not available to providers");
103:            }
104:
105:            public void setContentLength(int len) {
106:                throw new UnsupportedOperationException(
107:                        "setContentLength is not available to providers");
108:            }
109:
110:            public void setContentType(String type) {
111:                throw new UnsupportedOperationException(
112:                        "setContentType is not available to providers");
113:            }
114:
115:            public void setLocale(Locale loc) {
116:                throw new UnsupportedOperationException(
117:                        "setLocale is not available to providers");
118:            }
119:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.