Debian Codegraph @

resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/metadata/ResourceMethod.java

raw symbols SCIP
1 package org.jboss.resteasy.spi.metadata;
2
3 import javax.ws.rs.core.MediaType;
4 import java.lang.annotation.Annotation;
5 import java.lang.reflect.Method;
6 import java.lang.reflect.Type;
7 import java.util.HashSet;
8 import java.util.Set;
9
10 /**
11 * @author <a href="mailto:[email protected]">Bill Burke</a>
12 * @version $Revision: 1 $
13 */
14 public class ResourceMethod extends ResourceLocator
15 {
16 private static final MediaType[] empty = {};
17 protected Set<String> httpMethods = new HashSet<String>();
18 protected MediaType[] produces = empty;
19 protected MediaType[] consumes = empty;
20 protected boolean asynchronous;
21
22 public ResourceMethod(ResourceClass declaredClass, Method method, Method annotatedMethod)
23 {
24 super(declaredClass, method, annotatedMethod);
25 }
26
27 public Set<String> getHttpMethods()
28 {
29 return httpMethods;
30 }
31
32 public MediaType[] getProduces()
33 {
34 return produces;
35 }
36
37 public MediaType[] getConsumes()
38 {
39 return consumes;
40 }
41
42 public boolean isAsynchronous()
43 {
44 return asynchronous;
45 }
46 }