|
Restlet Framework 2.2.2 Java Enterprise Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Patch
Annotation for methods that apply submitted representations as a patch. Its
semantics is equivalent to an HTTP PATCH method. Note that your method must
have one input parameter if you want it to be selected for requests
containing an entity.
Example:
@Patch public Representation update(Representation input); @Patch("json-patch") public String storeJson(String value); @Patch("json-patch|xml-patch:xml|json") public Representation update(Representation value);
Optional Element Summary | |
---|---|
String |
value
Specifies the media type of the request and response entities as extensions. |
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.
|
Restlet Framework 2.2.2 Java Enterprise Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |