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

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

public @interface RequestMapping

A path, and optionally a verb, for a controller or one of its methods.

On a class it prefixes every mapping inside it. On a method it is the general form of the verb-specific annotations beside it, for verbs they do not cover.

Methods

public abstract String[] value() default {}The path, or paths, this mapping answers on.
public abstract String method() default ""The HTTP verb, when this is used on a method directly.

Method details

value

public abstract String[] value() default {}
The path, or paths, this mapping answers on.

method

public abstract String method() default ""
The HTTP verb, when this is used on a method directly.