
public interface Request
| Modifier and Type | Field and Description | 
|---|---|
static String | 
APPLICATION_SCOPE
the name of the (mandatory) "application" scope 
 | 
static String | 
REQUEST_SCOPE
the name of the "request" context 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ApplicationContext | 
getApplicationContext()
Returns the associated application context. 
 | 
List<String> | 
getAvailableScopes()
Returns all available scopes. 
 | 
Map<String,Object> | 
getContext(String scope)
Returns a context map, given the scope name. 
 | 
Map<String,String> | 
getHeader()
Return an immutable Map that maps header names to the first (or only)
 header value (as a String). 
 | 
Map<String,String[]> | 
getHeaderValues()
Return an immutable Map that maps header names to the set of all values
 specified in the request (as a String array). 
 | 
OutputStream | 
getOutputStream()
Returns an output stream to be used to write directly in the response. 
 | 
Map<String,String> | 
getParam()
Return an immutable Map that maps request parameter names to the first
 (or only) value (as a String). 
 | 
Map<String,String[]> | 
getParamValues()
Return an immutable Map that maps request parameter names to the set of
 all values (as a String array). 
 | 
PrintWriter | 
getPrintWriter()
Returns a print writer to be used to write directly in the response. 
 | 
Locale | 
getRequestLocale()
Return the preferred Locale in which the client will accept content. 
 | 
Addable<String> | 
getResponseHeaders()
Return an Addable object that can be used to write headers to the response. 
 | 
Writer | 
getWriter()
Returns a writer to be used to write directly in the response. 
 | 
boolean | 
isResponseCommitted()
Checks if the response has been committed. 
 | 
boolean | 
isUserInRole(String role)
Determine whether or not the specified user is in the given role. 
 | 
static final String APPLICATION_SCOPE
static final String REQUEST_SCOPE
Map<String,String> getHeader()
Map<String,String[]> getHeaderValues()
Addable<String> getResponseHeaders()
Map<String,Object> getContext(String scope)
scope - The name of the scope.List<String> getAvailableScopes()
ApplicationContext getApplicationContext()
OutputStream getOutputStream() throws IOException
IOException - If something goes wrong when getting the output stream.Writer getWriter() throws IOException
IOException - If something goes wrong when getting the writer.PrintWriter getPrintWriter() throws IOException
IOException - If something goes wrong when getting the print
 writer.boolean isResponseCommitted()
true only if the response has been committed.Map<String,String> getParam()
Map<String,String[]> getParamValues()
Locale getRequestLocale()
org.apache.tiles.locale.LocaleResolver to implement strategies to
 resolve locales.boolean isUserInRole(String role)
role - the role to check against.true if the user is in the given role.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.