Class HttpServletRequestWrapper
java.lang.Object
org.springframework.cloud.sleuth.instrument.web.servlet.HttpServletRequestWrapper
- All Implemented Interfaces:
HttpRequest,HttpServerRequest,Request
Besides delegating to
HttpServletRequest methods, this also parses the remote
IP of the client.- Since:
- 5.10
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.sleuth.http.HttpRequest
remoteIp, remotePortMethods inherited from interface org.springframework.cloud.sleuth.http.HttpServerRequest
getAttribute, setAttribute, spanKind
-
Method Details
-
create
Wraps the request in a tracing representation.- Parameters:
request- http request- Returns:
- wrapped request
-
headerNames
- Specified by:
headerNamesin interfaceRequest
-
unwrap
-
method
- Specified by:
methodin interfaceHttpRequest
-
route
- Specified by:
routein interfaceHttpRequest
-
path
- Specified by:
pathin interfaceHttpRequest
-
url
- Specified by:
urlin interfaceHttpRequest
-
header
- Specified by:
headerin interfaceHttpRequest
-