public class RepositoryInterceptor extends ServerInterceptor
Constructor and Description |
---|
RepositoryInterceptor() |
Modifier and Type | Method and Description |
---|---|
static Repository |
getRepository(javax.servlet.http.HttpServletRequest request) |
static RepositoryConnection |
getRepositoryConnection(javax.servlet.http.HttpServletRequest request)
Obtain a new
RepositoryConnection with suitable parser/writer configuration for handling the incoming
HTTP 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, cleanUpResources
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 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)
RepositoryConnection
with suitable parser/writer configuration for handling the incoming
HTTP request. The caller of this method is responsible for closing the connection.request
- the HttpServletRequest
for which a RepositoryConnection
is to be returnedRepositoryConnection
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.