public class WebRequestTraceFilter extends OncePerRequestFilter implements Ordered
Filter
that logs all requests to a TraceRepository
.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
WebRequestTraceFilter(TraceRepository traceRepository) |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) |
protected void |
enhanceTrace(Map<String,Object> trace,
HttpServletResponse response) |
int |
getOrder() |
protected Map<String,Object> |
getTrace(HttpServletRequest request) |
void |
setDumpRequests(boolean dumpRequests)
Debugging feature.
|
void |
setErrorAttributes(ErrorAttributes errorAttributes) |
void |
setOrder(int order) |
public WebRequestTraceFilter(TraceRepository traceRepository)
traceRepository
- public void setDumpRequests(boolean dumpRequests)
public void setOrder(int order)
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
ServletException
IOException
public void setErrorAttributes(ErrorAttributes errorAttributes)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.