From b2aea0cc084fee0329e09ea87a550ea0fd1c4049 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 17 Jul 2010 18:20:11 +0000 Subject: [PATCH] Clean-up. No functional change. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@965122 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/ProtocolHandler.java | 32 +++++++++++++---------------- 1 file changed, 14 insertions(+), 18 deletions(-) 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; } -- 2.11.0