public class RepositoryInterceptor extends ServerInterceptor
Constructor and Description |
---|
RepositoryInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUpResources()
Clean up resources used in handling this request.
|
static Repository |
getRepository(javax.servlet.http.HttpServletRequest request) |
static RepositoryConnection |
getRepositoryConnection(javax.servlet.http.HttpServletRequest request) |
static String |
getRepositoryID(javax.servlet.http.HttpServletRequest request) |
protected String |
getThreadName()
Determine the thread name to use.
|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse respons,
Object handler) |
void |
setRepositoryManager(RepositoryManager repMan) |
protected void |
setRequestAttributes(javax.servlet.http.HttpServletRequest request)
Set attributes for this request.
|
afterCompletion
public void setRepositoryManager(RepositoryManager repMan)
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse respons, Object handler) throws Exception
preHandle
in interface org.springframework.web.servlet.HandlerInterceptor
preHandle
in class ServerInterceptor
Exception
protected String getThreadName()
ServerInterceptor
getThreadName
in class ServerInterceptor
protected void setRequestAttributes(javax.servlet.http.HttpServletRequest request) throws ClientHTTPException, ServerHTTPException
ServerInterceptor
setRequestAttributes
in class ServerInterceptor
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
ServerInterceptor
cleanUpResources
in class ServerInterceptor
ServerHTTPException
- if some resources could not be cleaned up because of an internal
errorpublic static String getRepositoryID(javax.servlet.http.HttpServletRequest request)
public static Repository getRepository(javax.servlet.http.HttpServletRequest request)
public static RepositoryConnection getRepositoryConnection(javax.servlet.http.HttpServletRequest request)
Copyright © 2001-2016 Aduna. All Rights Reserved.