public class BasicNewsItemEnclosure extends Object implements org.sakaiproject.news.api.NewsItemEnclosure
BasicNewsItemEnclosure is default implementation of the Interface for a Sakai News message enclsoures.
The news message enclsure has header fields (type, size) and a url of the actual enclosed file. All fields are read only.
| Constructor and Description |
|---|
BasicNewsItemEnclosure(String url,
String type,
long length)
Construct a BasicNewsItemEnclosure
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLength()
Access the length of the enclosure.
|
String |
getType()
Access the type of the enclosure.
|
String |
getUrl()
Access the url of the enclosure.
|
void |
setLength(long length)
Set the length of the Enclosure in Bytes.
|
void |
setType(String type)
Set the type of the Enclosure.
|
void |
setUrl(String url)
Set the url of the Enclosure.
|
public long getLength()
getLength in interface org.sakaiproject.news.api.NewsItemEnclosurepublic String getType()
getType in interface org.sakaiproject.news.api.NewsItemEnclosurepublic String getUrl()
getUrl in interface org.sakaiproject.news.api.NewsItemEnclosurepublic void setType(String type)
setType in interface org.sakaiproject.news.api.NewsItemEnclosuretype - The type of the Enclosure.public void setUrl(String url)
setUrl in interface org.sakaiproject.news.api.NewsItemEnclosureurl - The url of the Enclosure.public void setLength(long length)
setLength in interface org.sakaiproject.news.api.NewsItemEnclosurelength - The length of the Enclosure in Bytes.Copyright © 2003-2015 University of Michigan. All Rights Reserved.