Interface ResourceMethodDescriptor
- All Superinterfaces:
GenericMethodResource,ResourceDescriptor
- All Known Subinterfaces:
SubResourceMethodDescriptor
- All Known Implementing Classes:
OptionsRequestResourceMethodDescriptorImpl,ResourceMethodDescriptorImpl,SubResourceMethodDescriptorImpl
Describe resource method. Resource method is method of resource class which
has annotation
HttpMethod, e.g. GET
and has not Path annotation.- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Method Summary
Methods inherited from interface org.exoplatform.services.rest.resource.GenericMethodResource
getMethod, getMethodInvoker, getMethodParameters, getParentResource, getResponseTypeMethods inherited from interface org.exoplatform.services.rest.resource.ResourceDescriptor
accept
-
Method Details
-
getHttpMethod
String getHttpMethod()Get HTTP method name.- Returns:
- HTTP method name
-
consumes
List<javax.ws.rs.core.MediaType> consumes()Get list ofMediaTypewhich current method consumes.- Returns:
- list of media types
-
produces
List<javax.ws.rs.core.MediaType> produces()Get list ofMediaTypewhich current method produces.- Returns:
- list of media types
-