public class PortletWebRequest extends PortletRequestAttributes implements org.springframework.web.context.request.NativeWebRequest
WebRequest adapter
for a PortletRequest.DESTRUCTION_CALLBACK_NAME_PREFIX| Constructor and Description |
|---|
PortletWebRequest(PortletRequest request)
Create a new PortletWebRequest instance for the given request.
|
PortletWebRequest(PortletRequest request,
PortletResponse response)
Create a new PortletWebRequest instance for the given request/response pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkNotModified(long lastModifiedTimestamp)
Last-modified handling not supported for portlet requests:
As a consequence, this method always returns
false. |
boolean |
checkNotModified(String eTag)
Last-modified handling not supported for portlet requests:
As a consequence, this method always returns
false. |
String |
getContextPath() |
String |
getDescription(boolean includeClientInfo) |
String |
getHeader(String headerName) |
Iterator<String> |
getHeaderNames() |
String[] |
getHeaderValues(String headerName) |
Locale |
getLocale() |
Object |
getNativeRequest() |
<T> T |
getNativeRequest(Class<T> requiredType) |
Object |
getNativeResponse() |
<T> T |
getNativeResponse(Class<T> requiredType) |
String |
getParameter(String paramName) |
Map<String,String[]> |
getParameterMap() |
Iterator<String> |
getParameterNames() |
String[] |
getParameterValues(String paramName) |
String |
getRemoteUser() |
PortletResponse |
getResponse()
Exposes the native
PortletResponse that we're wrapping (if any). |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
String |
toString() |
getAttribute, getAttributeNames, getRequest, getSession, getSessionId, getSessionMutex, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributesisRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompletedpublic PortletWebRequest(PortletRequest request)
request - current portlet requestpublic PortletWebRequest(PortletRequest request, PortletResponse response)
request - current portlet requestresponse - current portlet responsepublic final PortletResponse getResponse()
PortletResponse that we're wrapping (if any).public Object getNativeRequest()
getNativeRequest in interface org.springframework.web.context.request.NativeWebRequestpublic Object getNativeResponse()
getNativeResponse in interface org.springframework.web.context.request.NativeWebRequestpublic <T> T getNativeRequest(Class<T> requiredType)
getNativeRequest in interface org.springframework.web.context.request.NativeWebRequestpublic <T> T getNativeResponse(Class<T> requiredType)
getNativeResponse in interface org.springframework.web.context.request.NativeWebRequestpublic String getHeader(String headerName)
getHeader in interface org.springframework.web.context.request.WebRequestpublic String[] getHeaderValues(String headerName)
getHeaderValues in interface org.springframework.web.context.request.WebRequestpublic Iterator<String> getHeaderNames()
getHeaderNames in interface org.springframework.web.context.request.WebRequestpublic String getParameter(String paramName)
getParameter in interface org.springframework.web.context.request.WebRequestpublic String[] getParameterValues(String paramName)
getParameterValues in interface org.springframework.web.context.request.WebRequestpublic Iterator<String> getParameterNames()
getParameterNames in interface org.springframework.web.context.request.WebRequestpublic Map<String,String[]> getParameterMap()
getParameterMap in interface org.springframework.web.context.request.WebRequestpublic Locale getLocale()
getLocale in interface org.springframework.web.context.request.WebRequestpublic String getContextPath()
getContextPath in interface org.springframework.web.context.request.WebRequestpublic String getRemoteUser()
getRemoteUser in interface org.springframework.web.context.request.WebRequestpublic Principal getUserPrincipal()
getUserPrincipal in interface org.springframework.web.context.request.WebRequestpublic boolean isUserInRole(String role)
isUserInRole in interface org.springframework.web.context.request.WebRequestpublic boolean isSecure()
isSecure in interface org.springframework.web.context.request.WebRequestpublic boolean checkNotModified(long lastModifiedTimestamp)
false.checkNotModified in interface org.springframework.web.context.request.WebRequestpublic boolean checkNotModified(String eTag)
false.checkNotModified in interface org.springframework.web.context.request.WebRequestpublic String getDescription(boolean includeClientInfo)
getDescription in interface org.springframework.web.context.request.WebRequestpublic String toString()
toString in class PortletRequestAttributes