Aug 25, 2018

[HDGEM] JAX-RS @BeanParam

JAX-RS allows you to encapsulate the information injected via the annotations (@PathParam, @QueryParam, @MatrixParam, @FormParam, @HeaderParam and @CookieParam) within simple POJOs.

@BeanParam is applicable to method, parameter or field.

public class DateRange {
@QueryParam("s")
private int start;
@QueryParam("e")
private int end;

--
Posted By Blogger to HDGEM at 11/24/2016 11:37:00 AM