Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2014-05-29 17:35:01 -0400
committerRoberto Escobar2014-06-02 13:25:58 -0400
commit6ee7512b783106e243a740cde0fab375a6bf5c07 (patch)
treee7204f1bd10ee050f2d095a67baea48c3f0835c8 /plugins/org.eclipse.osee.ote.rest
parenta79269df55f813ef0828f7d41133410b8883639a (diff)
downloadorg.eclipse.osee-6ee7512b783106e243a740cde0fab375a6bf5c07.tar.gz
org.eclipse.osee-6ee7512b783106e243a740cde0fab375a6bf5c07.tar.xz
org.eclipse.osee-6ee7512b783106e243a740cde0fab375a6bf5c07.zip
feature[ats_ATS58828]: Use ApplicationPath JAX-RS annotation instead of context.name
Use JAX-RS ApplicationPath annotation instead of OSGI context.name property to specify the servlet path where the JAX-RS application should be registered to. Change-Id: Ibd6650451b167d636a4aac2119dec7a19882a3e4
Diffstat (limited to 'plugins/org.eclipse.osee.ote.rest')
-rw-r--r--plugins/org.eclipse.osee.ote.rest/OSGI-INF/ote.rest.application.xml1
-rw-r--r--plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteRestApplication.java4
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.rest/OSGI-INF/ote.rest.application.xml b/plugins/org.eclipse.osee.ote.rest/OSGI-INF/ote.rest.application.xml
index 710ac2e223..d049d2731e 100644
--- a/plugins/org.eclipse.osee.ote.rest/OSGI-INF/ote.rest.application.xml
+++ b/plugins/org.eclipse.osee.ote.rest/OSGI-INF/ote.rest.application.xml
@@ -4,6 +4,5 @@
<service>
<provide interface="javax.ws.rs.core.Application"/>
</service>
- <property name="context.name" type="String" value="ote"/>
<reference bind="setOteConfigurationStore" cardinality="1..1" interface="org.eclipse.osee.ote.rest.internal.OteConfigurationStore" name="OteConfigurationStore" policy="static"/>
</scr:component>
diff --git a/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteRestApplication.java b/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteRestApplication.java
index f5b4c4ecdc..4e19126849 100644
--- a/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteRestApplication.java
+++ b/plugins/org.eclipse.osee.ote.rest/src/org/eclipse/osee/ote/rest/internal/OteRestApplication.java
@@ -12,6 +12,7 @@ package org.eclipse.osee.ote.rest.internal;
import java.util.HashSet;
import java.util.Set;
+import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
/**
@@ -19,6 +20,7 @@ import javax.ws.rs.core.Application;
*
* @author Roberto E. Escobar
*/
+@ApplicationPath("ote")
public class OteRestApplication extends Application {
private static OteConfigurationStore store;
@@ -42,7 +44,5 @@ public class OteRestApplication extends Application {
classes.add(OteBatchesResource.class);
return classes;
}
-
-
}

Back to the top