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 . |
boolean |
checkNotModified(String etag,
long lastModifiedTimestamp)
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() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
String |
toString() |
getAttribute, getAttributeNames, getRequest, getResponse, getSession, getSessionId, getSessionMutex, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributes
isRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompleted
public PortletWebRequest(PortletRequest request)
request
- current portlet requestpublic PortletWebRequest(PortletRequest request, PortletResponse response)
request
- current portlet requestresponse
- current portlet responsepublic Object getNativeRequest()
getNativeRequest
in interface org.springframework.web.context.request.NativeWebRequest
public Object getNativeResponse()
getNativeResponse
in interface org.springframework.web.context.request.NativeWebRequest
public <T> T getNativeRequest(Class<T> requiredType)
getNativeRequest
in interface org.springframework.web.context.request.NativeWebRequest
public <T> T getNativeResponse(Class<T> requiredType)
getNativeResponse
in interface org.springframework.web.context.request.NativeWebRequest
public String getHeader(String headerName)
getHeader
in interface org.springframework.web.context.request.WebRequest
public String[] getHeaderValues(String headerName)
getHeaderValues
in interface org.springframework.web.context.request.WebRequest
public Iterator<String> getHeaderNames()
getHeaderNames
in interface org.springframework.web.context.request.WebRequest
public String getParameter(String paramName)
getParameter
in interface org.springframework.web.context.request.WebRequest
public String[] getParameterValues(String paramName)
getParameterValues
in interface org.springframework.web.context.request.WebRequest
public Iterator<String> getParameterNames()
getParameterNames
in interface org.springframework.web.context.request.WebRequest
public Map<String,String[]> getParameterMap()
getParameterMap
in interface org.springframework.web.context.request.WebRequest
public Locale getLocale()
getLocale
in interface org.springframework.web.context.request.WebRequest
public String getContextPath()
getContextPath
in interface org.springframework.web.context.request.WebRequest
public String getRemoteUser()
getRemoteUser
in interface org.springframework.web.context.request.WebRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface org.springframework.web.context.request.WebRequest
public boolean isUserInRole(String role)
isUserInRole
in interface org.springframework.web.context.request.WebRequest
public boolean isSecure()
isSecure
in interface org.springframework.web.context.request.WebRequest
public boolean checkNotModified(long lastModifiedTimestamp)
false
.checkNotModified
in interface org.springframework.web.context.request.WebRequest
public boolean checkNotModified(String eTag)
false
.checkNotModified
in interface org.springframework.web.context.request.WebRequest
public boolean checkNotModified(String etag, long lastModifiedTimestamp)
false
.checkNotModified
in interface org.springframework.web.context.request.WebRequest
public String getDescription(boolean includeClientInfo)
getDescription
in interface org.springframework.web.context.request.WebRequest
public String toString()
toString
in class PortletRequestAttributes