Class ServletTilesApplicationContext

  • All Implemented Interfaces:
    org.apache.tiles.TilesApplicationContext

    public class ServletTilesApplicationContext
    extends Object
    implements org.apache.tiles.TilesApplicationContext
    Servlet-based implementation of the TilesApplicationContext interface.
    Version:
    $Rev$ $Date$
    • Constructor Detail

      • ServletTilesApplicationContext

        public ServletTilesApplicationContext​(javax.servlet.ServletContext servletContext)
        Creates a new instance of ServletTilesApplicationContext.
        Parameters:
        servletContext - The servlet context to use.
    • Method Detail

      • getContext

        public Object getContext()
        Specified by:
        getContext in interface org.apache.tiles.TilesApplicationContext
      • getApplicationScope

        public Map<String,​Object> getApplicationScope()
        Specified by:
        getApplicationScope in interface org.apache.tiles.TilesApplicationContext
      • getInitParams

        public Map<String,​String> getInitParams()
        Specified by:
        getInitParams in interface org.apache.tiles.TilesApplicationContext
      • getResource

        public URL getResource​(String path)
                        throws IOException
        Specified by:
        getResource in interface org.apache.tiles.TilesApplicationContext
        Throws:
        IOException
      • getResources

        public Set<URL> getResources​(String path)
                              throws IOException
        Specified by:
        getResources in interface org.apache.tiles.TilesApplicationContext
        Throws:
        IOException
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Deprecated.
        Returns the servlet context.
        Returns:
        The servlet context.
      • initialize

        public void initialize​(javax.servlet.ServletContext context)

        Initialize (or reinitialize) this TilesApplicationContext instance for the specified Servlet API objects.

        Parameters:
        context - The ServletContext for this web application
      • release

        public void release()

        Release references to allocated resources acquired in initialize() of via subsequent processing. After this method is called, subsequent calls to any other method than initialize() will return undefined results.

      • createRequestContext

        public org.apache.tiles.context.TilesRequestContext createRequestContext​(Object request,
                                                                                 Object response)
        Deprecated.
        Use TilesRequestContextFactory.createRequestContext(TilesApplicationContext, Object...) .
        Creates a servlet context for a given request/response pair.
        Parameters:
        request - The request object.
        response - The response object.
        Returns:
        The corresponding Tiles request context.