Author: apaliwal
Date: Tue Apr 21 07:43:19 2009
New Revision: 767058
URL: http://svn.apache.org/viewvc?rev=767058&view=rev
Log:
Updated Header and added Date and Rev as per MINA header. Updated spring and
StanzaSession packages
Submitted By: Ashish Paliwal (apaliwal.at.apache.org)
Modified:
mina/sandbox/vysper/src/main/java/org/apache/vysper/spring/ServerMain.java
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSession.java
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionContext.java
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionFactory.java
Modified:
mina/sandbox/vysper/src/main/java/org/apache/vysper/spring/ServerMain.java
URL:
http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/spring/ServerMain.java?rev=767058&r1=767057&r2=767058&view=diff
==============================================================================
--- mina/sandbox/vysper/src/main/java/org/apache/vysper/spring/ServerMain.java
(original)
+++ mina/sandbox/vysper/src/main/java/org/apache/vysper/spring/ServerMain.java
Tue Apr 21 07:43:19 2009
@@ -25,7 +25,7 @@
* starts the server as a standalone application using a Spring configuration
*
* @author The Apache MINA Project ([email protected])
- * @version $Rev$ , $Date$
+ * @version $Revision$ , $Date$
*/
public class ServerMain {
Modified:
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSession.java
URL:
http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSession.java?rev=767058&r1=767057&r2=767058&view=diff
==============================================================================
---
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSession.java
(original)
+++
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSession.java
Tue Apr 21 07:43:19 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.stanzasession;
import org.apache.vysper.xmpp.stanza.Stanza;
/**
+ *
+ * @author The Apache MINA Project ([email protected])
+ * @version $Revision$ , $Date$
*/
public class StanzaSession {
-
+
protected StanzaSessionContext sessionContext;
protected StanzaSession(StanzaSessionContext sessionContext) {
Modified:
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionContext.java
URL:
http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionContext.java?rev=767058&r1=767057&r2=767058&view=diff
==============================================================================
---
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionContext.java
(original)
+++
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionContext.java
Tue Apr 21 07:43:19 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.stanzasession;
import org.apache.vysper.xmpp.protocol.SessionStateHolder;
@@ -28,7 +31,10 @@
/**
* a session running in the server VM based on using Vysper's built-in
{...@link org.apache.vysper.xmpp.stanza.Stanza}
- * object. this is an unconvential use, it does not rely on a network
connection.
+ * object. this is an unconvential use, it does not rely on a network
connection.
+ *
+ * @author The Apache MINA Project ([email protected])
+ * @version $Revision$ , $Date$
*/
public class StanzaSessionContext extends AbstractSessionContext implements
StanzaWriter {
@@ -45,13 +51,13 @@
public void sendStanzaToServer(Stanza stanza) {
serverRuntimeContext.getStanzaProcessor().processStanza(getServerRuntimeContext(),
this, stanza, sessionStateHolder);
}
-
+
public void switchToTLS() {
if (sessionStateHolder.getState() == SessionState.ENCRYPTION_STARTED)
sessionStateHolder.setState(SessionState.ENCRYPTED);
}
public void setIsReopeningXMLStream() {
- boolean isReopeningXMLStream = true; // currently not in use.
+ boolean isReopeningXMLStream = true; // currently not in use.
}
public void write(Stanza stanza) {
@@ -61,7 +67,7 @@
public void close() {
return;
}
-
+
public Stanza getNextStanza() {
return stanzaQueue.poll();
}
Modified:
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionFactory.java
URL:
http://svn.apache.org/viewvc/mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionFactory.java?rev=767058&r1=767057&r2=767058&view=diff
==============================================================================
---
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionFactory.java
(original)
+++
mina/sandbox/vysper/src/main/java/org/apache/vysper/stanzasession/StanzaSessionFactory.java
Tue Apr 21 07:43:19 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.stanzasession;
import org.apache.vysper.xmpp.protocol.SessionStateHolder;
@@ -22,13 +25,16 @@
import org.apache.vysper.xmpp.server.Endpoint;
/**
+ *
+ * @author The Apache MINA Project ([email protected])
+ * @version $Revision$ , $Date$
*/
public class StanzaSessionFactory implements Endpoint {
-
+
private ServerRuntimeContext serverRuntimeContext;
/**
- * returns a new session for the server. the session behaves like a
client, but lives within the server JVM
+ * returns a new session for the server. the session behaves like a
client, but lives within the server JVM
*/
public StanzaSession createNewSession() {
SessionStateHolder stateHolder = new SessionStateHolder();