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 1709648 2015-10-20 17:08:10Z tv $
  Author:
    Gonzalo Diethelm, Henning P. Schmiedehausen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServletUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

- - ### Constructor Detail

    - #### ServletUtils

          public ServletUtils()

  - ### Method Detail

    - #### 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–2018 The Apache Software Foundation. All rights reserved.