com.wewebu.ow.server.servlets
Class OwServerContext

java.lang.Object
  extended by com.wewebu.ow.server.servlets.OwServerContext

public class OwServerContext
extends Object

This class is used to access the content of the ServletContext. Here you can implement some mutator methods. You can find an instance of this class in the ServletContext under the attribute named ATT_NAME.

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:
2.5.2.0

Field Summary
static String ATT_NAME
          key to store the server context as attribute in the session context
 
Method Summary
static OwServerContext from(javax.servlet.ServletContext servletContext_p)
           
 String getInitParameter(String strParamName_p)
          get a parameter from the web.xml config file
 String getResourceFilePath()
          get the OwResourceFilePath param for distributed deployment or to handle multiple configurations
 void setResourceFilePath(String resourceFilePath_p)
          set the OwResourceFilePath param for distributed deployment or to handle multiple configurations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATT_NAME

public static final String ATT_NAME
key to store the server context as attribute in the session context

See Also:
Constant Field Values
Method Detail

from

public static OwServerContext from(javax.servlet.ServletContext servletContext_p)

getResourceFilePath

public String getResourceFilePath()
get the OwResourceFilePath param for distributed deployment or to handle multiple configurations

Returns:
String

setResourceFilePath

public void setResourceFilePath(String resourceFilePath_p)
set the OwResourceFilePath param for distributed deployment or to handle multiple configurations

Parameters:
resourceFilePath_p -

getInitParameter

public String getInitParameter(String strParamName_p)
get a parameter from the web.xml config file

Parameters:
strParamName_p - Name of the requested parameter
Returns:
parameter value, of null if not set.


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.