Annotation Type 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
      String value  
      • httpMethod

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

        String consumes
        Default:
        "application/json"
      • produces

        String produces
        Default:
        "application/json"