Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## 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
`String` | `id` The controller method id.
`HttpMethod[]` | `method` The methods this resource is matching, by default all are matched.

### 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}

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2014 eXo Platform SAS. All rights reserved.