|
||||||||||
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. |
Method Summary | |
---|---|
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. |
java.lang.String |
getTitle()
Returns the human-readable information about the link. |
MediaType |
getType()
Returns the advisoty media type. |
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(java.lang.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()
Method Detail |
---|
public Reference getHref()
public Language getHrefLang()
public long getLength()
public Relation getRel()
public java.lang.String getTitle()
public MediaType getType()
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(java.lang.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 org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |