| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" |
| 3 |
"http://java.sun.com/dtd/web-app_2_3.dtd"> |
| 4 |
|
| 5 |
<web-app> |
| 6 |
<!-- resteasy specific feature |
| 7 |
<context-param> |
| 8 |
<param-name>resteasy.media.type.mappings</param-name> |
| 9 |
<param-value>html : text/html, txt : text/plain, xml : application/xml</param-value> |
| 10 |
</context-param> |
| 11 |
--> |
| 12 |
|
| 13 |
<servlet> |
| 14 |
<servlet-name>Jersey Web Application</servlet-name> |
| 15 |
<servlet-class> |
| 16 |
com.sun.jersey.spi.container.servlet.ServletContainer |
| 17 |
</servlet-class> |
| 18 |
<init-param> |
| 19 |
<param-name>javax.ws.rs.Application</param-name> |
| 20 |
<param-value>com.restfully.shop.services.ShoppingApplication</param-value> |
| 21 |
</init-param> |
| 22 |
|
| 23 |
<!-- jersey equivalent of resteasy context-param "resteasy.media.type.mappings" --> |
| 24 |
<init-param> |
| 25 |
<param-name>com.sun.jersey.config.property.MediaTypeMappings</param-name> |
| 26 |
<param-value>html : text/html, txt : text/plain, xml : application/xml</param-value> |
| 27 |
</init-param> |
| 28 |
</servlet> |
| 29 |
|
| 30 |
<servlet-mapping> |
| 31 |
<servlet-name>Jersey Web Application</servlet-name> |
| 32 |
<url-pattern>/*</url-pattern> |
| 33 |
</servlet-mapping> |
| 34 |
|
| 35 |
</web-app> |