1 48 49 50 package com.caucho.portal.generic.context; 51 52 import javax.portlet.PortalContext; 53 import javax.portlet.PortletMode; 54 import javax.portlet.PortletPreferences; 55 import javax.portlet.PortletRequest; 56 import javax.portlet.PortletSession; 57 import javax.portlet.WindowState; 58 import java.util.Collections ; 59 import java.util.Enumeration ; 60 import java.util.Locale ; 61 import java.util.Map ; 62 63 class PortletRequestImpl 64 extends PortalRequestImpl 65 implements PortletRequest 66 { 67 public PortletRequestImpl(ConnectionContext context) 68 { 69 super(context); 70 } 71 72 public WindowState getWindowState() 73 { 74 return _context.getWindowState(); 75 } 76 77 public PortletMode getPortletMode() 78 { 79 return _context.getPortletMode(); 80 } 81 82 public Map getParameterMap() 83 { 84 return _context.getRenderParameterMap(); 85 } 86 87 public String getParameter(String name) 88 { 89 return _context.getRenderParameter(name); 90 } 91 92 public Enumeration getParameterNames() 93 { 94 return _context.getRenderParameterNames(); 95 } 96 97 public String [] getParameterValues(String name) 98 { 99 return _context.getRenderParameterValues(name); 100 } 101 102 public boolean isWindowStateAllowed(WindowState state) 103 { 104 return _context.isWindowStateAllowed(state); 105 } 106 107 public boolean isPortletModeAllowed(PortletMode portletMode) 108 { 109 return _context.isPortletModeAllowed(portletMode); 110 } 111 112 public Enumeration getResponseContentTypes() 113 { 114 return Collections.enumeration(_context.getResponseContentTypesSet()); 115 } 116 117 public String getResponseContentType() 118 { 119 return _context.getResponseContentType(); 120 } 121 122 public Enumeration getLocales() 123 { 124 return Collections.enumeration(_context.getResponseLocalesSet()); 125 } 126 127 public Locale getLocale() 128 { 129 return _context.getResponseLocale(); 130 } 131 132 public PortalContext getPortalContext() 133 { 134 return _context.getPortalContext(); 135 } 136 137 public PortletPreferences getPreferences() 138 { 139 return _context.getPreferences(); 140 } 141 142 public String getContextPath() 143 { 144 return _context.getContextPath(); 145 } 146 147 public String getServerName() 148 { 149 return _context.getServerName(); 150 } 151 152 public int getServerPort() 153 { 154 return _context.getServerPort(); 155 } 156 157 public String getScheme() 158 { 159 return _context.getScheme(); 160 } 161 162 public String getAuthType() 163 { 164 return _context.getAuthType(); 165 } 166 167 public boolean isSecure() 168 { 169 return _context.isSecure(); 170 } 171 172 public String getRequestedSessionId() 173 { 174 return _context.getRequestedSessionId(); 175 } 176 177 public boolean isRequestedSessionIdValid() 178 { 179 return _context.isRequestedSessionIdValid(); 180 } 181 182 public String getRemoteUser() 183 { 184 return _context.getRemoteUser(); 185 } 186 187 public java.security.Principal getUserPrincipal() 188 { 189 return _context.getUserPrincipal(); 190 } 191 192 public boolean isUserInRole(String role) 193 { 194 return _context.isUserInRole(role); 195 } 196 197 public String getProperty(String name) 198 { 199 return _context.getProperty(name); 200 } 201 202 public Enumeration getProperties(String name) 203 { 204 return _context.getProperties(name); 205 } 206 207 public Enumeration getPropertyNames() 208 { 209 return _context.getPropertyNames(); 210 } 211 212 public Enumeration getAttributeNames() 213 { 214 return _context.getAttributeNames(); 215 } 216 217 public Object getAttribute(String name) 218 { 219 return _context.getAttribute(name); 220 } 221 222 public void setAttribute(String name, Object o) 223 { 224 _context.setAttribute(name, o); 225 } 226 227 public void removeAttribute(String name) 228 { 229 _context.removeAttribute(name); 230 } 231 232 public PortletSession getPortletSession() 233 { 234 return _context.getPortletSession(); 235 } 236 237 public PortletSession getPortletSession(boolean create) 238 { 239 return _context.getPortletSession(create); 240 } 241 } 242 | Popular Tags |