juzu

## Annotation Type Resource

-     @Retention(value=RUNTIME)
      @Target(value=METHOD)
      public @interface Resource

  Annotate a method for declaring a resource serving controller method. `

          public void MyController {

             @Resource
             public void myResource() {
                ...
             }
          }

  `
  Author:
    Julien Viet

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `id` The controller method id.
    `HttpMethod[]` | `method` The methods this resource is matching, by default all are matched.

- - ### Element Detail

    - #### id

          public abstract String id

      The controller method id.
      Returns:
        the controller method id
      Default:
        ""

    - #### method

          public abstract HttpMethod[] method

      The methods this resource is matching, by default all are matched.
      Returns:
        the http verbs
      Default:
        {juzu.HttpMethod.GET, juzu.HttpMethod.HEAD, juzu.HttpMethod.POST, juzu.HttpMethod.PUT, juzu.HttpMethod.DELETE, juzu.HttpMethod.TRACE, juzu.HttpMethod.OPTIONS, juzu.HttpMethod.CONNECT}

Copyright © 2016 eXo Platform SAS. All rights reserved.