annotate src/main/java/de/intevation/rest/JaxRsActivator.java @ 7:8bffb9e465c9

Added test call
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 18 Apr 2013 13:01:10 +0200
parents 79e1144949d9
children
rev   line source
3
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 package de.intevation.rest;
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 import javax.ws.rs.ApplicationPath;
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 import javax.ws.rs.core.Application;
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 /**
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 * A class extending {@link Application} and annotated with @ApplicationPath is the Java EE 6
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 * "no XML" approach to activating JAX-RS.
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 *
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 * <p>
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 * Resources are served relative to the servlet path specified in the {@link ApplicationPath}
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 * annotation.
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 * </p>
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 */
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 @ApplicationPath("/rest")
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 public class JaxRsActivator extends Application {
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 /* class body intentionally left blank */
79e1144949d9 Added class to provide basically a REST service under "rest" url.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)