Author: norman
Date: Fri May 28 18:29:38 2010
New Revision: 949252

URL: http://svn.apache.org/viewvc?rev=949252&view=rev
Log:
Add missing license header, add javadocs

Modified:
    
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractCommandDispatcher.java
    
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/LineHandler.java
    
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/ProtocolHandlerChain.java

Modified: 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractCommandDispatcher.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractCommandDispatcher.java?rev=949252&r1=949251&r2=949252&view=diff
==============================================================================
--- 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractCommandDispatcher.java
 (original)
+++ 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractCommandDispatcher.java
 Fri May 28 18:29:38 2010
@@ -31,7 +31,8 @@ import java.util.Locale;
 
 
 /**
- * Abstract base class which CommandDispatcher implementations should extend
+ * Abstract base class which CommandDispatcher implementations should extend. 
A CommandDispatcher is responsible
+ * to call the right {...@link CommandHandler} for a given Command
  *
  */
 public abstract class AbstractCommandDispatcher<Session extends 
ProtocolSession> implements ExtensibleHandler, LineHandler<Session> {

Modified: 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/LineHandler.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/LineHandler.java?rev=949252&r1=949251&r2=949252&view=diff
==============================================================================
--- 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/LineHandler.java
 (original)
+++ 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/LineHandler.java
 Fri May 28 18:29:38 2010
@@ -20,7 +20,9 @@
 package org.apache.james.protocols.api;
 
 /**
- * Custom line handlers must implement this interface
+ * Implementations of this Interface will get called after a full line 
(terminated with \r\n) was received.
+ * 
+ * Only one {...@link LineHandler} will get called per line
  */
 public interface LineHandler<Session extends ProtocolSession> {
      

Modified: 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/ProtocolHandlerChain.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/ProtocolHandlerChain.java?rev=949252&r1=949251&r2=949252&view=diff
==============================================================================
--- 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/ProtocolHandlerChain.java
 (original)
+++ 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/ProtocolHandlerChain.java
 Fri May 28 18:29:38 2010
@@ -1,7 +1,32 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+
+
 package org.apache.james.protocols.api;
 
 import java.util.LinkedList;
 
+/**
+ * Chain which can be used to get all Handlers for a given Class.
+ *
+ */
 public interface ProtocolHandlerChain {
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to