|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.ext.atom.Link
public class Link
Defines a reference from an entry or feed to a Web resource.
| Constructor Summary | |
|---|---|
Link()
Constructor. |
|
Link(Reference href,
Relation rel,
MediaType type)
Constructor. |
|
| Method Summary | |
|---|---|
Content |
getContent()
Returns the content of the entry or links to it. |
Reference |
getHref()
Returns the link's IRI. |
Language |
getHrefLang()
Returns the language of the resource pointed to by the href attribute. |
long |
getLength()
Returns the advisory length of the linked content in octets. |
Relation |
getRel()
Returns the link's relation type. |
String |
getTitle()
Returns the human-readable information about the link. |
MediaType |
getType()
Returns the advisoty media type. |
void |
setContent(Content content)
Sets the content of the entry or links to it. |
void |
setHref(Reference href)
Sets the link's IRI. |
void |
setHrefLang(Language hrefLang)
Sets the language of the resource pointed to by the href attribute. |
void |
setLength(long length)
Sets the advisory length of the linked content in octets. |
void |
setRel(Relation rel)
Sets the link's relation type. |
void |
setTitle(String title)
Sets the human-readable information about the link. |
void |
setType(MediaType type)
Sets the advisoty media type. |
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Link()
public Link(Reference href,
Relation rel,
MediaType type)
href - The link's IRI.rel - The link's relation type.type - Advisory media type.| Method Detail |
|---|
public Content getContent()
public Reference getHref()
public Language getHrefLang()
public long getLength()
public Relation getRel()
public String getTitle()
public MediaType getType()
public void setContent(Content content)
content - The content of the entry or links to it.public void setHref(Reference href)
href - The link's IRI.public void setHrefLang(Language hrefLang)
hrefLang - The language of the resource pointed to by the href attribute.public void setLength(long length)
length - The advisory length of the linked content in octets.public void setRel(Relation rel)
rel - The link's relation type.public void setTitle(String title)
title - The human-readable information about the link.public void setType(MediaType type)
type - The advisoty media type.
public void writeElement(XmlWriter writer)
throws SAXException
writer - The SAX writer.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||