类 ServletUriComponentsBuilder

  • 所有已实现的接口:
    Cloneable

    public class ServletUriComponentsBuilder
    extends UriComponentsBuilder
    UriComponentsBuilder with additional static factory methods to create links based on the current HttpServletRequest.

    Note: This class uses values from "Forwarded" (RFC 7239), "X-Forwarded-Host", "X-Forwarded-Port", and "X-Forwarded-Proto" headers, if present, in order to reflect the client-originated protocol and address. Consider using the ForwardedHeaderFilter in order to choose from a central place whether to extract and use, or to discard such headers. See the Spring Framework reference for more on this filter.

    从以下版本开始:
    3.1
    作者:
    Rossen Stoyanchev