Annotation Interface MethodMapping


@Retention(RUNTIME) @Target(METHOD) public @interface MethodMapping
Annotation used to map a resource method to a given URL. The specified URL can contain parameter segment (for example '{id}') and we can specify also the request method that must be used.
Author:
andrea del bene
See Also:
  • HttpMethod
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    org.wicketstuff.restutils.http.HttpMethod
     
     
  • Element Details

    • httpMethod

      org.wicketstuff.restutils.http.HttpMethod httpMethod
      Default:
      GET
    • consumes

      String consumes
      Default:
      "application/json"
    • produces

      String produces
      Default:
      "application/json"