public abstract class ServerInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
| Constructor and Description |
|---|
ServerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception exception) |
protected void |
cleanUpResources()
Clean up resources used in handling this request.
|
protected abstract String |
getThreadName()
Determine the thread name to use.
|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
protected void |
setRequestAttributes(javax.servlet.http.HttpServletRequest request)
Set attributes for this request.
|
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws Exception
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpreHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionpublic void afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception exception)
throws Exception
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptorafterCompletion in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionprotected abstract String getThreadName() throws ServerHTTPException
ServerHTTPException - if it was impossible to determine a name due to an internal errorprotected void setRequestAttributes(javax.servlet.http.HttpServletRequest request)
throws ClientHTTPException,
ServerHTTPException
request - the requestClientHTTPException - if it was impossible to set one or more attributes due to a bad request on the part
of the clientServerHTTPException - if it was impossible to set one or more attributes due to an internal errorprotected void cleanUpResources()
throws ServerHTTPException
ServerHTTPException - if some resources could not be cleaned up because of an internal errorCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.