org.exoplatform.services.rest
Annotation Type QueryParam


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface QueryParam

QueryParam define the names of query parameters from HTTP request. In this way ResourceContainer gets only query parameters wich it needs. For example: for query string: ?param1=abc¶m2=cba

 ...
 public getMethod(@QueryParam("param1") String qparam) {
 ...
 }
 
Method getMethod gets query parameter "param1"(in this example abc) as String qparam.

Version:
$Id: $
Author:
Andrey Parfonov

Required Element Summary
 String value
          Get the name of specified query parameter.
 

Element Detail

value

public abstract String value
Get the name of specified query parameter.



Copyright © 2009 eXo Platform SAS. All Rights Reserved.