public class Collection
extends java.lang.Object
Constructor and Description |
---|
Collection(Workspace workspace,
java.lang.String title,
java.lang.String href)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaType> |
getAccept()
Returns the accepted media types.
|
Reference |
getBaseReference()
Returns the base reference used to resolve relative references found
within the scope of the xml:base attribute.
|
Categories |
getCategories()
Returns the categories.
|
Feed |
getFeed()
Returns the feed representation.
|
Reference |
getHref()
Returns the hypertext reference.
|
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 |
setAccept(java.util.List<MediaType> accept)
Sets the accepted media types.
|
void |
setBaseReference(Reference baseReference)
Sets the base reference used to resolve relative references found within
the scope of the xml:base attribute.
|
void |
setCategories(Categories categories)
Sets the categories.
|
void |
setHref(Reference href)
Sets the hypertext reference.
|
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.
|
public Collection(Workspace workspace, java.lang.String title, java.lang.String href)
workspace
- The parent workspace.title
- The title.href
- The hypertext reference.public java.util.List<MediaType> getAccept()
public Reference getBaseReference()
public Categories getCategories()
public Feed getFeed() throws java.lang.Exception
java.lang.Exception
public Reference getHref()
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 setAccept(java.util.List<MediaType> accept)
accept
- The accepted media types.public void setBaseReference(Reference baseReference)
baseReference
- The base reference used to resolve relative references found
within the scope of the xml:base attribute.public void setCategories(Categories categories)
categories
- The categories.public void setHref(Reference href)
href
- The hypertext reference.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
Copyright © 2005-2020 Restlet.