Skip to content

Commit 2588a90

Browse files
committed
MVC: cleanup annotation processor
1 parent d9c2355 commit 2588a90

25 files changed

+657
-740
lines changed

jooby/src/main/java/io/jooby/annotations/CONNECT.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,33 @@
225225
@Retention(RetentionPolicy.RUNTIME)
226226
@Target(ElementType.METHOD)
227227
public @interface CONNECT {
228+
/**
229+
* Path pattern. This is a shortcut for {@link #path()}.
230+
*
231+
* @return Path pattern.
232+
*/
233+
String[] value() default {};
234+
235+
/**
236+
* Path pattern.
237+
*
238+
* @return Path pattern.
239+
*/
240+
String[] path() default {};
241+
242+
/**
243+
* Produce types. Check the <code>Accept</code> header against this value or send a
244+
* "406 Not Acceptable" response.
245+
*
246+
* @return Produce types.
247+
*/
248+
String[] produces() default {};
249+
250+
/**
251+
* Consume types. Check the <code>Content-Type</code> header against this value or send a
252+
* "415 Unsupported Media Type" response.
253+
*
254+
* @return Consume types.
255+
*/
256+
String[] consumes() default {};
228257
}

jooby/src/main/java/io/jooby/annotations/Consumes.java

Lines changed: 0 additions & 240 deletions
This file was deleted.

jooby/src/main/java/io/jooby/annotations/DELETE.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,33 @@
225225
@Retention(RetentionPolicy.RUNTIME)
226226
@Target(ElementType.METHOD)
227227
public @interface DELETE {
228+
/**
229+
* Path pattern. This is a shortcut for {@link #path()}.
230+
*
231+
* @return Path pattern.
232+
*/
233+
String[] value() default {};
234+
235+
/**
236+
* Path pattern.
237+
*
238+
* @return Path pattern.
239+
*/
240+
String[] path() default {};
241+
242+
/**
243+
* Produce types. Check the <code>Accept</code> header against this value or send a
244+
* "406 Not Acceptable" response.
245+
*
246+
* @return Produce types.
247+
*/
248+
String[] produces() default {};
249+
250+
/**
251+
* Consume types. Check the <code>Content-Type</code> header against this value or send a
252+
* "415 Unsupported Media Type" response.
253+
*
254+
* @return Consume types.
255+
*/
256+
String[] consumes() default {};
228257
}

jooby/src/main/java/io/jooby/annotations/GET.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,33 @@
225225
@Retention(RetentionPolicy.RUNTIME)
226226
@Target(ElementType.METHOD)
227227
public @interface GET {
228+
/**
229+
* Path pattern. This is a shortcut for {@link #path()}.
230+
*
231+
* @return Path pattern.
232+
*/
228233
String[] value() default {};
229234

235+
/**
236+
* Path pattern.
237+
*
238+
* @return Path pattern.
239+
*/
230240
String[] path() default {};
231241

242+
/**
243+
* Produce types. Check the <code>Accept</code> header against this value or send a
244+
* "406 Not Acceptable" response.
245+
*
246+
* @return Produce types.
247+
*/
232248
String[] produces() default {};
233249

250+
/**
251+
* Consume types. Check the <code>Content-Type</code> header against this value or send a
252+
* "415 Unsupported Media Type" response.
253+
*
254+
* @return Consume types.
255+
*/
234256
String[] consumes() default {};
235257
}

jooby/src/main/java/io/jooby/annotations/HEAD.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,33 @@
225225
@Retention(RetentionPolicy.RUNTIME)
226226
@Target(ElementType.METHOD)
227227
public @interface HEAD {
228+
/**
229+
* Path pattern. This is a shortcut for {@link #path()}.
230+
*
231+
* @return Path pattern.
232+
*/
233+
String[] value() default {};
234+
235+
/**
236+
* Path pattern.
237+
*
238+
* @return Path pattern.
239+
*/
240+
String[] path() default {};
241+
242+
/**
243+
* Produce types. Check the <code>Accept</code> header against this value or send a
244+
* "406 Not Acceptable" response.
245+
*
246+
* @return Produce types.
247+
*/
248+
String[] produces() default {};
249+
250+
/**
251+
* Consume types. Check the <code>Content-Type</code> header against this value or send a
252+
* "415 Unsupported Media Type" response.
253+
*
254+
* @return Consume types.
255+
*/
256+
String[] consumes() default {};
228257
}

0 commit comments

Comments
 (0)