# Jersey RESTful Web services Samples

This subdirectory contains Jersey samples. You should refer to the individual README files in each top level sample directory for detailed instructions for each example.

## Samples

All samples were taken from Jersey project at http://jersey.java.net/, and are available also on java.net maven repository at https://maven.java.net/content/repositories/releases/com/sun/jersey/samples/jersey-samples/.

## Setup

Each sample has it's own README file saying how to run the example, including container setup.
For running the examples from command line you will need maven installed.

Another option would be to run the examples using NetBeans 6.9.1

Some samples refer to use of curl, which is useful utility for testing resources.
More about curl can be found here. It can be downloaded from curl download.

These two files `assembly.xml` and `pom.xml` are included to allow users to build all samples using maven from top level samples directory.

### Running Samples

The following samples are included:

- atompub-contacts
- bookmark
- bookmark-em
- bookstore
- entity-provider
- exceptions
- extended-wadl-webapp
- freemarker
- generate-wadl
- groovy
- helloworld
- helloworld-osgi-webapp
- helloworld-webapp
- https-clientserver-grizzly
- https-server-glassfish
- jacksonjsonprovider
- jaxb
- jersey-cdi
- jersey-ejb
- jersey-guice-filter
- jersey-server-linking-sample
- json-from-jaxb
- jsonp
- managed-beans-webapp
- mandel
- moxy
- moxy-oxm-mapping
- multipart-webapp
- oauth-client-twitter
- optimistic-concurrency
- osgi-http-service
- scala-helloworld-webapp
- simple-atom-server
- simple-console
- simple-servlet
- sparklines
- spring-annotations
- storage-service