Package org.restlet.client.resource
Annotation Type 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 java.lang.String
value
Specifies the media type extension of the response entity.
-
-
-
Element Detail
-
value
java.lang.String value
Specifies the media type extension of the response entity. If several media types are supported, their extension can be specified separated by "|" characters. Note that this isn't the full MIME type value, just the extension name declared inMetadataService
. For a list of all predefined extensions, please checkMetadataService.addCommonExtensions()
. New extension can be registered usingMetadataService.addExtension(String, org.restlet.client.data.Metadata)
method.- Returns:
- The result media types.
- Default:
- ""
-
-