Search This Blog

Sunday, September 13, 2015

RESTfull @QueryParam and @PathParam, What it Can be and Can't be!


  • All primitive types except char.
  • All wrapper classes of primitive types except Character.
  • Any class with the static method named valueOf(String) that accepts a single String argument.
  • Any class with constructorthat takes a single String as a parameter
  • List<T>, Set<T>, SortedSet<T>, where T matches the already listed criteria. Sometimes parameters many contain more than one value for the same name. If this is the case, this types may be used to obtain all values.

DefaultValue annotation may be used to supply a default value for parameters

No comments: