Interface LocationHeaderAdjuster


@ConsumerType public interface LocationHeaderAdjuster
This service interface provides a hook into the RedirectFilter, and allow for further adjustment of the Location header
  • Method Summary

    Modifier and Type
    Method
    Description
    adjust(org.apache.sling.api.SlingHttpServletRequest request, String location)
    Allows for custom adjustment of the Location header after its been parsed and resourceResolver.map(..)'d, but before it's been dispatched.
  • Method Details

    • adjust

      String adjust(org.apache.sling.api.SlingHttpServletRequest request, String location)
      Allows for custom adjustment of the Location header after its been parsed and resourceResolver.map(..)'d, but before it's been dispatched.
      Parameters:
      request - the request
      location - the Location header passed through resourceResolver.map(..)
      Returns:
      the location to try to resolve