Home » tiles-2.2.1-src » org.apache » tiles » context » [javadoc | source]
org.apache.tiles.context
public interface: TilesRequestContext [javadoc | source]

All Known Implementing Classes:
    JspTilesRequestContext, TilesRequestContextWrapper, PortletTilesRequestContext, ServletTilesRequestContext, VelocityTilesRequestContext, FreeMarkerTilesRequestContext

Encapsulation of request information.
Method from org.apache.tiles.context.TilesRequestContext Summary:
dispatch,   getApplicationContext,   getHeader,   getHeaderValues,   getOutputStream,   getParam,   getParamValues,   getPrintWriter,   getRequest,   getRequestLocale,   getRequestObjects,   getRequestScope,   getResponse,   getSessionScope,   getWriter,   include,   isResponseCommitted,   isUserInRole,   setContentType
Method from org.apache.tiles.context.TilesRequestContext Detail:
 public  void dispatch(String path) throws IOException
    Dispatches the request to a specified path.
 public TilesApplicationContext getApplicationContext()
    Returns the associated application context.
 public Map<String, String> getHeader()
    Return an immutable Map that maps header names to the first (or only) header value (as a String).
 public 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). Header names must be matched in a case-insensitive manner.
 public OutputStream getOutputStream() throws IOException
    Returns an output stream to be used to write directly in the response.
 public Map<String, String> getParam()
    Return an immutable Map that maps request parameter names to the first (or only) value (as a String).
 public Map<String, String> getParamValues()
    Return an immutable Map that maps request parameter names to the set of all values (as a String array).
 public PrintWriter getPrintWriter() throws IOException
    Returns a print writer to be used to write directly in the response.
 public Object getRequest()Deprecated! Use -  #getRequestObjects() .

    Get the underlying request.
 public Locale getRequestLocale()
    Return the preferred Locale in which the client will accept content.
 public Object[] getRequestObjects()
    Returns the original request objects used to create this request.
 public Map<String, Object> getRequestScope()
    Return a mutable Map that maps request scope attribute names to their values.
 public Object getResponse()Deprecated! Use -  #getRequestObjects() .

    Get the underlying response.
 public Map<String, Object> getSessionScope()
    Return a mutable Map that maps session scope attribute names to their values.
 public Writer getWriter() throws IOException
    Returns a writer to be used to write directly in the response.
 public  void include(String path) throws IOException
    Includes the response from the specified URL in the current response output.
 public boolean isResponseCommitted()
    Checks if the response has been committed.
 public boolean isUserInRole(String role)
    Determine whether or not the specified user is in the given role.
 public  void setContentType(String contentType)
    Sets the content type when rendering the result.