public class PortletRequest extends AbstractClientRequest
| Modifier and Type | Field and Description |
|---|---|
protected javax.portlet.PortletContext |
context
The
PortletContext for this application. |
protected javax.portlet.PortletRequest |
request
The
PortletRequest for this request. |
protected RequestDelegate |
requestDelegate
The delegate to get information about parameters.
|
protected javax.portlet.PortletResponse |
response
The
PortletResponse for this request. |
protected ResponseDelegate |
responseDelegate
The delegate to get information from a response (output stream, writer, etc.).
|
FORCE_INCLUDE_ATTRIBUTE_NAMEAPPLICATION_SCOPE, REQUEST_SCOPE| Constructor and Description |
|---|
PortletRequest(ApplicationContext applicationContext,
javax.portlet.PortletContext context,
javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
RequestDelegate requestDelegate,
ResponseDelegate responseDelegate)
Creates a new instance of PortletTilesRequestContext.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doForward(String path) |
void |
doInclude(String path) |
List<String> |
getAvailableScopes() |
Map<String,Object> |
getContext(String scope) |
Map<String,String> |
getHeader() |
Map<String,String[]> |
getHeaderValues() |
OutputStream |
getOutputStream() |
Map<String,String> |
getParam() |
Map<String,String[]> |
getParamValues() |
javax.portlet.PortletContext |
getPortletContext()
Returns the portlet context.
|
Map<String,Object> |
getPortletSessionScope() |
PrintWriter |
getPrintWriter() |
javax.portlet.PortletRequest |
getRequest()
Return the
PortletRequest for this context. |
Locale |
getRequestLocale() |
Map<String,Object> |
getRequestScope() |
Addable<String> |
getResponseHeaders() |
Map<String,Object> |
getSessionScope() |
Writer |
getWriter() |
boolean |
isResponseCommitted() |
boolean |
isUserInRole(String role) |
void |
setContentType(String contentType) |
dispatch, getApplicationContext, getApplicationScope, includeisForceInclude, setForceIncludeprotected javax.portlet.PortletContext context
PortletContext for this application.protected javax.portlet.PortletRequest request
The PortletRequest for this request.
protected RequestDelegate requestDelegate
protected javax.portlet.PortletResponse response
The PortletResponse for this request.
protected ResponseDelegate responseDelegate
public PortletRequest(ApplicationContext applicationContext, javax.portlet.PortletContext context, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, RequestDelegate requestDelegate, ResponseDelegate responseDelegate)
applicationContext - The Tiles application context.context - The portlet context to use.request - The request object to use.response - The response object to use.requestDelegate - The request delegate.responseDelegate - The response delegate.public javax.portlet.PortletRequest getRequest()
Return the PortletRequest for this context.
public javax.portlet.PortletContext getPortletContext()
public Locale getRequestLocale()
public boolean isUserInRole(String role)
public OutputStream getOutputStream() throws IOException
IOExceptionpublic PrintWriter getPrintWriter() throws IOException
IOExceptionpublic Writer getWriter() throws IOException
IOExceptionpublic boolean isResponseCommitted()
public void setContentType(String contentType)
public void doForward(String path) throws IOException
doForward in class AbstractClientRequestIOExceptionpublic void doInclude(String path) throws IOException
doInclude in class AbstractClientRequestIOExceptionCopyright © 2000–2024 Apache Software Foundation. All rights reserved.