Clean-up. No functional change.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 17 Jul 2010 18:20:11 +0000 (18:20 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 17 Jul 2010 18:20:11 +0000 (18:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@965122 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/ProtocolHandler.java

index bf17bea..c952dd8 100644 (file)
@@ -26,7 +26,8 @@ import java.util.Iterator;
  * will not fit Jk protocols like JNI.
  *
  * This is the main interface to be implemented by a coyote connector.
- * Adapter is the main interface to be implemented by a coyote servlet container.
+ * Adapter is the main interface to be implemented by a coyote servlet
+ * container.
  *
  * @author Remy Maucherat
  * @author Costin Manolache
@@ -34,52 +35,47 @@ import java.util.Iterator;
  */
 public interface ProtocolHandler {
 
-
     /**
      * Pass config info.
      */
     public void setAttribute(String name, Object value);
-
-
     public Object getAttribute(String name);
     public Iterator<String> getAttributeNames();
 
+    
     /**
      * The adapter, used to call the connector.
      */
     public void setAdapter(Adapter adapter);
-
-
     public Adapter getAdapter();
 
 
     /**
-     * Init the protocol.
+     * Initialise the protocol.
      */
-    public void init()
-        throws Exception;
+    public void init() throws Exception;
 
 
     /**
      * Start the protocol.
      */
-    public void start()
-        throws Exception;
+    public void start() throws Exception;
+
 
     /**
      * Pause the protocol (optional).
      */
-    public void pause()
-        throws Exception;
+    public void pause() throws Exception;
+
 
     /**
      * Resume the protocol (optional).
      */
-    public void resume()
-        throws Exception;
-
-    public void destroy()
-        throws Exception;
+    public void resume() throws Exception;
 
 
+    /**
+     * Destroy the protocol (optional).
+     */
+    public void destroy() throws Exception;
 }