All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.barchart.http.server.RequestLogger Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
/**
 * Copyright (C) 2011-2013 Barchart, Inc. 
 *
 * All rights reserved. Licensed under the OSI BSD License.
 *
 * http://www.opensource.org/licenses/bsd-license.php
 */
package com.barchart.http.server;

import com.barchart.http.request.ServerRequest;
import com.barchart.http.request.ServerResponse;

/**
 * HTTP request logging API.
 */
public interface RequestLogger {

	/**
	 * Log a completed request.
	 */
	public void access(ServerRequest request, ServerResponse response,
			long duration);

	/**
	 * Log a failed request.
	 */
	public void error(ServerRequest request, ServerResponse response,
			Throwable exception);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy