Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

@Retention(CLASS) @Target({METHOD})

public @interface PatchMapping

Maps an HTTP PATCH to this method.

The path may carry {name} segments, bound with PathVariable.

Methods

public abstract String[] value() default {}The path, relative to any RequestMapping on the class.
public abstract String[] consumes() default {}Media types the route takes, matched against the request’s Content-Type; a request outside them is answered 415.
public abstract String[] produces() default {}Media types the route answers with, matched against the request’s Accept; a request that accepts none of them is answered 406.

Method details

value

public abstract String[] value() default {}
The path, relative to any RequestMapping on the class.

consumes

public abstract String[] consumes() default {}
Media types the route takes, matched against the request’s Content-Type; a request outside them is answered 415. Empty takes any.

produces

public abstract String[] produces() default {}
Media types the route answers with, matched against the request’s Accept; a request that accepts none of them is answered 406. Empty answers anything. The handler still sets the type of what it returns.