Annotation Interface MethodProperties


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface MethodProperties
An optional annotation to customize generated JAX-RS resource methods.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Expose this operation as a JAX-RS endpoint.
    URL path segment that should be used to access this operation.
    List of the security roles permitted to access this operation.
  • Element Details

    • exposed

      boolean exposed
      Expose this operation as a JAX-RS endpoint.

      Default: true

      Default:
      true
    • path

      String path
      URL path segment that should be used to access this operation. This path segment is appended to the segment specified with the ResourceProperties annotation used on this resource.

      Default: ""

      Default:
      ""
    • rolesAllowed

      String[] rolesAllowed
      List of the security roles permitted to access this operation.

      Default: ""

      Default:
      {}