WELCOME Abdennour : Software engineer

May 19, 2012

Understanding REST WS Annotations deeply :Part3


1. @PathParam: Extract values ​​of Template Parameters
2. @QueryParam: Extract values ​​of query parameters
3. @ FormParam : Extract parameter values ​​form
4. @ HeaderParam: Extract the parameters of the header
5. @ CookieParam: Retrieve cookie settings
6. @ Context: Extract information related to the resources of context.


We will follow the Example of M.Baron : 

NOTE : 
*Annotations can be used on Java types following :
   A) Primitive types except char and the classes that encapsulate it
   B) All classes have a constructor with string parameter
    C) All classes with the static method valueOf (String)
    D) List <T>, Set <T> and SortedSet <T> 



1. @PathParam: Extract values (of Request HTTP )​​of Template Parameters

2. @QueryParam: Extract values ​​of query parameters

3. @ FormParam : Extract parameter values ​​form
vxc
4. @ HeaderParam: Extract the parameters of the header

5. @ CookieParam: Retrieve cookie settings

6. @ Context: Extract information related to the resources of context.


No comments:

Post a Comment