You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by ap...@apache.org on 2009/04/21 12:42:00 UTC

svn commit: r767109 [6/8] - in /mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp: addressing/ authorization/ cryptography/ delivery/ delivery/failure/ modules/ modules/core/base/ modules/core/base/handler/ modules/core/base/handler/async/ modul...

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/SessionStateModifier.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/SessionStateModifier.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/SessionStateModifier.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/SessionStateModifier.java Tue Apr 21 10:41:56 2009
@@ -1,26 +1,31 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol;
 
 import org.apache.vysper.xmpp.server.SessionState;
 
 /**
  * allows for modifying a sessions's state
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Rev$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public interface SessionStateModifier {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandler.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandler.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandler.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandler.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol;
 
 import org.apache.vysper.xmpp.server.SessionContext;
@@ -24,8 +26,11 @@
 /**
  * While stanzas hold the raw information read from stream, its handler holds the logic for
  * interpreting its semantics and execution. If stanzas are commands, a StanzaHandler is a command processor.
- * It is very much comparable to a Servlet. 
+ * It is very much comparable to a Servlet.
  * StanzaHandler implementations must be stateless!
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Rev$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public interface StanzaHandler {
 
@@ -45,7 +50,7 @@
      * specifies if a session context is needed for this handler
      */
     public boolean isSessionRequired();
-    
+
     /**
      * executes a stanza
      * @param stanza

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandlerLookup.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandlerLookup.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandlerLookup.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaHandlerLookup.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol;
 
 import org.apache.vysper.xmpp.modules.core.base.handler.IQHandler;
@@ -34,7 +36,10 @@
  * specific namespace which uniquely brings up a NamespaceHandlerDictionary. then, all handlers in this directory
  * are visited and can verify if they might want to handle the stanza. the first affirmative handler lucks out and
  * can handle the stanza. regardless what comes out of this handler, no other handler will then be tasked with
- * handling. 
+ * handling.
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Rev$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class StanzaHandlerLookup {
 
@@ -69,7 +74,7 @@
             // this is not a core stanza (RFC3920), but something like the following
             // (in descending-probability order):
             // a. a custom extension of iq, message, presence
-            // b. some handshake stanza other than iq, message, presence 
+            // b. some handshake stanza other than iq, message, presence
             // c. an arbitrary test stanza
             // d. an evil forged stanza
             // e. some extension we don't know yet
@@ -89,7 +94,7 @@
     private StanzaHandler getIQHandler(Stanza stanza) {
 
         StanzaHandler handlerForElement = null;
-        
+
         if (stanza.getVerifier().subElementsPresentExact(1)) {
             XMLElement firstInnerElement = stanza.getFirstInnerElement();
             handlerForElement = getHandlerForElement(stanza, firstInnerElement);
@@ -104,10 +109,10 @@
     /**
      * tries to find the handler by trying
      * 1. value of xmlElement's XMLNS attribute, if unique
-     * 2. xmlElements namespace, if the element name has a namespace prefix 
+     * 2. xmlElements namespace, if the element name has a namespace prefix
      */
     private StanzaHandler getHandlerForElement(Stanza stanza, XMLElement xmlElement) {
-        
+
         // TODO review this method if it checks the right things
         String namespace = xmlElement.getVerifier().getUniqueXMLNSValue();
         NamespaceHandlerDictionary namespaceHandlerDictionary = dictionaries.get(namespace);
@@ -116,11 +121,11 @@
         if (namespaceHandlerDictionary == null) {
             namespace = xmlElement.getNamespace();
             namespaceHandlerDictionary = dictionaries.get(namespace);
-        } 
-        if (namespaceHandlerDictionary != null) return namespaceHandlerDictionary.get(stanza); 
+        }
+        if (namespaceHandlerDictionary != null) return namespaceHandlerDictionary.get(stanza);
 
         if (XMPPCoreStanza.getWrapper(stanza) != null) return SERVICE_UNAVAILABLE_STANZA_ERROR_HANDLER;
-        
+
         return null;
     }
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaProcessor.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaProcessor.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaProcessor.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StanzaProcessor.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.protocol;
 
 import org.apache.vysper.xmpp.server.SessionContext;
@@ -22,6 +25,9 @@
 
 /**
  * processes stanzas emmitted from local sessions
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Rev$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public interface StanzaProcessor {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StateAwareProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StateAwareProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StateAwareProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StateAwareProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol;
 
 import org.apache.vysper.xmpp.server.SessionContext;
@@ -22,9 +24,12 @@
 
 /**
  * this handler is aware of the session state and can act accordingly.
- * for every session state, a dedicated implementation exists. 
+ * for every session state, a dedicated implementation exists.
  * the most interesting case is "authenticated", where the "common" XMPP happens (iq, message, presence)
  * special treatment has to be given to other states, which cover session handshake and shutdown.
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Rev$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public interface StateAwareProtocolWorker {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StreamErrorCondition.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StreamErrorCondition.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StreamErrorCondition.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/StreamErrorCondition.java Tue Apr 21 10:41:56 2009
@@ -1,25 +1,30 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol;
 
 /**
  * stream-level error conditions
  * as of: RFC3920 4.7.3.  Defined Conditions
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Rev$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public enum StreamErrorCondition {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/AuthorizationFailedException.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/AuthorizationFailedException.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/AuthorizationFailedException.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/AuthorizationFailedException.java Tue Apr 21 10:41:56 2009
@@ -1,26 +1,30 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.exception;
 
 import org.apache.vysper.xmpp.protocol.ProtocolException;
 
 /**
  *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class AuthorizationFailedException extends ProtocolException {
     public AuthorizationFailedException() {

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/BadXMLException.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/BadXMLException.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/BadXMLException.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/BadXMLException.java Tue Apr 21 10:41:56 2009
@@ -1,26 +1,30 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.exception;
 
 import org.apache.vysper.xmpp.protocol.ProtocolException;
 
 /**
  *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class BadXMLException extends ProtocolException {
     public BadXMLException() {

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/TLSException.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/TLSException.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/TLSException.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/exception/TLSException.java Tue Apr 21 10:41:56 2009
@@ -1,26 +1,30 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.exception;
 
 import org.apache.vysper.xmpp.protocol.ProtocolException;
 
 /**
  *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class TLSException extends ProtocolException {
     public TLSException() {

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AbstractStateAwareProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AbstractStateAwareProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AbstractStateAwareProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AbstractStateAwareProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.protocol.ProtocolException;
@@ -30,6 +32,9 @@
 /**
  * high-level xmpp protocol logic, state-aware.
  * writes response stanzas
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public abstract class AbstractStateAwareProtocolWorker implements StateAwareProtocolWorker {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AuthenticatedProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AuthenticatedProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AuthenticatedProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/AuthenticatedProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.modules.core.base.handler.StreamStartHandler;
@@ -26,6 +28,9 @@
 import org.apache.vysper.xmpp.stanza.Stanza;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class AuthenticatedProtocolWorker extends AbstractStateAwareProtocolWorker {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.modules.core.base.handler.StreamStartHandler;
@@ -27,6 +29,9 @@
 import org.apache.vysper.xmpp.stanza.Stanza;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class EncryptedProtocolWorker extends AbstractStateAwareProtocolWorker {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptionStartedProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptionStartedProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptionStartedProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptionStartedProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.protocol.SessionStateHolder;
@@ -24,6 +26,9 @@
 import org.apache.vysper.xmpp.stanza.Stanza;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class EncryptionStartedProtocolWorker extends AbstractStateAwareProtocolWorker {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EndOrClosedProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EndOrClosedProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EndOrClosedProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/EndOrClosedProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.protocol.SessionStateHolder;
@@ -24,6 +26,9 @@
 import org.apache.vysper.xmpp.stanza.Stanza;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class EndOrClosedProtocolWorker extends AbstractStateAwareProtocolWorker {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InboundStanzaProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InboundStanzaProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InboundStanzaProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InboundStanzaProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,3 +1,22 @@
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.protocol.ResponseStanzaContainer;
@@ -7,7 +26,10 @@
 
 /**
  * to send a mail through the handler and afterwards actually forwarding the result to the client
- * inbound stanzas can only be forwarded when the client is authenticated 
+ * inbound stanzas can only be forwarded when the client is authenticated
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class InboundStanzaProtocolWorker extends AbstractStateAwareProtocolWorker {
 
@@ -28,7 +50,7 @@
 
             sessionContext.getResponseWriter().write(responseStanza);
             return;
-        } 
+        }
         // there was nothing to write
     }
 }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InitiatedProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InitiatedProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InitiatedProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/InitiatedProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.modules.core.base.handler.StreamStartHandler;
@@ -27,12 +29,15 @@
 import org.apache.vysper.xmpp.stanza.Stanza;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class InitiatedProtocolWorker extends AbstractStateAwareProtocolWorker {
 
     @Override
     public SessionState getHandledState() {
-        return SessionState.INITIATED;        
+        return SessionState.INITIATED;
     }
 
     @Override

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/StartedProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/StartedProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/StartedProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/StartedProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,20 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
-
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.modules.core.starttls.handler.StartTLSHandler;
@@ -26,6 +28,9 @@
 import org.apache.vysper.xmpp.stanza.Stanza;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class StartedProtocolWorker extends AbstractStateAwareProtocolWorker {
 
@@ -37,7 +42,7 @@
     @Override
     protected boolean checkState(SessionContext sessionContext, SessionStateHolder sessionStateHolder, Stanza stanza, StanzaHandler stanzaHandler) {
         if (stanzaHandler instanceof StartTLSHandler) return true;
-        ResponseWriter.writeUnsupportedStanzaError(sessionContext); 
+        ResponseWriter.writeUnsupportedStanzaError(sessionContext);
         return false;
     }
 }
\ No newline at end of file

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/UnconnectedProtocolWorker.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/UnconnectedProtocolWorker.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/UnconnectedProtocolWorker.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/protocol/worker/UnconnectedProtocolWorker.java Tue Apr 21 10:41:56 2009
@@ -1,21 +1,23 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.vysper.xmpp.protocol.worker;
+/*
+ *  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.vysper.xmpp.protocol.worker;
 
 import org.apache.vysper.xmpp.protocol.SessionStateHolder;
 import org.apache.vysper.xmpp.protocol.StanzaHandler;
@@ -24,6 +26,9 @@
 import org.apache.vysper.xmpp.stanza.Stanza;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class UnconnectedProtocolWorker extends AbstractStateAwareProtocolWorker {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
@@ -29,6 +32,9 @@
 
 /**
  * provides default session context behavior
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public abstract class AbstractSessionContext implements SessionContext {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/DefaultServerRuntimeContext.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/DefaultServerRuntimeContext.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/DefaultServerRuntimeContext.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/DefaultServerRuntimeContext.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
@@ -41,15 +44,18 @@
 import java.util.HashMap;
 
 /**
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class DefaultServerRuntimeContext implements ServerRuntimeContext, ModuleRegistry {
 
     final Logger logger = LoggerFactory.getLogger(DefaultServerRuntimeContext.class);
 
     // basic internal data structures and configuration...
-    
+
     /**
-     * directory where all available processors for incoming stanzas are located 
+     * directory where all available processors for incoming stanzas are located
      */
     private StanzaHandlerLookup stanzaHandlerLookup = new StanzaHandlerLookup();
 
@@ -91,12 +97,12 @@
     private UserAuthorization userAuthorization = new SimpleUserAuthorization();
 
     /**
-     * administrate and query resources and sessions 
+     * administrate and query resources and sessions
      */
     private ResourceRegistry resourceRegistry;
 
     /**
-     * holds the latest presence stanza for a resource 
+     * holds the latest presence stanza for a resource
      */
     private LatestPresenceCache presenceCache = new SimplePresenceCache();
 
@@ -111,9 +117,9 @@
         this.resourceRegistry = new ResourceRegistry();
     }
 
-    public DefaultServerRuntimeContext(Entity serverEntity, 
-                                       StanzaRelay stanzaRelay, 
-                                       ServerFeatures serverFeatures, 
+    public DefaultServerRuntimeContext(Entity serverEntity,
+                                       StanzaRelay stanzaRelay,
+                                       ServerFeatures serverFeatures,
                                        List<NamespaceHandlerDictionary> dictionaries,
                                        ResourceRegistry resourceRegistry) {
         this(serverEntity, stanzaRelay);
@@ -209,7 +215,7 @@
             module.initialize(this);
         }
     }
-    
+
     public void addModule(Module module) {
 
         logger.info("adding module... {} ({})", module.getName(), module.getVersion());

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/Endpoint.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/Endpoint.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/Endpoint.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/Endpoint.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
 import java.io.IOException;
@@ -22,15 +25,18 @@
  * an endpoint is at the intersection between a transport (e.g. TCP/IP, HTTP) and the server.
  * endpoints must be added to XMPPServer before the server is started. They will receive the server runtime context
  * before the server starts the endpoint.
- * 
+ *
  * @see org.apache.vysper.xmpp.server.XMPPServer
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public interface Endpoint {
-    
+
     void setServerRuntimeContext(ServerRuntimeContext serverRuntimeContext);
-    
+
     void start() throws IOException;
-    
+
     void stop();
-    
+
 }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
 import org.apache.vysper.xmpp.authorization.SASLMechanism;
@@ -23,7 +26,10 @@
 import java.util.Collections;
 
 /**
- * switch configuration of optional server features 
+ * switch configuration of optional server features
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class ServerFeatures {
 
@@ -47,7 +53,7 @@
     private boolean relayToFederationServers = false;
 
     /**
-     * counter, how many times a session can try authentication before session is terminated 
+     * counter, how many times a session can try authentication before session is terminated
      */
     private int authenticationRetries = 3;
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
 import org.apache.vysper.mina.TCPEndpoint;
@@ -30,6 +33,9 @@
 
 /**
  * starts the server as a standalone application
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public class ServerMain {
 
@@ -61,7 +67,7 @@
             server.start();
             System.out.println("vysper server is running...");
         } catch (Exception e) {
-            e.printStackTrace();  
+            e.printStackTrace();
         }
 
         server.addModule(new SoftwareVersionModule());

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerRuntimeContext.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerRuntimeContext.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerRuntimeContext.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerRuntimeContext.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
@@ -31,6 +34,9 @@
 
 /**
  * provides each session with server-global data
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public interface ServerRuntimeContext {
     StanzaHandler getHandler(Stanza stanza);
@@ -44,18 +50,18 @@
     StanzaProcessor getStanzaProcessor();
 
     StanzaRelay getStanzaRelay();
-    
+
     ServerFeatures getServerFeatures();
 
     SSLContext getSslContext();
-    
+
     UserAuthorization getUserAuthorization();
-    
+
     ResourceRegistry getResourceRegistry();
 
     LatestPresenceCache getPresenceCache();
-    
+
     void registerServerRuntimeContextService(ServerRuntimeContextService service);
-    
+
     ServerRuntimeContextService getServerRuntimeContextService(String name);
 }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionContext.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionContext.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionContext.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionContext.java Tue Apr 21 10:41:56 2009
@@ -1,19 +1,22 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
@@ -23,6 +26,9 @@
 
 /**
  * provides the server-side session with its context data
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public interface SessionContext {
 
@@ -31,7 +37,7 @@
 
 	/**
 	 * Gets the {@link ServerRuntimeContext}.
-	 * 
+	 *
 	 * @return the {@link ServerRuntimeContext}
 	 */
 	ServerRuntimeContext getServerRuntimeContext();
@@ -40,7 +46,7 @@
 	 * FALSE iff _this_ server has initiated the connection (to another server),
 	 * and _not_ the remote side (client/server) initiated the session. for
 	 * common client/server connections this returns TRUE.
-	 * 
+	 *
 	 * @return
 	 */
 	boolean isRemotelyInitiatedSession();
@@ -52,7 +58,7 @@
 
 	/**
 	 * Sets the initiating entity.
-	 * 
+	 *
 	 * @param entity
 	 */
 	void setInitiatingEntity(Entity entity);
@@ -81,21 +87,21 @@
 	/**
 	 * Returns the id for this session, which is unique inside a server instance
 	 * and across all hosted services.
-	 * 
+	 *
 	 * @return this session's id
 	 */
 	String getSessionId();
 
 	/**
 	 * Gets the default value for the 'xml:lang' attribute.
-	 * 
+	 *
 	 * @return the default language code
 	 */
 	String getXMLLang();
 
 	/**
 	 * Sets the default value for the 'xml:lang' attribute.
-	 * 
+	 *
 	 * @param languageCode
 	 *            the default language code
 	 */
@@ -110,7 +116,7 @@
 
 	/**
 	 * Gets the JID of the server this session is associated with.
-	 * 
+	 *
 	 * @return the server's JID
 	 */
 	Entity getServerJID();
@@ -130,7 +136,7 @@
 
 	/**
 	 * binds a resource to the session
-	 * 
+	 *
 	 * @return resource id
 	 * @throws BindException
 	 *             when binding fails
@@ -151,11 +157,11 @@
     Object putAttribute(String key, Object value);
 
     /**
-     * retrieve object 
+     * retrieve object
      * @param key retrieve a previously stored attribute
      * @return stored object for the given key, or NULL
-     * @see org.apache.vysper.xmpp.server.SessionContext#putAttribute(String, Object) 
+     * @see org.apache.vysper.xmpp.server.SessionContext#putAttribute(String, Object)
      */
     Object getAttribute(String key);
-    
+
 }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionState.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionState.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionState.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/SessionState.java Tue Apr 21 10:41:56 2009
@@ -1,29 +1,35 @@
-/***********************************************************************
- * Copyright (c) 2006-2007 The Apache Software Foundation.             *
- * All rights reserved.                                                *
- * ------------------------------------------------------------------- *
- * Licensed 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.                      *
- ***********************************************************************/
+/*
+ *  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.vysper.xmpp.server;
 
 /**
  * all states for the session state machine. states are visited sequential
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 public enum SessionState {
 
     /**
-     * 
+     *
      */
     UNCONNECTED,
 
@@ -63,7 +69,7 @@
 //    RESOURCE_BOUND,
 
     /**
-     * the initial session handshake is completed and regular stanzas are processed 
+     * the initial session handshake is completed and regular stanzas are processed
      */
 //    OPEN_FOR_XMPP,