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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
Exception
public void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception exception) throws Exception
Exception
protected 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-2022 Eclipse Foundation. All Rights Reserved.