diff src/main/java/de/intevation/rest/JaxRsActivator.java @ 3:79e1144949d9

Added class to provide basically a REST service under "rest" url.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 18 Apr 2013 11:29:32 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/rest/JaxRsActivator.java	Thu Apr 18 11:29:32 2013 +0200
@@ -0,0 +1,18 @@
+package de.intevation.rest;
+
+import javax.ws.rs.ApplicationPath;
+import javax.ws.rs.core.Application;
+
+/**
+ * A class extending {@link Application} and annotated with @ApplicationPath is the Java EE 6
+ * "no XML" approach to activating JAX-RS.
+ * 
+ * <p>
+ * Resources are served relative to the servlet path specified in the {@link ApplicationPath}
+ * annotation.
+ * </p>
+ */
+@ApplicationPath("/rest")
+public class JaxRsActivator extends Application {
+   /* class body intentionally left blank */
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)