@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Get
@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();
public abstract String value
MetadataService. For a list of all predefined
extensions, please check MetadataService.addCommonExtensions(). New
extension can be registered using
MetadataService.addExtension(String, org.restlet.data.Metadata)
method.Copyright © 2005–2025. All rights reserved.