Package org.nuxeo.ecm.webengine
Class WebEngine
java.lang.Object
org.nuxeo.ecm.webengine.WebEngine
- All Implemented Interfaces:
ResourceLocator
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnnotationManager
protected HashMap<String,
WebEngineModule> protected boolean
protected boolean
protected ModuleManager
moduleMgr use double-check idiom and needs to be volatile.protected final ResourceRegistry
protected final RenderingEngine
protected final File
protected final Scripting
static final String
protected String
protected final WebLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addResourceBinding
(ResourceBinding binding) Deprecated.resources are deprecated - you should use a jax-rs application to declare more resources.void
static WebContext
Deprecated.resources are deprecated - you should use a jax-rs application to declare more resources.getMimeType
(String ext) getModule
(String name, WebContext context) protected ModuleConfiguration
getModuleFromPath
(String rootPath, String path) Deprecated.getResourceFile
(String key) Get a file resource given a keygetResourceURL
(String key) Gets an URL resource given a keyvoid
initJspRequestSupport
(javax.servlet.GenericServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) boolean
isDirty()
Class<?>
void
loadJspTaglib
(javax.servlet.GenericServlet servlet) JSP taglib supportvoid
registerRenderingExtension
(String id, Object obj) void
reload()
Reloads configuration.void
void
removeResourceBinding
(ResourceBinding binding) Deprecated.resources are deprecated - you should use a jax-rs application to declare more resources.void
setDirty
(boolean dirty) void
setSkinPathPrefix
(String skinPathPrefix) void
start()
void
stop()
boolean
void
-
Field Details
-
SKIN_PATH_PREFIX_KEY
- See Also:
-
mimeTypes
-
root
-
apps
-
moduleMgr
moduleMgr use double-check idiom and needs to be volatile. See http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html -
scripting
-
rendering
-
env
-
devMode
protected boolean devMode -
annoMgr
-
registry
-
skinPathPrefix
-
webLoader
-
isDirty
protected volatile boolean isDirty
-
-
Constructor Details
-
WebEngine
-
WebEngine
-
-
Method Details
-
getActiveContext
-
loadJspTaglib
public void loadJspTaglib(javax.servlet.GenericServlet servlet) JSP taglib support -
initJspRequestSupport
public void initJspRequestSupport(javax.servlet.GenericServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
getWebLoader
-
setSkinPathPrefix
-
getSkinPathPrefix
-
getRegistry
Deprecated. -
loadClass
- Throws:
ClassNotFoundException
-
getMimeType
-
getAnnotationManager
-
registerRenderingExtension
-
unregisterRenderingExtension
-
getEnvironment
-
getScripting
-
getApplications
-
addApplication
-
getModuleManager
-
getModule
-
getRootDirectory
-
getDeploymentDirectory
-
getModulesDirectory
-
getRendering
-
addResourceBinding
Deprecated.resources are deprecated - you should use a jax-rs application to declare more resources.Manage jax-rs root resource bindings -
removeResourceBinding
Deprecated.resources are deprecated - you should use a jax-rs application to declare more resources. -
getBindings
Deprecated.resources are deprecated - you should use a jax-rs application to declare more resources. -
setDirty
public void setDirty(boolean dirty) -
tryReload
public boolean tryReload() -
isDirty
public boolean isDirty() -
flushCache
public void flushCache() -
reload
public void reload()Reloads configuration. -
reloadModules
public void reloadModules() -
start
public void start() -
stop
public void stop() -
getModuleFromPath
-
getResourceURL
Description copied from interface:ResourceLocator
Gets an URL resource given a key- Specified by:
getResourceURL
in interfaceResourceLocator
- Parameters:
key
- the resource key- Returns:
- the resource URL or null if no such result was found
-
getResourceFile
Description copied from interface:ResourceLocator
Get a file resource given a key- Specified by:
getResourceFile
in interfaceResourceLocator
-