Package 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$
- Author:
- Gonzalo Diethelm, Henning P. Schmiedehausen
-
-
Constructor Summary
Constructors Constructor Description ServletUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
expandRelative(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.
-
-
-
Constructor Detail
-
ServletUtils
public ServletUtils()
-
-
Method Detail
-
expandRelative
public static String expandRelative(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.
-
-