Annotation Interface Options


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Options
Annotation for methods that describe a resource. Its semantics is equivalent to an HTTP OPTIONS method.

Example:
 @Options
 public ApplicationInfo describe();
 
 @Options("wadl|html")
 public Representation describe();
 
 @Options("wadl?param=val")
 public Representation describeWithParam();
 
 @Options("wadl?param")
 public Representation describeWithParam();
 
 @Options("?param")
 public Representation describeWithParam();
 
Author:
Jerome Louvel
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the media type extension of the response entity.