org.exoplatform.services.rest
Annotation Type URIParam
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface URIParam
UriParam define the names of URI. In this way ResourceContainer gets only URI
parameters wich it needs. For example:
URI pattern: /level1/{id1}/level2/{id2}/level3
and URI: /level1/myID1/level2/myID2/level3
...
public getMethod(@URIParam("id2") String id) {
...
}
Method getMethod gets URI parameter "id2" (in this example myID2) as
String id.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
|
Required Element Summary |
String |
value
Get name of URI parameter. |
value
public abstract String value
- Get name of URI parameter.
Copyright © 2009 eXo Platform SAS. All Rights Reserved.