Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chandu0101/jaxrs-samples
Jaxs 2.0 RESTFUL
https://github.com/chandu0101/jaxrs-samples
Last synced: 25 days ago
JSON representation
Jaxs 2.0 RESTFUL
- Host: GitHub
- URL: https://github.com/chandu0101/jaxrs-samples
- Owner: chandu0101
- Created: 2014-05-25T22:49:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-01T20:34:00.000Z (over 10 years ago)
- Last Synced: 2024-10-15T08:45:53.488Z (2 months ago)
- Language: Java
- Homepage:
- Size: 387 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jaxrs-samples
==============Where I learn about Jaxrs 2.0 restful webservices
**Environment** : Java SE8 , Java EE7 ,RESTFUL , Arquillian , MongoDB , IntellijIDEA
**Module Dependency** :![module dependency](/commonapi/src/main/resources/modules.png?raw=true)
**jaxrs_samples : Parent Project**
**Commonapi** : Common project for all other modules ,which provides services,utils etc ...
**Helloworld** : Just Simple jaxrs 2.0 RESTFUL helloworld message app
**HtppMethods** : Jaxrs 2.0 app which will demonstrate http method bindings
• @javax.ws.rs.GET
• @javax.ws.rs.PUT
• @javax.ws.rs.POST
• @javax.ws.rs.DELETE
**SubResourceLocator** : Subresource lo‐ cators are Java methods annotated with @Path, but with no HTTP method annotation, like @GET, applied to them. This type of method returns an object that is, itself, a JAX- RS annotated service that knows how to dispatch the remainder of the request.
[More Info](http://docs.oracle.com/javaee/6/tutorial/doc/gknav.html)
**Jaxrs Injection** : Examples of jaxrs injections
@javax.ws.rs.PathParam
This annotation allows you to extract values from URI template parameters.
@javax.ws.rs.MatrixParam
This annotation allows you to extract values from URI matrix parameters.
@javax.ws.rs.QueryParam
This annotation allows you to extract values from URI query parameters.
@javax.ws.rs.FormParam
This annotation allows you to extract values from posted form data.
@javax.ws.rs.HeaderParam
This annotation allows you to extract values from HTTP request headers.
@javax.ws.rs.CookieParam
This annotation allows you to extract values from HTTP cookies set by the client.
@javax.ws.rs.BeanParam
It allows you to inject an application-specific class whose property methods or fields are annotated with any of the injection parameters mentioned above
**Custom Marshalling** : Example of marshalling/unmarshalling a custom format
{key -> value ,key -> value} using javax.ws.rs.ext.MessageBodyReader and javax.ws.rs.ext.MessageBodyWriter.
**Caching** : Examples of using HTTP 1.1 CacheControl , caching using ETAG , conditional updates etc ..**Filters** : Example of using request and response filters