Revision: b597d34f8e65
Author: Jean Deruelle <[email protected]>
Date: Fri Apr 25 15:02:16 2014 UTC
Log: Update Issue 37
patch committed
(cherry picked from commit 6a615c107944c37589fdf1858b1e8f2a226a9c9d)
http://code.google.com/p/sipservlets/source/detail?r=b597d34f8e65
Modified:
/containers/sip-servlets-as7-drop-in/jboss-as-mobicents/src/main/java/org/mobicents/as7/deployment/SipAnnotationDeploymentProcessor.java
/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/annotations/ClassFileScanner.java
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/b2bua/B2BUATcpUdpTest.java
=======================================
---
/containers/sip-servlets-as7-drop-in/jboss-as-mobicents/src/main/java/org/mobicents/as7/deployment/SipAnnotationDeploymentProcessor.java
Fri Sep 28 21:18:29 2012 UTC
+++
/containers/sip-servlets-as7-drop-in/jboss-as-mobicents/src/main/java/org/mobicents/as7/deployment/SipAnnotationDeploymentProcessor.java
Fri Apr 25 15:02:16 2014 UTC
@@ -1,24 +1,22 @@
/*
- * TeleStax, Open Source Cloud Communications Copyright 2012.
- * and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * TeleStax, Open Source Cloud Communications
+ * Copyright 2011-2014, Telestax Inc and individual contributors
+ * by the @authors tag.
*
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
+ * This program is free software: you can redistribute it and/or modify
+ * under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
- * This software is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
*/
+
package org.mobicents.as7.deployment;
import java.lang.reflect.Modifier;
@@ -279,7 +277,8 @@
if(types.length != 1 |
| !types[0].name().toString().equals(SipServletRequest.class.getName())) {
throw new DeploymentUnitProcessingException("A method
annotated with the @SipApplicationKey annotation MUST have a single
argument of type SipServletRequest");
}
- if(sipMetaData.getSipApplicationKeyMethodInfo() != null) {
+ if(sipMetaData.getSipApplicationKeyMethodInfo() != null
&& !sipMetaData.getSipApplicationKeyMethodInfo().equals(methodInfo)) {
+ //
https://code.google.com/p/sipservlets/issues/detail?id=37
throw new DeploymentUnitProcessingException("More than
one SipApplicationKey annotated method is not allowed.");
}
final SipApplicationKeyMethodInfo
sipApplicationKeyMethodInfo = new
SipApplicationKeyMethodInfo(methodInfo.declaringClass().name().toString(),
methodInfo.name());
=======================================
---
/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/annotations/ClassFileScanner.java
Tue Mar 27 15:02:55 2012 UTC
+++
/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/annotations/ClassFileScanner.java
Fri Apr 25 15:02:16 2014 UTC
@@ -1,19 +1,22 @@
/*
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
+ * TeleStax, Open Source Cloud Communications
+ * Copyright 2011-2014, Telestax Inc and individual contributors
+ * by the @authors tag.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
- * This software is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
*/
+
package org.mobicents.servlet.sip.annotations;
import java.io.File;
@@ -35,7 +38,6 @@
import org.mobicents.servlet.sip.annotation.ConcurrencyControl;
import org.mobicents.servlet.sip.catalina.CatalinaSipContext;
import org.mobicents.servlet.sip.catalina.SipServletImpl;
-import org.mobicents.servlet.sip.core.SipContext;
/**
* This class implement the logic to enumerate all class files in
@@ -257,7 +259,8 @@
throw new
AnnotationVerificationException(
"A method annotated with the @SipApplicationKey annotation MUST
have a single argument of type SipServletRequest");
}
- if(this.sipAppKey != null) {
+ if(this.sipAppKey != null &&
!sipAppKey.equals(method)) {
+ //
https://code.google.com/p/sipservlets/issues/detail?id=37
throw new IllegalStateException(
"More than one SipApplicationKey
annotated method is not allowed.");
}
=======================================
---
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/b2bua/B2BUATcpUdpTest.java
Fri Apr 25 14:45:43 2014 UTC
+++
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/b2bua/B2BUATcpUdpTest.java
Fri Apr 25 15:02:16 2014 UTC
@@ -1,23 +1,20 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * TeleStax, Open Source Cloud Communications
+ * Copyright 2011-2014, Telestax Inc and individual contributors
+ * by the @authors tag.
*
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
+ * This program is free software: you can redistribute it and/or modify
+ * under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
- * This software is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
*/
package org.mobicents.servlet.sip.testsuite.b2bua;
--
---
You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.