com.sun.jersey.server.linking
Annotation Type Link


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Link

Used to request the addition of a Ref header in the returned HTTP headers. One of value() of #resource() must be specified.


Required Element Summary
 Ref value
          Specifies the link value of the Ref header
 
Optional Element Summary
 String anchor
          Specifies the anchor
 Link.Extension[] extensions
          Specifies extension parameters as name-value pairs.
 String hreflang
          Specifies the lang of the referenced resource
 String media
          Specifies the media
 String rel
          Specifies the relationship.
 String rev
          Specifies the reverse relationship.
 String title
          Specifies the title.
 String type
          Specifies the media type.
 

Element Detail

value

public abstract Ref value
Specifies the link value of the Ref header

rel

public abstract String rel
Specifies the relationship.

Default:
""

rev

public abstract String rev
Specifies the reverse relationship.

Default:
""

type

public abstract String type
Specifies the media type.

Default:
""

title

public abstract String title
Specifies the title.

Default:
""

anchor

public abstract String anchor
Specifies the anchor

Default:
""

media

public abstract String media
Specifies the media

Default:
""

hreflang

public abstract String hreflang
Specifies the lang of the referenced resource

Default:
""

extensions

public abstract Link.Extension[] extensions
Specifies extension parameters as name-value pairs.

Default:
{}


Copyright © 2013 Oracle Corporation. All Rights Reserved.