public class OwServletBaseInitializer extends Object implements OwBaseInitializer
Initializer implementation for ServletContext based environments
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor and Description |
|---|
OwServletBaseInitializer(javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getApplicationAttribute(String key_p)
get a attribute from the application scope
|
String |
getBasePath()
get the base path to the application
|
URL |
getConfigURL(String strName_p)
get the URL to the configuration file
|
String |
getInitParameter(String strParamName_p)
get a parameter from the web.xml config file
|
InputStream |
getXMLConfigDoc(String strName_p)
loads a XML Document either from local file, external file or from a JNDI context
|
Object |
setApplicationAttribute(String key_p,
Object object_p)
set a attribute from the application scope
|
public OwServletBaseInitializer(javax.servlet.ServletContext servletContext)
public String getBasePath()
OwBaseInitializergetBasePath in interface OwBaseInitializerpublic String getInitParameter(String strParamName_p)
OwBaseInitializergetInitParameter in interface OwBaseInitializerstrParamName_p - Name of the requested parameterpublic InputStream getXMLConfigDoc(String strName_p)
OwBaseInitializergetXMLConfigDoc in interface OwBaseInitializerstrName_p - Name of the resource to look forpublic URL getConfigURL(String strName_p) throws Exception
OwBaseInitializergetConfigURL in interface OwBaseInitializerstrName_p - Name of the resource to look forExceptionpublic Object getApplicationAttribute(String key_p)
OwBaseInitializergetApplicationAttribute in interface OwBaseInitializerObjectpublic Object setApplicationAttribute(String key_p, Object object_p)
OwBaseInitializersetApplicationAttribute in interface OwBaseInitializerCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.