org.apache.turbine.util
Class ServletUtils
java.lang.Object
org.apache.turbine.util.ServletUtils
public class ServletUtils
- extends Object
This is where common Servlet manipulation routines should go.
- Version:
- $Id: ServletUtils.java 1073174 2011-02-21 22:18:45Z tv $
- Author:
- Gonzalo Diethelm, Henning P. Schmiedehausen
Method Summary |
static String |
expandRelative(javax.servlet.ServletConfig config,
String text)
Expands a string that points to a relative path or path list,
leaving it as an absolute path based on the servlet context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletUtils
public ServletUtils()
expandRelative
public static String expandRelative(javax.servlet.ServletConfig config,
String text)
- Expands a string that points to a relative path or path list,
leaving it as an absolute path based on the servlet context.
It will return null if the text is empty or the config object
is null.
- Parameters:
config
- The ServletConfig.text
- The String containing a path or path list.
- Returns:
- A String with the expanded path or path list.
Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.