Interface ResourceMethodDescriptor

All Superinterfaces:
GenericMethodResource, ResourceDescriptor
All Known Subinterfaces:
SubResourceMethodDescriptor
All Known Implementing Classes:
OptionsRequestResourceMethodDescriptorImpl, ResourceMethodDescriptorImpl, SubResourceMethodDescriptorImpl

public interface ResourceMethodDescriptor extends ResourceDescriptor, GenericMethodResource
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 Details

    • getHttpMethod

      String getHttpMethod()
      Get HTTP method name.
      Returns:
      HTTP method name
    • consumes

      List<javax.ws.rs.core.MediaType> consumes()
      Get list of MediaType which current method consumes.
      Returns:
      list of media types
    • produces

      List<javax.ws.rs.core.MediaType> produces()
      Get list of MediaType which current method produces.
      Returns:
      list of media types