org.apache.jetspeed.engine.servlet
Class ServletHelper

java.lang.Object
  extended by org.apache.jetspeed.engine.servlet.ServletHelper

public class ServletHelper
extends Object

Servlet Helper functions

Version:
$Id: ServletHelper.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Sean Taylor

Field Summary
static String CONFIG_NAMESPACE
           
static String LOGGING_ROOT
           
static String LOGGING_ROOT_DEFAULT
          Default Value for the Logging Directory, relative to the webroot
 
Constructor Summary
ServletHelper()
           
 
Method Summary
static void createRuntimeDirectories(javax.servlet.ServletContext context, javax.servlet.ServletConfig config)
          Create any directories that might be needed during
static String findInitParameter(javax.servlet.ServletContext context, javax.servlet.ServletConfig config, String name, String defaultValue)
          Finds the specified servlet configuration/initialization parameter, looking first for a servlet-specific parameter, then for a global parameter, and using the provided default if not found.
static String getRealPath(javax.servlet.ServletConfig config, String path)
          Used to get the real path of configuration and resource information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_NAMESPACE

public static final String CONFIG_NAMESPACE
See Also:
Constant Field Values

LOGGING_ROOT_DEFAULT

public static final String LOGGING_ROOT_DEFAULT
Default Value for the Logging Directory, relative to the webroot

See Also:
Constant Field Values

LOGGING_ROOT

public static final String LOGGING_ROOT
See Also:
Constant Field Values
Constructor Detail

ServletHelper

public ServletHelper()
Method Detail

getRealPath

public static String getRealPath(javax.servlet.ServletConfig config,
                                 String path)
Used to get the real path of configuration and resource information.

Parameters:
path - path translated to the application root
Returns:
the real path

findInitParameter

public static final String findInitParameter(javax.servlet.ServletContext context,
                                             javax.servlet.ServletConfig config,
                                             String name,
                                             String defaultValue)
Finds the specified servlet configuration/initialization parameter, looking first for a servlet-specific parameter, then for a global parameter, and using the provided default if not found.


createRuntimeDirectories

public static void createRuntimeDirectories(javax.servlet.ServletContext context,
                                            javax.servlet.ServletConfig config)
                                     throws javax.servlet.ServletException
Create any directories that might be needed during

Throws:
javax.servlet.ServletException


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.