Mercurial > lada > lada-server
annotate src/main/java/de/intevation/rest/JaxRsActivator.java @ 6:5dcccaf3d007
Changed return string
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 18 Apr 2013 12:13:21 +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 } |