Class ProxyContext
- java.lang.Object
-
- org.adempiere.eclipse.equinox.http.servlet.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ProxyContext.ContextAttributes
-
Constructor Summary
Constructors Constructor Description ProxyContext(javax.servlet.ServletContext servletContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static boolean
deleteDirectory(File directory)
deleteDirectory is a convenience method to recursively delete a directoryvoid
destroy()
-
-
-
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
-
-