| org.openrdf.http.server.ServerInterceptor
All known Subclasses: org.openrdf.http.server.protocol.ProtocolInterceptor, org.openrdf.http.server.repository.RepositoryInterceptor,
ServerInterceptor | abstract public class ServerInterceptor extends HandlerInterceptorAdapter (Code) | | Base class for single-use request interceptors. This implementation sets the
thread name to something sensible at the start of the request handling and
resets the name at the end. This is useful for logging frameworks that make
use of thread names, such as Log4J. Should not be a singleton bean! Configure
as inner bean in openrdf-servlet.xml
author: Herko ter Horst |
cleanUpResources | protected void cleanUpResources() throws ServerHTTPException(Code) | | Clean up resources used in handling this request. Called after the request
is handled and a the view is rendered (or an exception has occurred). By
default, this method does nothing.
throws: ServerHTTPException - if some resources could not be cleaned up because of an internalerror |
getThreadName | abstract protected String getThreadName() throws ServerHTTPException(Code) | | Determine the thread name to use. Called before the request is forwarded
to a handler.
Parameters: request - the request a name that makes sense based on the request throws: ServerHTTPException - if it was impossible to determine a name due to an internal error |
setRequestAttributes | protected void setRequestAttributes(HttpServletRequest request) throws ClientHTTPException, ServerHTTPException(Code) | | Set attributes for this request. Called before the request is forwarded to
a handler. By default, this method does nothing.
Parameters: request - the request throws: ClientHTTPException - if it was impossible to set one or more attributes due to a badrequest on the part of the client throws: ServerHTTPException - if it was impossible to set one or more attributes due to aninternal error |
|
|