Annotation Interface Get


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Get
Annotation for methods that retrieve a resource representation. Its semantics is equivalent to an HTTP GET method.

Example:
 @Get
 public MyBean represent();
 
 @Get("json")
 public String toJson();
 
 @Get("xml|html")
 public Representation represent();
 
 @Get("json?param=val")
 public Representation representWithParam();
 
 @Get("json?param")
 public Representation representWithParam();
 
 @Get("?param")
 public Representation representWithParam();
 
Author:
Jerome Louvel
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the media type extension of the response entity.