package org.owasp.appsensor;

import java.util.Collection;

import org.owasp.appsensor.exceptions.NotAuthorizedException;

/**
 * The RequestHandler is the key interface that the server side of 
 * AppSensor implements to handle the different functional requests.
 * 
 * @author John Melton (jtmelton@gmail.com) http://www.jtmelton.com/
 */
public interface RequestHandler {
	
	/**
	 * Add an Event.
	 * 
	 * @param event Event to add
	 */
	public void addEvent(Event event) throws NotAuthorizedException;
	
	/**
	 * Add an Attack
	 * @param attack Attack to add
	 */
	public void addAttack(Attack attack) throws NotAuthorizedException;
	
	/**
	 * Retrieve any responses generated that apply to this client application 
	 * since the last time the client application called this method.
	 *  
	 * @return a Collection of Response objects 
	 */
	public Collection<Response> getResponses(long earliest) throws NotAuthorizedException;
	
}

@@ -370,16 +370,135 @@
 ler %7B%0A%09%0A
+%09public static String APPSENSOR_CLIENT_APPLICATION_IDENTIFIER_ATTR = %22APPSENSOR_CLIENT_APPLICATION_IDENTIFIER_ATTR%22;%0A%09%0A
 %09/**%0A%09 *
@@ -998,17 +998,17 @@
 sponses(
-l
+L
 ong earl

add constant for client identifier attr