|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.atom.Content
com.google.gdata.model.atom.OutOfLineContent
public class OutOfLineContent
Variant of Content
for entries that reference external content.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.gdata.data.IContent |
---|
IContent.Type |
Field Summary | |
---|---|
static AttributeKey<java.lang.String> |
ETAG
The gd:etag attribute. |
static ElementKey<java.lang.String,OutOfLineContent> |
KEY
The key for this element. |
static java.lang.String |
KIND
The kind name for adaptation. |
static AttributeKey<java.lang.Long> |
LENGTH
Metadata for the length attribute (hidden by default). |
Fields inherited from class com.google.gdata.model.atom.Content |
---|
CONSTRUCT, SRC, TYPE, XML_LANG |
Constructor Summary | |
---|---|
OutOfLineContent()
Constructs a new instance using the default metadata. |
|
OutOfLineContent(Content content)
Constructs a new instance from a more generic Content type. |
Method Summary | |
---|---|
java.lang.String |
getEtag()
Returns the HTTP etag for the referenced content or null if
unknown. |
java.lang.String |
getHref()
Returns the external URI or null if none exists. |
long |
getLength()
|
int |
getType()
Returns this content's type. |
java.lang.String |
getUri()
Deprecated. Use Content.getSrc() instead. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
void |
setEtag(java.lang.String etag)
Sets the HTTP etag for the referenced content. |
void |
setHref(java.lang.String href)
Sets the external URI. |
void |
setLength(long length)
Specifies the file length (RSS only). |
void |
setMimeType(ContentType v)
Specifies the MIME Content type. |
void |
setSrc(java.net.URI v)
Specifies the external URI. |
void |
setUri(java.lang.String v)
Deprecated. Use setSrc(URI) instead. |
Methods inherited from class com.google.gdata.model.atom.Content |
---|
getLang, getMimeType, getSrc, setLang |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.IOutOfLineContent |
---|
getMimeType |
Methods inherited from interface com.google.gdata.data.IContent |
---|
getLang |
Field Detail |
---|
public static final java.lang.String KIND
public static final ElementKey<java.lang.String,OutOfLineContent> KEY
public static final AttributeKey<java.lang.Long> LENGTH
public static final AttributeKey<java.lang.String> ETAG
Constructor Detail |
---|
public OutOfLineContent()
public OutOfLineContent(Content content)
Content
type.
content
- generic contentMethod Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public int getType()
Content
IContent.Type
.
getType
in interface IContent
getType
in class Content
IContent.Type
public void setMimeType(ContentType v)
@Deprecated public java.lang.String getUri()
Content.getSrc()
instead.
getUri
in interface IOutOfLineContent
@Deprecated public void setUri(java.lang.String v)
setSrc(URI)
instead.
v
- external URIpublic void setSrc(java.net.URI v)
public void setLength(long length)
public java.lang.String getHref()
null
if none exists.
This method exists only so that Content
implements
Reference
. Callers should use Content.getSrc()
instead whenever possible.
getHref
in interface Reference
public void setHref(java.lang.String href)
Content
implements
Reference
. Callers should use setSrc(URI)
instead whenever possible.
setHref
in interface Reference
href
- external URI or null
java.lang.IllegalArgumentException
- if href
is not a valid URIpublic long getLength()
public java.lang.String getEtag()
null
if
unknown.
getEtag
in interface IOutOfLineContent
public void setEtag(java.lang.String etag)
null
indicates it is unknown.
etag
- HTTP etag value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |