49 */ |
49 */ |
50 HttpMethod method(); |
50 HttpMethod method(); |
51 |
51 |
52 /** |
52 /** |
53 * Specifies the request path relative to the module path. |
53 * Specifies the request path relative to the module path. |
54 * <p> |
54 * The path must be specified <em>without</em> leading slash, but may have a trailing slash. |
55 * If a menu key is specified, this is also the path, which is linked |
55 * Requests will only be handled if the path exactly matches. |
56 * by the menu entry. |
|
57 * <p> |
|
58 * The path must be specified <em>without</em> leading and trailing slash. |
|
59 * |
56 * |
60 * @return the request path the annotated method should handle |
57 * @return the request path the annotated method should handle |
61 */ |
58 */ |
62 String requestPath() default ""; |
59 String requestPath() default ""; |
63 |
|
64 /** |
|
65 * Specifies the properties key for the sub menu label. |
|
66 * An empty string (default) means that no sub menu entry shall be created. |
|
67 * <p> |
|
68 * This should only be used for {@link HttpMethod#GET} requests. |
|
69 * |
|
70 * @return the properties key |
|
71 */ |
|
72 String menuKey() default ""; |
|
73 |
|
74 /** |
|
75 * May be changed to control the ordering of menu items. |
|
76 * |
|
77 * @return an integer to control the ordering |
|
78 */ |
|
79 int menuSequence() default 0; |
|
80 } |
60 } |