public class ServletRequest extends AbstractClientRequest
FORCE_INCLUDE_ATTRIBUTE_NAMEAPPLICATION_SCOPE, REQUEST_SCOPE| Constructor and Description |
|---|
ServletRequest(ApplicationContext applicationContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates a new instance of ServletTilesRequestContext.
|
| 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() |
PrintWriter |
getPrintWriter() |
javax.servlet.http.HttpServletRequest |
getRequest() |
Locale |
getRequestLocale() |
Map<String,Object> |
getRequestScope() |
javax.servlet.http.HttpServletResponse |
getResponse() |
Addable<String> |
getResponseHeaders() |
Map<String,Object> |
getSessionScope() |
Writer |
getWriter() |
boolean |
isResponseCommitted() |
boolean |
isUserInRole(String role) |
void |
setContentType(String contentType) |
dispatch, getApplicationContext, getApplicationScope, includeisForceInclude, setForceIncludepublic ServletRequest(ApplicationContext applicationContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
applicationContext - The application context.request - The request object.response - The response object.public void doForward(String path) throws IOException
doForward in class AbstractClientRequestIOExceptionpublic void doInclude(String path) throws IOException
doInclude in class AbstractClientRequestIOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionpublic Writer getWriter() throws IOException
IOExceptionpublic PrintWriter getPrintWriter() throws IOException
IOExceptionpublic boolean isResponseCommitted()
public void setContentType(String contentType)
public Locale getRequestLocale()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public boolean isUserInRole(String role)
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.