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 [7/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/server/XMPPServer.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/XMPPServer.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/XMPPServer.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/XMPPServer.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.addressing.EntityImpl;
@@ -40,13 +43,16 @@
  * this class is able to boot a standalone XMPP server.
  * <code>
  * XMPPServer server = new XMPPServer("vysper.org");
- * 
+ *
  * server.setUserAuthorization(...); // add user authorization class
  * server.addEndpoint(...); // add endpoints, at least one
  * server.setTLSCertificateInfo(...); //
- * 
- * server.start(); // inits all endpoints and default internals 
+ *
+ * server.start(); // inits all endpoints and default internals
  * </code>
+ *
+ * @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 XMPPServer {
 
@@ -65,7 +71,7 @@
         // default list of SASL mechanisms
         saslMechanisms.add(new Plain());
     }
-    
+
     public void setSASLMechanisms(List<SASLMechanism> validMechanisms) {
         saslMechanisms.addAll(validMechanisms);
     }
@@ -86,7 +92,7 @@
     public void addEndpoint(Endpoint endpoint) {
         endpoints.add(endpoint);
     }
-    
+
     public void start() throws Exception {
 
         BogusTrustManagerFactory bogusTrustManagerFactory = new BogusTrustManagerFactory();
@@ -98,7 +104,7 @@
         addCoreDictionaries(dictionaries);
 
         ResourceRegistry resourceRegistry = new ResourceRegistry();
-        
+
         DeliveringInboundStanzaRelay internalStanzaRelay = new DeliveringInboundStanzaRelay(resourceRegistry, accountVerification);
         RecordingStanzaRelay externalStanzaRelay = new RecordingStanzaRelay();
 
@@ -114,7 +120,7 @@
         serverRuntimeContext = new DefaultServerRuntimeContext(serverEntity, stanzaRelayBroker, serverFeatures, dictionaries, resourceRegistry);
         serverRuntimeContext.setUserAuthorization(userAuthorization);
         serverRuntimeContext.setTlsContextFactory(tlsContextFactory);
-        
+
         serverRuntimeContext.addModule(new ServiceDiscoveryModule());
         serverRuntimeContext.addModule(new RosterModule());
 
@@ -138,7 +144,7 @@
         list.add(module);
         serverRuntimeContext.setModules(list);
     }
-    
+
     private void addCoreDictionaries(List<NamespaceHandlerDictionary> dictionaries) {
         dictionaries.add(new org.apache.vysper.xmpp.modules.core.base.BaseStreamStanzaDictionary());
         dictionaries.add(new org.apache.vysper.xmpp.modules.core.starttls.StartTLSStanzaDictionary());

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/XMPPVersion.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/XMPPVersion.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/XMPPVersion.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/XMPPVersion.java Tue Apr 21 10:41:56 2009
@@ -1,23 +1,29 @@
-/***********************************************************************
- * 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;
 
 /**
+ *
+ * @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 XMPPVersion {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerErrorResponses.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerErrorResponses.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerErrorResponses.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerErrorResponses.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.response;
 
@@ -28,6 +31,9 @@
 import org.apache.vysper.xmpp.xmlfragment.XMLElement;
 
 /**
+ *
+ * @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 ServerErrorResponses
 {

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerResponses.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerResponses.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerResponses.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/server/response/ServerResponses.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.response;
 
@@ -29,6 +32,9 @@
 import java.util.List;
 
 /**
+ *
+ * @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 ServerResponses {
 
@@ -39,16 +45,16 @@
     public Stanza getStreamOpener(boolean forClient, Entity from, XMPPVersion version, SessionContext sessionContext) {
         Stanza innerFeatureStanza;
         if (sessionContext.getState() == SessionState.INITIATED) innerFeatureStanza = getFeaturesForEncryption(sessionContext);
-        else if (sessionContext.getState() == SessionState.ENCRYPTED) innerFeatureStanza = getFeaturesForAuthentication(sessionContext.getServerRuntimeContext().getServerFeatures().getAuthenticationMethods()); 
+        else if (sessionContext.getState() == SessionState.ENCRYPTED) innerFeatureStanza = getFeaturesForAuthentication(sessionContext.getServerRuntimeContext().getServerFeatures().getAuthenticationMethods());
         else if (sessionContext.getState() == SessionState.AUTHENTICATED) {
             sessionContext.setIsReopeningXMLStream();
             innerFeatureStanza = getFeaturesForSession();
         } else {
             throw new IllegalStateException("unsupported state for responding with stream opener");
-        } 
-        
+        }
+
         StanzaBuilder stanzaBuilder = getStreamOpener(forClient, from, sessionContext.getXMLLang(), version, sessionContext.getSessionId(), innerFeatureStanza);
-        
+
         return stanzaBuilder.getFinalStanza();
     }
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanza.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanza.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanza.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanza.java Tue Apr 21 10:41:56 2009
@@ -1,24 +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.stanza;
 
 /**
  * info/query stanza (request/response)
+ *
+ * @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 IQStanza extends XMPPCoreStanza {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanzaType.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanzaType.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanzaType.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/IQStanzaType.java Tue Apr 21 10:41:56 2009
@@ -1,23 +1,29 @@
-/***********************************************************************
- * 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.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 enum IQStanzaType {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanza.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanza.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanza.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanza.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.stanza;
 
@@ -27,6 +30,9 @@
 
 /**
  * message stanza (push)
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 @SpecCompliant(spec = "RFC3921bis-08", section = "5", status = FINISHED, coverage = COMPLETE)
 public class MessageStanza extends XMPPCoreStanza {
@@ -46,7 +52,7 @@
     public String getName() {
         return NAME;
     }
-    
+
     public MessageStanzaType getIQType() {
         String type = getType();
         if (type == null) return null;
@@ -54,7 +60,7 @@
     }
 
     /**
-     * 
+     *
      * @param lang
      * @return
      * @throws XMLSemanticError - if language attribtues are not unqiue RFC3921/2.1.2.1
@@ -74,7 +80,7 @@
     }
 
     /**
-     * 
+     *
      * @param lang
      * @return
      * @throws XMLSemanticError - if langauge attributes are not unique, RFC3921/2.1.2.2
@@ -94,7 +100,7 @@
     }
 
     /**
-     * 
+     *
      * @return thread identifier, or NULL, if not given
      * @throws XMLSemanticError - if thread element is not unique, or no unqiue inner text
      * is given, RFC3921 2.1.2.3
@@ -103,7 +109,7 @@
         XMLElement element = getSingleInnerElementsNamed("thread");
         if (element == null) return null; // thread is optional, see RFC3921/2.1.2.3
         return element.getSingleInnerText().getText();
-    } 
-    
-    
+    }
+
+
 }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanzaType.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanzaType.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanzaType.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/MessageStanzaType.java Tue Apr 21 10:41:56 2009
@@ -1,23 +1,29 @@
-/***********************************************************************
- * 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.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 enum MessageStanzaType {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanza.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanza.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanza.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanza.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.stanza;
 
@@ -24,6 +27,9 @@
 
 /**
  * presence stanza (publish/subscribe [aka "pub/sub"] or broadcast)
+ *
+ * @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 PresenceStanza extends XMPPCoreStanza {
     public static final String NAME = "presence";
@@ -57,10 +63,10 @@
         XMLElement element = getSingleInnerElementsNamed("show");
         if (element == null) return null; // show is optional, see RFC3921/2.2.2.1
         return element.getSingleInnerText().getText();
-    } 
-    
+    }
+
     /**
-     * 
+     *
      * @param lang
      * @return
      * @throws XMLSemanticError - if langauge attributes are not unique, RFC3921/2.2.2.2
@@ -78,7 +84,7 @@
     public Map<String, XMLElement> getStatusMap() throws XMLSemanticError {
         return getInnerElementsByXMLLangNamed("status");
     }
-    
+
     public int getPriority() throws XMLSemanticError {
         int priorityValue = 0; // priority default is 0, see RFC3921/2.2.2.3
         XMLElement element = getSingleInnerElementsNamed("priority");
@@ -92,12 +98,12 @@
             }
             if (intValue < -128 || intValue > 127) {
                 throw new XMLSemanticError("presence priority must be an imteger value in the -128 to 127 range");
-            } 
+            }
             priorityValue = intValue;
         }
         return priorityValue;
-    } 
-    
+    }
+
     public int getPrioritySafe() {
         try {
             return getPriority();

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanzaType.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanzaType.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanzaType.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/PresenceStanzaType.java Tue Apr 21 10:41:56 2009
@@ -1,23 +1,29 @@
-/***********************************************************************
- * 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.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 enum PresenceStanzaType {
 
@@ -46,22 +52,22 @@
     public String value() {
         return value;
     }
-    
+
     public static boolean isSubscriptionType(PresenceStanzaType presenceStanzaType) {
         return presenceStanzaType != null && (
                presenceStanzaType == SUBSCRIBE || presenceStanzaType == SUBSCRIBED ||
                presenceStanzaType == UNSUBSCRIBE || presenceStanzaType == UNSUBSCRIBED
-               ); 
+               );
     }
 
     /**
-     * check availability as an implicit presence type - 
+     * check availability as an implicit presence type -
      * this is given in the absence of any type attribute on the presence stanza
      * @param presenceStanzaType
-     * @return 
+     * @return
      */
     public static boolean isAvailable(PresenceStanzaType presenceStanzaType) {
-        return presenceStanzaType == null; 
+        return presenceStanzaType == null;
     }
 
 }
\ No newline at end of file

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/Stanza.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/Stanza.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/Stanza.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/Stanza.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.stanza;
 
@@ -30,6 +33,9 @@
 /**
  * immutable container for all data contained in an XMPP stanza.
  * it is surrounded by a family of classes used to build, parse, verify and process 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 class Stanza extends XMLElement {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaBuilder.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaBuilder.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaBuilder.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaBuilder.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.stanza;
 
@@ -31,6 +34,9 @@
 import java.util.Iterator;
 
 /**
+ *
+ * @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 StanzaBuilder {
 
@@ -40,18 +46,18 @@
         if (to != null) stanzaBuilder.addAttribute("to", to.getFullQualifiedName());
         stanzaBuilder.addAttribute("type", type.value());
         stanzaBuilder.addAttribute("id", id);
-        return stanzaBuilder;        
+        return stanzaBuilder;
     }
-    
+
     public static StanzaBuilder createMessageStanza(Entity from, Entity to, String lang, String body) {
         StanzaBuilder stanzaBuilder = new StanzaBuilder("message");
         stanzaBuilder.addAttribute("from", from.getFullQualifiedName());
         stanzaBuilder.addAttribute("to", to.getFullQualifiedName());
         stanzaBuilder.addAttribute("xml:lang", lang);
         stanzaBuilder.startInnerElement("body").addText(body).endInnerElement();
-        return stanzaBuilder;        
+        return stanzaBuilder;
     }
-    
+
     public static StanzaBuilder createPresenceStanza(Entity from, Entity to, String lang, PresenceStanzaType type, String show, String status) {
         StanzaBuilder stanzaBuilder = new StanzaBuilder("presence");
         if (from != null) stanzaBuilder.addAttribute("from", from.getFullQualifiedName());
@@ -64,12 +70,12 @@
         if (status != null) {
             stanzaBuilder.startInnerElement("status").addText(status).endInnerElement();
         }
-        return stanzaBuilder;        
+        return stanzaBuilder;
     }
-    
+
     public static StanzaBuilder createDirectReply(XMPPCoreStanza original, boolean fromIsServerOnly, String type) {
         if (original == null) throw new IllegalArgumentException();
-        
+
         StanzaBuilder stanzaBuilder = new StanzaBuilder(original.getName(), original.getNamespace());
         // reverse to and from
         Entity newTo = original.getFrom();
@@ -83,15 +89,15 @@
         }
         stanzaBuilder.addAttribute("type", type);
         if (original.getID() != null) stanzaBuilder.addAttribute("id", original.getID());
-        
+
         return stanzaBuilder;
     }
 
     /**
-     * creates a clone of the given original stanza into the returned StanzaBuilder, but replaces all attributes in the 
-     * top-level original element with the values from the given attribute list. 
+     * creates a clone of the given original stanza into the returned StanzaBuilder, but replaces all attributes in the
+     * top-level original element with the values from the given attribute list.
      * this way, the builder can be coerced into the final stanza (calling StanzaBuilder#getFinalStanza() or be used to
-     * add additional attributes and inner elements. 
+     * add additional attributes and inner elements.
      * @param original
      * @param replacingAttributes - if this is a short list, iteration is more efficient than hash mapping
      * @param deep
@@ -101,7 +107,7 @@
         StanzaBuilder stanzaBuilder = new StanzaBuilder(original.getName(), original.getNamespace());
 
         List<Attribute> replacingAttributesCopy = new ArrayList<Attribute>(replacingAttributes);
-                
+
         List<Attribute> originalAttributes = original.getAttributes();
         for (Attribute originalAttribute : originalAttributes) {
             boolean wasReplaced = false;
@@ -122,7 +128,7 @@
         for (Attribute additionalAttribute : replacingAttributesCopy) {
             stanzaBuilder.addAttribute(additionalAttribute);
         }
-        
+
         // copy over immutable inner elements
         if (deep && original.getInnerElements() != null) {
             List<XMLElement> innerElements = original.getInnerElements();
@@ -130,11 +136,11 @@
                 stanzaBuilder.addPreparedElement(innerElement);
             }
         }
-        
+
         return stanzaBuilder;
     }
-    
-    
+
+
     class ElementStruct {
         public ElementStruct parentElement = null;
         public XMLElement element = null;
@@ -153,7 +159,7 @@
     public StanzaBuilder(String stanzaName) {
         this(stanzaName, null);
     }
-    
+
     public StanzaBuilder(String stanzaName, String namespaceURI) {
         startNewElement(stanzaName, namespaceURI, true);
         resultingStanza = (Stanza)currentElement.element;

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorCondition.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorCondition.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorCondition.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorCondition.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.stanza;
 
@@ -22,6 +25,9 @@
  * as of: RFC3920 9.3.3. Defined Conditions
  * There are also recommendations for the associated error type
  * to be found.
+ *
+ * @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 StanzaErrorCondition {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorType.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorType.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorType.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/StanzaErrorType.java Tue Apr 21 10:41:56 2009
@@ -1,27 +1,33 @@
-/***********************************************************************
- * 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.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 enum StanzaErrorType {
 
-    CANCEL("cancel"), // do not retry (the error is unrecoverable) 
+    CANCEL("cancel"), // do not retry (the error is unrecoverable)
     CONTINUE("continue"), // proceed (the condition was only a warning)
     MODIFY("modify"), // retry after changing the data sent
     AUTH("auth"), // retry after providing credentials

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanza.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanza.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanza.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanza.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.stanza;
 
@@ -22,6 +25,9 @@
 
 /**
  * wraps an all-purpose stanza into a core stanza (iq, message, presence)
+ *
+ * @author The Apache MINA Project (dev@mina.apache.org)
+ * @version $Revision$ , $Date: 2009-04-21 13:13:19 +0530 (Tue, 21 Apr 2009) $
  */
 abstract public class XMPPCoreStanza extends Stanza {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanzaVerifier.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanzaVerifier.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanzaVerifier.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/stanza/XMPPCoreStanzaVerifier.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.stanza;
 
@@ -21,6 +24,9 @@
 import org.apache.vysper.xmpp.xmlfragment.XMLElementVerifier;
 
 /**
+ *
+ * @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 XMPPCoreStanzaVerifier extends XMLElementVerifier {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/BindException.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/BindException.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/BindException.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/BindException.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.state.resourcebinding;
 
@@ -21,6 +24,9 @@
 
 /**
  * thrown when a resource binding fails
+ *
+ * @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 BindException extends ProtocolException {
     public BindException() {

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceRegistry.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceRegistry.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceRegistry.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceRegistry.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.state.resourcebinding;
 
 import org.apache.vysper.xmpp.server.SessionContext;
@@ -32,6 +35,9 @@
 
 /**
  * assigns and holds resource ids and their related session
+ *
+ * @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 ResourceRegistry {
 
@@ -64,7 +70,7 @@
     /**
      * an entity's list of resources
      * maps bare JID to all its bound resources. the list of resource ids might not be emtpy, and if there
-     * is more than one id, the list usually spans more than 1 session 
+     * is more than one id, the list usually spans more than 1 session
      */
     protected final Map<Entity, List<String>> entityResources = new HashMap<Entity, List<String>>();
 
@@ -138,7 +144,7 @@
                     // remove from entity's list of resources
                     List<String> resourceListForEntity = getResourceList(sessionContext.getInitiatingEntity());
                     resourceListForEntity.remove(resourceId);
-                    if (resourceListForEntity.isEmpty()) entityResources.remove(sessionContext.getInitiatingEntity()); 
+                    if (resourceListForEntity.isEmpty()) entityResources.remove(sessionContext.getInitiatingEntity());
 
                     // remove from session's list of resources
                     List<String> resourceListForSession = sessionResources.get(sessionContext);
@@ -167,19 +173,19 @@
 			    synchronized (sessionResources) {
                     // collect all remove candidates
                     List<String> removeResourceIds = getResourcesForSessionInternal(unbindingSessionContext);
-    
+
                     // actually remove from bound resources
                     for (String removeResourceId : removeResourceIds) {
                         boundResources.remove(removeResourceId);
                     }
-    
+
                     // actually remove from entity map
                     List<String> resourceList = getResourceList(unbindingSessionContext
                             .getInitiatingEntity());
                     if (resourceList != null) {
                         resourceList.removeAll(removeResourceIds);
                     }
-                    
+
                     // actually remove from session map
                     sessionResources.remove(unbindingSessionContext);
                 }
@@ -190,7 +196,7 @@
     /**
      * retrieves the one and only bound resource for a given session.
      * @param sessionContext
-     * @return null, if a unique resource cannot be determined (there is more or less than 1), the resource id otherwise 
+     * @return null, if a unique resource cannot be determined (there is more or less than 1), the resource id otherwise
      */
     public String getUniqueResourceForSession(SessionContext sessionContext) {
         List<String> list = getResourcesForSessionInternal(sessionContext);
@@ -201,7 +207,7 @@
     public List<String> getResourcesForSession(SessionContext sessionContext) {
         return Collections.unmodifiableList(getResourcesForSessionInternal(sessionContext));
     }
-    
+
     /*package*/ List<String> getResourcesForSessionInternal(SessionContext sessionContext) {
 		if (sessionContext == null) return null;
 
@@ -257,7 +263,7 @@
 
     /**
      * retrieves all sessions handling this entity. note: if given entity is not a bare JID, it will return only the
-     * session for the JID's resource part. if it's a bare JID, it will return all session for the JID. 
+     * session for the JID's resource part. if it's a bare JID, it will return all session for the JID.
      * @param entity
      */
     public List<SessionContext> getSessions(Entity entity) {

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceState.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceState.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceState.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/state/resourcebinding/ResourceState.java Tue Apr 21 10:41:56 2009
@@ -1,12 +1,33 @@
+/*
+ *  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.state.resourcebinding;
 
 /**
  * This enumeration represents the status of a bound resource.
- * 
+ *
  * see http://www.xmpp.org/internet-drafts/draft-saintandre-rfc3921bis-04.html#roster-login
- * 
- * @author Gerolf Seitz (gseitz@apache.org)
- * 
+ *
+ * @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 ResourceState {
 	/**
@@ -29,14 +50,14 @@
      */
     AVAILABLE_INTERESTED,
     /**
-      * A resource is no longer "available" 
+      * A resource is no longer "available"
       */
     UNAVAILABLE;
 
     public static boolean isInterested(ResourceState resourceState) {
         return resourceState == CONNECTED_INTERESTED || resourceState == AVAILABLE_INTERESTED;
     }
-    
+
     public static boolean isAvailable(ResourceState resourceState) {
         return resourceState == AVAILABLE || resourceState == AVAILABLE_INTERESTED;
     }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/JVMBuiltinUUIDGenerator.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/JVMBuiltinUUIDGenerator.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/JVMBuiltinUUIDGenerator.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/JVMBuiltinUUIDGenerator.java Tue Apr 21 10:41:56 2009
@@ -1,28 +1,34 @@
-/***********************************************************************
- * 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.uuid;
 
 import java.util.UUID;
 
 /**
  * utilize the JVM's UUID generator
+ *
+ * @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 JVMBuiltinUUIDGenerator implements UUIDGenerator {
-    
+
     public String create() {
         // generates UUID-type 4, pseudo random session id
         // TODO is this random enough?
@@ -30,5 +36,5 @@
         String uuidTrimmed = uuidRaw.replace("-", "");
         return uuidTrimmed;
     }
-    
+
 }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/UUIDGenerator.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/UUIDGenerator.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/UUIDGenerator.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/uuid/UUIDGenerator.java Tue Apr 21 10:41:56 2009
@@ -1,23 +1,29 @@
-/***********************************************************************
- * 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.uuid;
 
 /**
  * at several levels the server has to issue ids, which this generator provides
+ *
+ * @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 UUIDGenerator {
     String create();

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/DenseStanzaLogRenderer.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/DenseStanzaLogRenderer.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/DenseStanzaLogRenderer.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/DenseStanzaLogRenderer.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.writer;
 
 import org.apache.vysper.xmpp.xmlfragment.*;
@@ -28,6 +31,9 @@
 
 /**
  * renders only reduced digest stanza information for logging output
+ *
+ * @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 DenseStanzaLogRenderer {
 
@@ -151,7 +157,7 @@
             stringBuilder.append("???");
             return;
         }
-        
+
         stringBuilder.append(ELEMENT_SEPARATOR);
         stringBuilder.append(firstInnerElement.getName());
     }
@@ -186,7 +192,7 @@
                 renderAttribute(stringBuilder, caps, "ver");
                 renderAttribute(stringBuilder, caps, "ext");
             }
-            
+
         } catch (XMLSemanticError xmlSemanticError) {
             stringBuilder.append("*error*");
         }
@@ -221,7 +227,7 @@
                 } catch (XMLSemanticError xmlSemanticError) {
                     stringBuilder.append("???");
                 }
-            } 
+            }
         }
     }
 }

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/StanzaWriter.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/StanzaWriter.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/StanzaWriter.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/StanzaWriter.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.writer;
 
@@ -23,6 +26,9 @@
  * write stanzas to a stream or other output target
  * the writer must assure that the first, opening stanza is only closed
  * when the writer is closed
+ *
+ * @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 StanzaWriter {
     public final static String XML_PROLOG = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/SystemOutStanzaWriter.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/SystemOutStanzaWriter.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/SystemOutStanzaWriter.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/writer/SystemOutStanzaWriter.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     *
- * 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.writer;
 
 import org.apache.vysper.xmpp.stanza.Stanza;
@@ -21,6 +24,9 @@
 
 /**
  * writes stanza to System.out
+ *
+ * @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 SystemOutStanzaWriter implements StanzaWriter {
 

Modified: mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/xmldecoder/DecodingException.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/xmldecoder/DecodingException.java?rev=767109&r1=767108&r2=767109&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/xmldecoder/DecodingException.java (original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/xmpp/xmldecoder/DecodingException.java Tue Apr 21 10:41:56 2009
@@ -1,22 +1,28 @@
-/***********************************************************************
- * 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.xmldecoder;
 
 /**
+ *
+ * @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 DecodingException extends Exception {
     public DecodingException() {