Add request listener management.
[jSite2.git] / src / net / pterodactylus / jsite / core / RequestListener.java
index b7ba758..3831378 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * jSite2 - RequestListener.java -
- * Copyright © 2008 David Roden
+ * jSite-next - RequestListener.java -
+ * Copyright © 2009 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,53 +22,20 @@ package net.pterodactylus.jsite.core;
 import java.util.EventListener;
 
 /**
- * Interface for objects that want to be notified on request events.
- * 
- * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
+ * Listener interface for objects that want to be notified about {@link Request}
+ * events that are emitteed by the {@link RequestManager}.
+ *
+ * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 public interface RequestListener extends EventListener {
 
        /**
-        * Notifies a listener that a request was added to a node.
-        * 
+        * Notifies a listener that a request was added, either by a user request or
+        * by loading the configuration.
+        *
         * @param request
-        *            The request that was added
+        *            The added request
         */
        public void requestAdded(Request request);
 
-       /**
-        * Notifies a listener that a request made progress.
-        * 
-        * @param request
-        *            The request
-        */
-       public void requestProgressed(Request request);
-
-       /**
-        * Notifies a listener that a request was removed.
-        * 
-        * @param request
-        *            The request that was removed
-        */
-       public void requestRemoved(Request request);
-
-       /**
-        * Notifies a listener that a Put request has generated a URI.
-        * 
-        * @param request
-        *            The request that generated a URI
-        * @param uri
-        *            The generated URI
-        */
-       public void requestGeneratedURI(Request request, String uri);
-
-       /**
-        * Notifies a listener that a request has completed.
-        * 
-        * @param request
-        *            The finished request
-        */
-       public void requestFinished(Request request);
-
 }