# HG changeset patch # User Torsten Irländer # Date 1366277372 -7200 # Node ID 79e1144949d9776526aeaa17aee7e0eaf759df22 # Parent 6a7a8c67987d206132b921f363d6424b408a2cda Added class to provide basically a REST service under "rest" url. diff -r 6a7a8c67987d -r 79e1144949d9 src/main/java/de/intevation/rest/JaxRsActivator.java --- /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. + * + *

+ * Resources are served relative to the servlet path specified in the {@link ApplicationPath} + * annotation. + *

+ */ +@ApplicationPath("/rest") +public class JaxRsActivator extends Application { + /* class body intentionally left blank */ +}