public class RequestIdentityInterceptor extends HandlerInterceptorAdapter
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 headerConstructor and Description |
---|
RequestIdentityInterceptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.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
|
afterCompletion, afterConcurrentHandlingStarted, postHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
preHandle
in interface HandlerInterceptor
preHandle
in class HandlerInterceptorAdapter
request
- response
- handler
-