public class PortletWebRequest extends PortletRequestAttributes implements NativeWebRequest
WebRequest
adapter for a PortletRequest
.DESTRUCTION_CALLBACK_NAME_PREFIX, SCOPE_GLOBAL_SESSION
requestDestructionCallbacks
REFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_REQUEST, SCOPE_SESSION
Constructor and Description |
---|
PortletWebRequest(javax.portlet.PortletRequest request)
Create a new PortletWebRequest instance for the given request.
|
PortletWebRequest(javax.portlet.PortletRequest request,
javax.portlet.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttribute
public PortletWebRequest(javax.portlet.PortletRequest request)
request
- current portlet requestpublic PortletWebRequest(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
request
- current portlet requestresponse
- current portlet responsepublic boolean checkNotModified(long lastModifiedTimestamp)
false
.checkNotModified
in interface WebRequest
public boolean checkNotModified(String eTag)
false
.checkNotModified
in interface WebRequest
public boolean checkNotModified(String etag, long lastModifiedTimestamp)
false
.checkNotModified
in interface WebRequest
public String getContextPath()
getContextPath
in interface WebRequest
public String getDescription(boolean includeClientInfo)
getDescription
in interface WebRequest
public String getHeader(String headerName)
getHeader
in interface WebRequest
public Iterator<String> getHeaderNames()
getHeaderNames
in interface WebRequest
public String[] getHeaderValues(String headerName)
getHeaderValues
in interface WebRequest
public Locale getLocale()
getLocale
in interface WebRequest
public Object getNativeRequest()
getNativeRequest
in interface NativeWebRequest
public <T> T getNativeRequest(Class<T> requiredType)
getNativeRequest
in interface NativeWebRequest
public Object getNativeResponse()
getNativeResponse
in interface NativeWebRequest
public <T> T getNativeResponse(Class<T> requiredType)
getNativeResponse
in interface NativeWebRequest
public String getParameter(String paramName)
getParameter
in interface WebRequest
public Map<String,String[]> getParameterMap()
getParameterMap
in interface WebRequest
public Iterator<String> getParameterNames()
getParameterNames
in interface WebRequest
public String[] getParameterValues(String paramName)
getParameterValues
in interface WebRequest
public String getRemoteUser()
getRemoteUser
in interface WebRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface WebRequest
public boolean isSecure()
isSecure
in interface WebRequest
public boolean isUserInRole(String role)
isUserInRole
in interface WebRequest
public String toString()
toString
in class PortletRequestAttributes
Copyright © 2019 Liferay, Inc.. All rights reserved.