Interface WebAppPathResolver

All Known Implementing Classes:
PrefixingPathContext, PrefixingPathRegistry, WebJarsPathContext

public interface WebAppPathResolver
Interface for resolving paths within the current webapp.
Author:
Arne Vandamme
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    path(String path)
    Resolves the requested path in the relative context of the web application.
    Creates a Spring MVC redirect for the requested path.
  • Method Details

    • path

      String path(String path)
      Resolves the requested path in the relative context of the web application. Note that this does not take the actual web application context of the container into account.
      Parameters:
      path - Original path to be resolved.
      Returns:
      Resolved path - might be modified.
    • redirect

      String redirect(String path)
      Creates a Spring MVC redirect for the requested path. This will usually apply the regular path resolving and prepend redirect: if necessary.
      Parameters:
      path - Original path for which to create a redirect.
      Returns:
      Redirect path.