com.wewebu.ow.server.servlets
Class OwServletBaseInitializer

java.lang.Object
  extended by com.wewebu.ow.server.servlets.OwServletBaseInitializer
All Implemented Interfaces:
OwBaseInitializer

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

Since:
4.0.0.0

Constructor Summary
OwServletBaseInitializer(javax.servlet.ServletContext servletContext)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwServletBaseInitializer

public OwServletBaseInitializer(javax.servlet.ServletContext servletContext)
Method Detail

getBasePath

public String getBasePath()
Description copied from interface: OwBaseInitializer
get the base path to the application

Specified by:
getBasePath in interface OwBaseInitializer
Returns:
String

getInitParameter

public String getInitParameter(String strParamName_p)
Description copied from interface: OwBaseInitializer
get a parameter from the web.xml config file

Specified by:
getInitParameter in interface OwBaseInitializer
Parameters:
strParamName_p - Name of the requested parameter
Returns:
parameter value, of null if not set.

getXMLConfigDoc

public InputStream getXMLConfigDoc(String strName_p)
Description copied from interface: OwBaseInitializer
loads a XML Document either from local file, external file or from a JNDI context

Specified by:
getXMLConfigDoc in interface OwBaseInitializer
Parameters:
strName_p - Name of the resource to look for
Returns:
OwXMLUtil wrapped DOM Node, or null if not found

getConfigURL

public URL getConfigURL(String strName_p)
                 throws Exception
Description copied from interface: OwBaseInitializer
get the URL to the configuration file

Specified by:
getConfigURL in interface OwBaseInitializer
Parameters:
strName_p - Name of the resource to look for
Returns:
URL of the configuration file
Throws:
Exception

getApplicationAttribute

public Object getApplicationAttribute(String key_p)
Description copied from interface: OwBaseInitializer
get a attribute from the application scope

Specified by:
getApplicationAttribute in interface OwBaseInitializer
Returns:
an Object

setApplicationAttribute

public Object setApplicationAttribute(String key_p,
                                      Object object_p)
Description copied from interface: OwBaseInitializer
set a attribute from the application scope

Specified by:
setApplicationAttribute in interface OwBaseInitializer
Returns:
the previous object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.