Class DefaultUriMapper

java.lang.Object
io.micrometer.core.instrument.binder.httpcomponents.DefaultUriMapper
All Implemented Interfaces:
Function<org.apache.http.HttpRequest,String>

public class DefaultUriMapper extends Object implements Function<org.apache.http.HttpRequest,String>
Extracts the URI pattern from the predefined request header, "URI_PATTERN" if available.

See DefaultUriMapper for Apache HTTP client 5 support.

Since:
1.4.0
  • Field Details

  • Constructor Details

    • DefaultUriMapper

      public DefaultUriMapper()
  • Method Details

    • apply

      public String apply(org.apache.http.HttpRequest httpRequest)
      Specified by:
      apply in interface Function<org.apache.http.HttpRequest,String>