Class HttpServletResponseWrapper
java.lang.Object
org.springframework.cloud.sleuth.instrument.web.servlet.HttpServletResponseWrapper
- All Implemented Interfaces:
HttpResponse,HttpServerResponse,Response
This delegates to
HttpServletResponse methods, taking care to portably handle
statusCode().- 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.HttpResponse
header, method, routeMethods inherited from interface org.springframework.cloud.sleuth.http.HttpServerResponse
spanKind
-
Method Details
-
create
public static HttpServerResponse create(@Nullable javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @Nullable Throwable caught) Returns the trace representation of a response.- Parameters:
caught- an exception caught serving the request.- Returns:
- wrapped response
-
unwrap
-
headerNames
- Specified by:
headerNamesin interfaceResponse
-
request
- Specified by:
requestin interfaceHttpResponse- Specified by:
requestin interfaceHttpServerResponse- Specified by:
requestin interfaceResponse
-
error
- Specified by:
errorin interfaceHttpServerResponse- Specified by:
errorin interfaceResponse
-
statusCode
public int statusCode()- Specified by:
statusCodein interfaceHttpResponse
-