Class MetricsClientHttpRequestInterceptor

java.lang.Object
com.huaweicloud.common.adapters.web.MetricsClientHttpRequestInterceptor
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.http.client.ClientHttpRequestInterceptor

public class MetricsClientHttpRequestInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor, org.springframework.core.Ordered
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    org.springframework.http.client.ClientHttpResponse
    intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MetricsClientHttpRequestInterceptor

      public MetricsClientHttpRequestInterceptor()
  • Method Details

    • intercept

      public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
      Specified by:
      intercept in interface org.springframework.http.client.ClientHttpRequestInterceptor
      Throws:
      IOException
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered