public class Feed extends Object
Constructor and Description |
---|
Feed(String xml,
String characterEncoding)
Construct a new Feed with the given content, characterEncoding and default content type (text/xml).
|
Feed(String content,
String contentType,
String characterEncoding)
Construct a new Feed with the given content and characterEncoding.
|
Modifier and Type | Method and Description |
---|---|
String |
getCharacterEncoding()
Return the character encoding of this feed.
|
String |
getContent()
Return the content of this feed.
|
String |
getContentType()
Return the contentType of this feed.
|
String |
getXml()
Deprecated.
since 1.1 use
getContent() instead |
public Feed(String content, String contentType, String characterEncoding)
content
- the content of this feed (must not be null)contentType
- the content type (i.e. 'text/xml') for this feed.characterEncoding
- the character encoding of this feed (must not be null)public String getXml()
getContent()
insteadpublic String getContent()
public String getCharacterEncoding()
public String getContentType()
Copyright © 2016 Magnolia International Ltd.. All rights reserved.