* @throws ServletException
*
*/
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
XHttpServletRequestFacade req = new XHttpServletRequestFacade((HttpServletRequest)request);
XHttpServletResponseFacade resp = new XHttpServletResponseFacade((HttpServletResponse)response);
long start = System.currentTimeMillis();
// incomming
String thread = Thread.currentThread().getName();
String useragent = req.getHeader("User-Agent") != null
? req.getHeader("User-Agent")
: "<user-agent-unknown>";
String datetime = df.format( new Date() );
String method = req.getMethod();
String uri = req.getRequestURI();
Principal p = req.getUserPrincipal();
String principal = (p != null ? p.getName() : "");
String contentlength = req.getHeader( "Content-Length" );
if( contentlength == null )
contentlength = "-";
// next please!
chain.doFilter( req, resp );
// way back
int status = resp.getStatus();
String message = WebdavStatus.getStatusText(status);
String detail = resp.getStatusText();
if( detail == null || "".equals(detail) )
detail = message;
String path = (String)req.getAttribute("slide_uri"); // set by
long end = System.currentTimeMillis();