Class ProxyContext


  • public class ProxyContext
    extends Object
    The ProxyContext provides something similar to a ServletContext for all servlets and resources under a particular ProxyServlet. In particular it holds and represent the concept of "context path" through the Proxy Servlets servlet path. The Http Service also requires a ServletContext namespaced by each individual HttpContext. The ProxyContext provides support for the attribute map of a ServletContext again namespaced by HttpContext as specified in the Http Service specification. The ContextAttributes are reference counted so that when the HttpContext is no longer referenced the associated context attributes can be garbage collected and the context temp dir deleteted.
    • Constructor Detail

      • ProxyContext

        public ProxyContext​(javax.servlet.ServletContext servletContext)
    • Method Detail

      • destroy

        public void destroy()
      • deleteDirectory

        protected static boolean deleteDirectory​(File directory)
        deleteDirectory is a convenience method to recursively delete a directory
        Parameters:
        directory - - the directory to delete.
        Returns:
        was the delete succesful