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  RepositoryConnectionwith 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, cleanUpResourcespublic 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.HandlerInterceptorpreHandle in class ServerInterceptorExceptionprotected String getThreadName()
ServerInterceptorgetThreadName in class ServerInterceptorprotected void setRequestAttributes(javax.servlet.http.HttpServletRequest request)
                             throws ClientHTTPException,
                                    ServerHTTPException
ServerInterceptorsetRequestAttributes in class ServerInterceptorrequest - 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 returnedRepositoryConnectionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.