|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Request
Encapsulation of request information.
| Method Summary | |
|---|---|
ApplicationContext |
getApplicationContext()
Returns the associated application context. |
List<String> |
getAvailableScopes()
Returns all available scopes, that are the ones returned by #getNativeScopes() plus derivative scopes (e.g. |
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. |
| Method Detail |
|---|
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()
#getNativeScopes() plus derivative scopes (e.g. flash scope).
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||