org.jboss.resteasy.plugins.providers.atom
Class Link

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.atom.CommonAttributes
      extended by org.jboss.resteasy.plugins.providers.atom.Link
Direct Known Subclasses:
BaseLink, RelativeLink

public class Link
extends CommonAttributes

Per RFC4287:

  The "atom:link" element defines a reference from an entry or feed to
  a Web resource.  This specification assigns no meaning to the content
  (if any) of this element.
 

atomLink = element atom:link { atomCommonAttributes, attribute href { atomUri }, attribute rel { atomNCName | atomUri }?, attribute type { atomMediaType }?, attribute hreflang { atomLanguageTag }?, attribute title { text }?, attribute length { text }?, undefinedContent }

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  java.net.URI href
           
protected  java.lang.String hreflang
           
protected  java.lang.String length
           
protected  java.lang.String rel
           
protected  java.lang.String title
           
protected  MediaType type
           
 
Constructor Summary
Link()
           
Link(java.lang.String rel, java.lang.String href)
           
Link(java.lang.String rel, java.lang.String href, MediaType type)
           
Link(java.lang.String rel, java.lang.String href, java.lang.String type)
           
Link(java.lang.String rel, java.net.URI href)
           
Link(java.lang.String rel, java.net.URI href, MediaType type)
           
 
Method Summary
 java.net.URI getHref()
           
 java.lang.String getHreflang()
           
 java.lang.String getLength()
           
 java.lang.String getRel()
           
 java.lang.String getTitle()
           
 MediaType getType()
           
 void setHref(java.net.URI href)
           
 void setHreflang(java.lang.String hreflang)
           
 void setLength(java.lang.String length)
           
 void setRel(java.lang.String rel)
           
 void setTitle(java.lang.String title)
           
 void setType(MediaType type)
           
 
Methods inherited from class org.jboss.resteasy.plugins.providers.atom.CommonAttributes
getBase, getExtensionAttributes, getLanguage, setBase, setLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

href

protected java.net.URI href

rel

protected java.lang.String rel

type

protected MediaType type

hreflang

protected java.lang.String hreflang

title

protected java.lang.String title

length

protected java.lang.String length
Constructor Detail

Link

public Link()

Link

public Link(java.lang.String rel,
            java.net.URI href)

Link

public Link(java.lang.String rel,
            java.net.URI href,
            MediaType type)

Link

public Link(java.lang.String rel,
            java.lang.String href)

Link

public Link(java.lang.String rel,
            java.lang.String href,
            MediaType type)

Link

public Link(java.lang.String rel,
            java.lang.String href,
            java.lang.String type)
Method Detail

getHref

public java.net.URI getHref()

setHref

public void setHref(java.net.URI href)

getRel

public java.lang.String getRel()

setRel

public void setRel(java.lang.String rel)

getType

public MediaType getType()

setType

public void setType(MediaType type)

getHreflang

public java.lang.String getHreflang()

setHreflang

public void setHreflang(java.lang.String hreflang)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getLength

public java.lang.String getLength()

setLength

public void setLength(java.lang.String length)


Copyright © 2010. All Rights Reserved.