Annotation Type Get

public @interface Get

Annotation for methods that retrieve a resource representation. Its semantics is equivalent to an HTTP GET method.


 public MyBean represent();
 public String toJson();
 public Representation represent();

Jerome Louvel

Optional Element Summary
 String value
          Specifies the media type extension of the response entity.


public abstract 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 in MetadataService. For a list of all predefined extensions, please check MetadataService.addCommonExtensions(). New extension can be registered using MetadataService.addExtension(String, method.

The result media types.

Copyright © 2005-2013 Restlet S.A.S..