public class OutOfLineContent extends Content implements IOutOfLineContent
Content for entries that reference external content.| Modifier and Type | Class and Description |
|---|---|
class |
OutOfLineContent.AtomHandler
Parses XML in the Atom format.
|
Content.ChildHandlerInfoIContent.Type| Modifier and Type | Field and Description |
|---|---|
protected String |
etag
ETag for the referenced content.
|
protected String |
lang
Language derived from the current state of
xml:lang. |
protected long |
length
Content length.
|
protected ContentType |
mimeType
MIME Content type.
|
protected String |
uri
External URI.
|
| Constructor and Description |
|---|
OutOfLineContent() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateAtom(XmlWriter w,
ExtensionProfile extProfile)
Generates XML in the Atom format.
|
void |
generateRss(XmlWriter w,
ExtensionProfile extProfile)
Generates XML in the RSS format.
|
String |
getEtag()
Returns the HTTP etag for the referenced content or
null if
none. |
String |
getLang()
Returns the human language that this content is written in.
|
long |
getLength() |
ContentType |
getMimeType()
Returns the MIME content type.
|
int |
getType()
Returns this content's type.
|
String |
getUri()
Returns the external URI.
|
void |
setEtag(String v) |
void |
setLang(String v)
Specifies the human language that this content is written in.
|
void |
setLength(long v) |
void |
setMimeType(ContentType v)
Specifies the MIME Content type.
|
void |
setUri(String v)
Specifies the external URI.
|
getChildHandlerprotected ContentType mimeType
protected String lang
xml:lang.protected String uri
protected long length
protected String etag
null if unknown.public int getType()
ContentIContent.Type for the set of
expected values.public ContentType getMimeType()
IOutOfLineContentgetMimeType in interface IOutOfLineContentpublic void setMimeType(ContentType v)
public String getLang()
Contentpublic void setLang(String v)
public String getUri()
IOutOfLineContentgetUri in interface IOutOfLineContentpublic void setUri(String v)
public long getLength()
public void setLength(long v)
public String getEtag()
IOutOfLineContentnull if
none.getEtag in interface IOutOfLineContentpublic void setEtag(String v)
public void generateAtom(XmlWriter w, ExtensionProfile extProfile) throws IOException
generateAtom in class Contentw - output writerextProfile - Extension Profile for nested extensionsIOExceptionpublic void generateRss(XmlWriter w, ExtensionProfile extProfile) throws IOException
generateRss in class Contentw - output writerextProfile - Extension Profile for nested extensionsIOExceptionCopyright © 2012. All Rights Reserved.