public final class DMXServletUtils extends Object
Modifier and Type | Method and Description |
---|---|
static DMXServletUtils |
getInstance()
Returns singleton instance of the class.
|
File |
getPublicDir()
Returns web app public directory on the server.
|
File |
getResourcesDirectory()
Returns resources directory on the server ({app_root_dir}/resources).
|
javax.servlet.ServletContext |
getServletContext()
Returns application servlet context.
|
File |
getTemplatesDirectory()
Returns JSF templates directory on the server ({app_root_dir}/templates).
|
static void |
initialize(javax.servlet.ServletContext context)
Initializes the class.
|
public static void initialize(javax.servlet.ServletContext context)
context
- application servlet contextpublic static DMXServletUtils getInstance()
public javax.servlet.ServletContext getServletContext()
public File getResourcesDirectory()
public File getTemplatesDirectory()
public File getPublicDir()
Copyright © 2012-2014 Vektor Software. All Rights Reserved.