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()
OwBaseInitializer
getBasePath
in interface OwBaseInitializer
public String getInitParameter(String strParamName_p)
OwBaseInitializer
getInitParameter
in interface OwBaseInitializer
strParamName_p
- Name of the requested parameterpublic InputStream getXMLConfigDoc(String strName_p)
OwBaseInitializer
getXMLConfigDoc
in interface OwBaseInitializer
strName_p
- Name of the resource to look forpublic URL getConfigURL(String strName_p) throws Exception
OwBaseInitializer
getConfigURL
in interface OwBaseInitializer
strName_p
- Name of the resource to look forException
public Object getApplicationAttribute(String key_p)
OwBaseInitializer
getApplicationAttribute
in interface OwBaseInitializer
Object
public Object setApplicationAttribute(String key_p, Object object_p)
OwBaseInitializer
setApplicationAttribute
in interface OwBaseInitializer
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.