Annotation Interface Options


Annotation that can be applied to method to signify the method receives a HttpMethod.OPTIONS.
Since:
1.0
  • Element Details

    • value

      @AliasFor(annotation=HttpMethodMapping.class,member="value") @AliasFor(annotation=UriMapping.class,member="value") String value
      Returns:
      The URI of the OPTIONS route
      Default:
      "/"
    • uri

      @AliasFor(annotation=HttpMethodMapping.class,member="value") @AliasFor(annotation=UriMapping.class,member="value") String uri
      Returns:
      The URI of the OPTIONS route
      Default:
      "/"
    • uris

      @AliasFor(annotation=HttpMethodMapping.class,member="uris") @AliasFor(annotation=UriMapping.class,member="uris") String[] uris
      Only to be used in the context of a server.
      Returns:
      The URIs of the OPTIONS route
      Default:
      {"/"}
    • consumes

      @AliasFor(annotation=Consumes.class, member="value") String[] consumes
      Returns:
      The default consumes, otherwise override from controller
      Default:
      {}