In this post i will explain you how to capture http-request header in JAX-RS.
- Using @HeaderParam
- Using @Context
###@HeaderParam Example
In this example we can have only the selected attribute we want , JAX-RS will have filter internally and return you the selected Attributes
This will going to print below output :
@Context Example
@Context gives you the whole damn Request Header
This will going to print below output :
Happy Coding .. :)