Mercurial > lada > lada-server
annotate src/main/java/de/intevation/rest/JaxRsActivator.java @ 16:823a417cb8e5
Configured which datasource to use in the project. The datasource is
configured as datasource in JBoss.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 26 Apr 2013 13:13:20 +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 } |