类 ForwardedHeaderFilter.ForwardedPrefixExtractor

java.lang.Object
cn.taketoday.web.servlet.filter.ForwardedHeaderFilter.ForwardedPrefixExtractor
封闭类:
ForwardedHeaderFilter

private static class ForwardedHeaderFilter.ForwardedPrefixExtractor extends Object
Responsible for the contextPath, requestURI, and requestURL with forwarded headers in mind, and also taking into account changes to the path of the underlying delegate request (e.g. on a Servlet FORWARD).
  • 字段详细资料

    • delegate

      private final Supplier<HttpServletRequest> delegate
    • baseUrl

      private final String baseUrl
    • actualRequestUri

      private String actualRequestUri
    • forwardedPrefix

      @Nullable private final String forwardedPrefix
    • requestUri

      @Nullable private String requestUri
    • requestUrl

      private String requestUrl
  • 构造器详细资料

    • ForwardedPrefixExtractor

      public ForwardedPrefixExtractor(Supplier<HttpServletRequest> delegateRequest, String baseUrl)
      Constructor with required information.
      参数:
      delegateRequest - supplier for the current delegate request which may change during a forward (e.g. Tomcat.
      baseUrl - the host, scheme, and port based on forwarded headers
  • 方法详细资料

    • initForwardedPrefix

      @Nullable private static String initForwardedPrefix(HttpServletRequest request)
    • initRequestUri

      @Nullable private String initRequestUri()
    • initRequestUrl

      private String initRequestUrl()
    • getContextPath

      public String getContextPath()
    • getRequestUri

      public String getRequestUri()
    • getRequestUrl

      public StringBuffer getRequestUrl()
    • recalculatePathsIfNecessary

      private void recalculatePathsIfNecessary()