类 HttpHeaderInterceptor

  • 所有已实现的接口:
    org.springframework.http.client.ClientHttpRequestInterceptor

    public class HttpHeaderInterceptor
    extends Object
    implements org.springframework.http.client.ClientHttpRequestInterceptor
    ClientHttpRequestInterceptor to populate arbitrary HTTP headers with a value. For example, it might be used to provide an X-AUTH-TOKEN and value for security purposes.
    从以下版本开始:
    1.3.0
    • 构造器详细资料

    • 方法详细资料

      • intercept

        public org.springframework.http.client.ClientHttpResponse intercept​(org.springframework.http.HttpRequest request,
                                                                            byte[] body,
                                                                            org.springframework.http.client.ClientHttpRequestExecution execution)
                                                                     throws IOException
        指定者:
        intercept 在接口中 org.springframework.http.client.ClientHttpRequestInterceptor
        抛出:
        IOException