|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.atom.Collection
public class Collection
Atom Protocol collection, part of a workspace.
Constructor Summary | |
---|---|
Collection(Workspace workspace,
java.lang.String title,
java.lang.String href)
Constructor. |
Method Summary | |
---|---|
Feed |
getFeed()
Returns the feed representation. |
Reference |
getHref()
Returns the hypertext reference. |
MemberType |
getMemberType()
Returns the type of members. |
java.lang.String |
getTitle()
Returns the title. |
Workspace |
getWorkspace()
Returns the parent workspace. |
Reference |
postMember(Representation member)
Posts a member to the collection resulting in the creation of a new resource. |
void |
setHref(Reference href)
Sets the hypertext reference. |
void |
setMemberType(MemberType memberType)
Sets the type of members. |
void |
setTitle(java.lang.String title)
Sets the title. |
void |
setWorkspace(Workspace workspace)
Sets the parent workspace. |
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 Collection(Workspace workspace, java.lang.String title, java.lang.String href)
workspace
- The parent workspace.title
- The title.href
- The hypertext reference.Method Detail |
---|
public Feed getFeed() throws java.lang.Exception
java.lang.Exception
public Reference getHref()
public MemberType getMemberType()
public java.lang.String getTitle()
public Workspace getWorkspace()
public Reference postMember(Representation member) throws java.lang.Exception
member
- The member representation to post.
java.lang.Exception
public void setHref(Reference href)
href
- The hypertext reference.public void setMemberType(MemberType memberType)
memberType
- The type of members.public void setTitle(java.lang.String title)
title
- The title.public void setWorkspace(Workspace workspace)
workspace
- The parent workspace.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 |