@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Post
@Post public MyOutputBean accept(MyInputBean input); @Post("json") public String acceptJson(String value); @Post("xml|json:xml|json") public Representation accept(Representation xmlValue); @Post("json?param=val") public Representation acceptWithParam(String value); @Post("json?param") public Representation acceptWithParam(String value); @Post("?param") public Representation acceptWithParam(String value);
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value
Specifies the media type of the request and response entities as
extensions.
|
public abstract java.lang.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-2024 Restlet.