1 29 30 package com.caucho.soa.rest; 31 32 import java.lang.annotation.ElementType ; 33 import java.lang.annotation.Retention ; 34 import java.lang.annotation.RetentionPolicy ; 35 import java.lang.annotation.Target ; 36 37 40 @Target ({ElementType.PARAMETER}) 41 @Retention (RetentionPolicy.RUNTIME) 42 public @interface RestParam { 43 public static enum Source { PATH, QUERY, POST, HEADER }; 44 45 public Source source() default Source.PATH; 46 } 47 | Popular Tags |