类 ForwardedHeaderFilter.ForwardedPrefixExtractor
java.lang.Object
cn.taketoday.web.servlet.filter.ForwardedHeaderFilter.ForwardedPrefixExtractor
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).
-
字段概要
字段 -
构造器概要
构造器构造器说明ForwardedPrefixExtractor(Supplier<HttpServletRequest> delegateRequest, String baseUrl) Constructor with required information. -
方法概要
修饰符和类型方法说明private static StringinitForwardedPrefix(HttpServletRequest request) private Stringprivate Stringprivate void
-
字段详细资料
-
delegate
-
baseUrl
-
actualRequestUri
-
forwardedPrefix
-
requestUri
-
requestUrl
-
-
构造器详细资料
-
ForwardedPrefixExtractor
Constructor with required information.- 参数:
delegateRequest- supplier for the currentdelegate requestwhich may change during a forward (e.g. Tomcat.baseUrl- the host, scheme, and port based on forwarded headers
-
-
方法详细资料
-
initForwardedPrefix
-
initRequestUri
-
initRequestUrl
-
getContextPath
-
getRequestUri
-
getRequestUrl
-
recalculatePathsIfNecessary
private void recalculatePathsIfNecessary()
-