Class RequestIdentityInterceptor
java.lang.Object
org.springframework.cloud.servicebroker.autoconfigure.web.servlet.RequestIdentityInterceptor
- All Implemented Interfaces:
HandlerInterceptor
HandlerInterceptor
that inspects the request for the presence of the
X-Broker-API-Request
-Identity header and sets the corresponding value in the same response header.- Author:
- Roy Clarkson
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.HandlerInterceptor
afterCompletion, postHandle
-
Constructor Details
-
RequestIdentityInterceptor
public RequestIdentityInterceptor()
-
-
Method Details
-
preHandle
public boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) Sets the X-Broker-API-Request-Identity header in the response if a value is received in the request from the platform.- Specified by:
preHandle
in interfaceHandlerInterceptor
- Parameters:
request
-response
-handler
-
-