info.magnolia.module.rssaggregator.generator
Class Feed

java.lang.Object
  extended by info.magnolia.module.rssaggregator.generator.Feed

public class Feed
extends Object

A Feed.

Author:
Rob van der Linden Vooren

Constructor Summary
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.
 
Method Summary
 String getContent()
          Return the content of this feed.
 String getContentType()
          Return the contentType of this feed.
 String getCharacterEncoding()
          Return the character encoding of this feed.
 String getXml()
          Deprecated. since 1.1 use {link #getContent()} instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feed

public Feed(String content,
            String contentType,
            String characterEncoding)
Construct a new Feed with the given content and characterEncoding.

Parameters:
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)

Feed

public Feed(String xml,
            String characterEncoding)
Construct a new Feed with the given content, characterEncoding and default content type (text/xml).

Parameters:
xml - the content of this feed (must not be null)
characterEncoding - the character encoding of this feed (must not be null)
Method Detail

getXml

public String getXml()
Deprecated. since 1.1 use {link #getContent()} instead

Return the content of this feed.

Returns:
the content of this feed

getContent

public String getContent()
Return the content of this feed.

Returns:
the content of this feed

getCharacterEncoding

public String getCharacterEncoding()
Return the character encoding of this feed.

Returns:
the character encoding of this feed

getContentType

public String getContentType()
Return the contentType of this feed.

Returns:
the contentType of this feed.


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.