Interface UrlAttributesGetter<REQUEST>
- All Known Subinterfaces:
HttpServerAttributesGetter<REQUEST,RESPONSE>
public interface UrlAttributesGetter<REQUEST>
An interface for getting URL attributes.
Instrumentation authors will create implementations of this interface for their specific
library/framework. It will be used by the UrlAttributesExtractor (or other convention
specific extractors) to obtain the various URL attributes in a type-generic way.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetUrlPath(REQUEST request) Returns the URI path component.default StringgetUrlQuery(REQUEST request) Returns the URI query component.default StringgetUrlScheme(REQUEST request) Returns the URI scheme component identifying the used protocol.
-
Method Details
-
getUrlScheme
Returns the URI scheme component identifying the used protocol.Examples:
https,ftp,telnet -
getUrlPath
-
getUrlQuery
-