1 package org.portletbridge.portlet;
2
3 import java.security.Principal;
4 import java.util.Enumeration;
5 import java.util.Locale;
6 import java.util.Map;
7
8 import javax.portlet.PortalContext;
9 import javax.portlet.PortletMode;
10 import javax.portlet.PortletPreferences;
11 import javax.portlet.PortletSession;
12 import javax.portlet.RenderRequest;
13 import javax.portlet.WindowState;
14
15 public class PseudoRenderRequest implements RenderRequest {
16
17 private String contextPath;
18
19 public PseudoRenderRequest(String contextPath) {
20 this.contextPath = contextPath;
21 }
22
23 public boolean isWindowStateAllowed(WindowState arg0) {
24 throw new UnsupportedOperationException();
25 }
26
27 public boolean isPortletModeAllowed(PortletMode arg0) {
28 throw new UnsupportedOperationException();
29 }
30
31 public PortletMode getPortletMode() {
32 throw new UnsupportedOperationException();
33 }
34
35 public WindowState getWindowState() {
36 throw new UnsupportedOperationException();
37 }
38
39 public PortletPreferences getPreferences() {
40 throw new UnsupportedOperationException();
41 }
42
43 public PortletSession getPortletSession() {
44 throw new UnsupportedOperationException();
45 }
46
47 public PortletSession getPortletSession(boolean arg0) {
48 throw new UnsupportedOperationException();
49 }
50
51 public String getProperty(String arg0) {
52 throw new UnsupportedOperationException();
53 }
54
55 public Enumeration getProperties(String arg0) {
56 throw new UnsupportedOperationException();
57 }
58
59 public Enumeration getPropertyNames() {
60 throw new UnsupportedOperationException();
61 }
62
63 public PortalContext getPortalContext() {
64 throw new UnsupportedOperationException();
65 }
66
67 public String getAuthType() {
68 throw new UnsupportedOperationException();
69 }
70
71 public String getContextPath() {
72 return contextPath;
73 }
74
75 public String getRemoteUser() {
76
77 return null;
78 }
79
80 public Principal getUserPrincipal() {
81
82 return null;
83 }
84
85 public boolean isUserInRole(String arg0) {
86
87 return false;
88 }
89
90 public Object getAttribute(String arg0) {
91
92 return null;
93 }
94
95 public Enumeration getAttributeNames() {
96
97 return null;
98 }
99
100 public String getParameter(String arg0) {
101
102 return null;
103 }
104
105 public Enumeration getParameterNames() {
106
107 return null;
108 }
109
110 public String[] getParameterValues(String arg0) {
111
112 return null;
113 }
114
115 public Map getParameterMap() {
116
117 return null;
118 }
119
120 public boolean isSecure() {
121
122 return false;
123 }
124
125 public void setAttribute(String arg0, Object arg1) {
126
127
128 }
129
130 public void removeAttribute(String arg0) {
131
132
133 }
134
135 public String getRequestedSessionId() {
136
137 return null;
138 }
139
140 public boolean isRequestedSessionIdValid() {
141
142 return false;
143 }
144
145 public String getResponseContentType() {
146
147 return null;
148 }
149
150 public Enumeration getResponseContentTypes() {
151
152 return null;
153 }
154
155 public Locale getLocale() {
156
157 return null;
158 }
159
160 public Enumeration getLocales() {
161
162 return null;
163 }
164
165 public String getScheme() {
166
167 return null;
168 }
169
170 public String getServerName() {
171
172 return null;
173 }
174
175 public int getServerPort() {
176
177 return 0;
178 }
179
180 }