From: markt Date: Sat, 17 Jul 2010 18:20:11 +0000 (+0000) Subject: Clean-up. No functional change. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b2aea0cc084fee0329e09ea87a550ea0fd1c4049;p=tomcat7.0 Clean-up. No functional change. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@965122 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/ProtocolHandler.java b/java/org/apache/coyote/ProtocolHandler.java index bf17bea8f..c952dd8d2 100644 --- a/java/org/apache/coyote/ProtocolHandler.java +++ b/java/org/apache/coyote/ProtocolHandler.java @@ -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 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; }