|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TilesRequestContext
Encapsulation of request information.
Method Summary | |
---|---|
void |
dispatch(java.lang.String path)
Dispatches the request to a specified path. |
java.util.Map<java.lang.String,java.lang.String> |
getHeader()
Return an immutable Map that maps header names to the first (or only) header value (as a String). |
java.util.Map<java.lang.String,java.lang.String[]> |
getHeaderValues()
Return an immutable Map that maps header names to the set of all values specified in the request (as a String array). |
java.util.Map<java.lang.String,java.lang.String> |
getParam()
Return an immutable Map that maps request parameter names to the first (or only) value (as a String). |
java.util.Map<java.lang.String,java.lang.String[]> |
getParamValues()
Return an immutable Map that maps request parameter names to the set of all values (as a String array). |
java.lang.Object |
getRequest()
Get the underlying request. |
java.util.Locale |
getRequestLocale()
Return the preferred Locale in which the client will accept content. |
java.util.Map<java.lang.String,java.lang.Object> |
getRequestScope()
Return a mutable Map that maps request scope attribute names to their values. |
java.lang.Object |
getResponse()
Get the underlying response. |
java.util.Map<java.lang.String,java.lang.Object> |
getSessionScope()
Return a mutable Map that maps session scope attribute names to their values. |
void |
include(java.lang.String path)
Includes the response from the specified URL in the current response output. |
boolean |
isUserInRole(java.lang.String role)
Determine whether or not the specified user is in the given role. |
Method Detail |
---|
java.util.Map<java.lang.String,java.lang.String> getHeader()
java.util.Map<java.lang.String,java.lang.String[]> getHeaderValues()
java.util.Map<java.lang.String,java.lang.Object> getRequestScope()
java.util.Map<java.lang.String,java.lang.Object> getSessionScope()
void dispatch(java.lang.String path) throws java.io.IOException
path
- The path to dispatch to.
java.io.IOException
- If something goes wrong during dispatching.void include(java.lang.String path) throws java.io.IOException
path
- The path to include.
java.io.IOException
- If something goes wrong during inclusion.java.util.Map<java.lang.String,java.lang.String> getParam()
java.util.Map<java.lang.String,java.lang.String[]> getParamValues()
java.util.Locale getRequestLocale()
LocaleResolver
to implement strategies to
resolve locales.boolean isUserInRole(java.lang.String role)
role
- the role to check against.
true
if the user is in the given role.java.lang.Object getRequest()
java.lang.Object getResponse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |