| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wink.common.model.rss.RssEnclosure
public class RssEnclosure
Java class for "enclosure" element of RSS 2.0 Specification.
The following schema fragment specifies the expected content contained within this class.
 <complexType name="rssEnclosure">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="url" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="length" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 <enclosure> is an optional sub-element of <item>.
It has three required attributes. url says where the enclosure is located, length says how big it is in bytes, and type says what its type is, a standard MIME type.
The url must be an http url.
<enclosure url="http://www.scripting.com/mp3s/weatherReportSuite.mp3" length="12216320" type="audio/mpeg" />
A use-case narrative for this element is here.
| Field Summary | |
|---|---|
| protected  java.lang.String | length | 
| protected  java.lang.String | type | 
| protected  java.lang.String | url | 
| Constructor Summary | |
|---|---|
| RssEnclosure() | |
| Method Summary | |
|---|---|
|  java.lang.String | getLength()Gets the value of the length property. | 
|  java.lang.String | getType()Gets the value of the type property. | 
|  java.lang.String | getUrl()Gets the value of the url property. | 
|  void | setLength(java.lang.String value)Sets the value of the length property. | 
|  void | setType(java.lang.String value)Sets the value of the type property. | 
|  void | setUrl(java.lang.String value)Sets the value of the url property. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.lang.String url
protected java.lang.String length
protected java.lang.String type
| Constructor Detail | 
|---|
public RssEnclosure()
| Method Detail | 
|---|
public java.lang.String getUrl()
Stringpublic void setUrl(java.lang.String value)
value - allowed object is Stringpublic java.lang.String getLength()
Stringpublic void setLength(java.lang.String value)
value - allowed object is Stringpublic java.lang.String getType()
Stringpublic void setType(java.lang.String value)
value - allowed object is String| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||