Package org.apache.tiles.request.jsp
Class JspRequest
java.lang.Object
org.apache.tiles.request.AbstractRequest
org.apache.tiles.request.DispatchRequestWrapper
org.apache.tiles.request.AbstractViewRequest
org.apache.tiles.request.jsp.JspRequest
- All Implemented Interfaces:
- DispatchRequest,- Request,- RequestWrapper
Context implementation used for executing tiles within a jsp tag library.
- 
Field SummaryFields inherited from class org.apache.tiles.request.AbstractRequestFORCE_INCLUDE_ATTRIBUTE_NAMEFields inherited from interface org.apache.tiles.request.RequestAPPLICATION_SCOPE, REQUEST_SCOPE
- 
Constructor SummaryConstructorsConstructorDescriptionJspRequest(DispatchRequest enclosedRequest, jakarta.servlet.jsp.PageContext pageContext) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionstatic JspRequestcreateServletJspRequest(ApplicationContext applicationContext, jakarta.servlet.jsp.PageContext pageContext) Creates a JSP request.protected voidIncludes the result.Returns the application scope.Returns all available scopes.getContext(String scope) Returns a context map, given the scope name.Returns the page scope.Returns a print writer to be used to write directly in the response.Returns the request scope.Returns the session scope.Returns a writer to be used to write directly in the response.Methods inherited from class org.apache.tiles.request.AbstractViewRequestdispatch, includeMethods inherited from class org.apache.tiles.request.DispatchRequestWrappergetApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestLocale, getResponseHeaders, getWrappedRequest, isResponseCommitted, isUserInRole, setContentTypeMethods inherited from class org.apache.tiles.request.AbstractRequestisForceInclude, setForceInclude
- 
Constructor Details- 
JspRequestConstructor.- Parameters:
- enclosedRequest- The request that is wrapped here.
- pageContext- The page context to use.
 
 
- 
- 
Method Details- 
createServletJspRequestpublic static JspRequest createServletJspRequest(ApplicationContext applicationContext, jakarta.servlet.jsp.PageContext pageContext) Creates a JSP request.- Parameters:
- applicationContext- The application context.
- pageContext- The page context.
- Returns:
- A new JSP request.
 
- 
getAvailableScopesDescription copied from class:DispatchRequestWrapperReturns all available scopes. The scopes are ordered according to their lifetime, the innermost, shorter lived scope appears first, and the outermost, longer lived scope appears last. Besides, the scopes "request" and "application" always included in the list.- Specified by:
- getAvailableScopesin interface- Request
- Overrides:
- getAvailableScopesin class- DispatchRequestWrapper
- Returns:
- All the available scopes.
 
- 
doIncludeIncludes the result. By default, uses the wrapped request for the inclusion.- Overrides:
- doIncludein class- AbstractViewRequest
- Parameters:
- path- The path whose result will be included.
- Throws:
- IOException- If something goes wrong.
 
- 
getPrintWriterReturns a print writer to be used to write directly in the response.- Specified by:
- getPrintWriterin interface- Request
- Overrides:
- getPrintWriterin class- DispatchRequestWrapper
- Returns:
- The print writer that writes in the response.
 
- 
getWriterReturns a writer to be used to write directly in the response.- Specified by:
- getWriterin interface- Request
- Overrides:
- getWriterin class- DispatchRequestWrapper
- Returns:
- The writer that writes in the response.
 
- 
getPageScopeReturns the page scope.- Returns:
- The page scope.
 
- 
getRequestScopeReturns the request scope.- Returns:
- The request scope.
 
- 
getSessionScopeReturns the session scope.- Returns:
- The session scope.
 
- 
getApplicationScopeReturns the application scope.- Returns:
- The application scope.
 
- 
getContextDescription copied from class:DispatchRequestWrapperReturns a context map, given the scope name. This method always return a map for all the scope names returned by getAvailableScopes(). That map may be writable, or immutable, depending on the implementation.- Specified by:
- getContextin interface- Request
- Overrides:
- getContextin class- DispatchRequestWrapper
- Parameters:
- scope- The name of the scope.
- Returns:
- The context.
 
 
-