Annotation Interface Patch
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@HttpMethodMapping
@Inherited
public @interface Patch
Annotation that can be applied to method to signify the method receives a
HttpMethod.PATCH.- Since:
- 1.0
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]String[]Shortcut that allows setting both theconsumes()andproduces()settings to the same media type.String[]booleanString[]Only to be used in the context of a server.
-
Element Details
-
value
@AliasFor(annotation=HttpMethodMapping.class,member="value") @AliasFor(annotation=UriMapping.class,member="value") String value- Returns:
- The URI of the PATCH route
- Default:
"/"
-
uri
@AliasFor(annotation=HttpMethodMapping.class,member="value") @AliasFor(annotation=UriMapping.class,member="value") String uri- Returns:
- The URI of the PATCH route
- Default:
"/"
-
uris
@AliasFor(annotation=HttpMethodMapping.class,member="uris") @AliasFor(annotation=UriMapping.class,member="uris") String[] urisOnly to be used in the context of a server.- Returns:
- The URIs of the PATCH route
- Default:
{"/"}
-
consumes
-
produces
-
processes
@AliasFor(annotation=Produces.class,member="value") @AliasFor(annotation=Consumes.class,member="value") String[] processesShortcut that allows setting both theconsumes()andproduces()settings to the same media type.- Returns:
- The media type this method processes
- Default:
{}
-
single
-