org.apache.abdera.protocol.server.provider.managed
Class FeedConfiguration

java.lang.Object
  extended by org.apache.abdera.protocol.server.provider.managed.Configuration
      extended by org.apache.abdera.protocol.server.provider.managed.FeedConfiguration
All Implemented Interfaces:
CollectionInfo

public class FeedConfiguration
extends Configuration
implements CollectionInfo


Field Summary
static String ENTRY_ELEM_NAME_AUTHOR
           
static String ENTRY_ELEM_NAME_CONTENT
           
static String ENTRY_ELEM_NAME_ID
           
static String ENTRY_ELEM_NAME_LINK
           
static String ENTRY_ELEM_NAME_TITLE
           
static String ENTRY_ELEM_NAME_UPDATED
           
static String PROP_ACCEPTS
           
static String PROP_AUTHOR_NAME
           
static String PROP_ENTRY_TITLE_NAME
           
static String PROP_FEED_CONFIG_LOCATION_NAME
           
static String PROP_NAME_ADAPTER_CLASS
           
static String PROP_SUB_URI_NAME
           
static String PROP_TITLE_NAME
           
 
Constructor Summary
FeedConfiguration(String feedId, String subUri, String adapterClassName, String feedConfigLocation, ServerConfiguration serverConfiguration)
           
 
Method Summary
 Collection asCollectionElement(RequestContext request)
          Converts this to an instance of the FOM Collection interface
 String[] getAccepts(RequestContext request)
          Returns an array of MIME media types for the app:collection element's app:accept elements.
 String getAdapterClassName()
           
 CollectionAdapterConfiguration getAdapterConfiguration()
           
 CategoriesInfo[] getCategoriesInfo(RequestContext request)
          Return the collection of CategoriesInfo objects for the app:collection element's app:categories elements.
 String getFeedAuthor()
           
 String getFeedConfigLocation()
           
static FeedConfiguration getFeedConfiguration(String feedId, Properties properties, ServerConfiguration serverConfiguration)
           
 String getFeedId()
           
 String getFeedTitle()
           
 String getFeedUri()
           
 String getHref(RequestContext request)
          Get the value of the app:collection element's href attribute.
 Object getProperty(String key)
           
 ServerConfiguration getServerConfiguration()
           
 String getSubUri()
           
 String getTitle(RequestContext request)
          Get the value of the app:collection element's atom:title element.
 boolean hasProperty(String key)
           
 void setFeedAuthor(String feedAuthor)
           
 void setFeedTitle(String feedTitle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_NAME_ADAPTER_CLASS

public static final String PROP_NAME_ADAPTER_CLASS
See Also:
Constant Field Values

PROP_SUB_URI_NAME

public static final String PROP_SUB_URI_NAME
See Also:
Constant Field Values

PROP_AUTHOR_NAME

public static final String PROP_AUTHOR_NAME
See Also:
Constant Field Values

PROP_TITLE_NAME

public static final String PROP_TITLE_NAME
See Also:
Constant Field Values

PROP_ACCEPTS

public static final String PROP_ACCEPTS
See Also:
Constant Field Values

PROP_ENTRY_TITLE_NAME

public static final String PROP_ENTRY_TITLE_NAME
See Also:
Constant Field Values

PROP_FEED_CONFIG_LOCATION_NAME

public static final String PROP_FEED_CONFIG_LOCATION_NAME
See Also:
Constant Field Values

ENTRY_ELEM_NAME_ID

public static final String ENTRY_ELEM_NAME_ID
See Also:
Constant Field Values

ENTRY_ELEM_NAME_TITLE

public static final String ENTRY_ELEM_NAME_TITLE
See Also:
Constant Field Values

ENTRY_ELEM_NAME_CONTENT

public static final String ENTRY_ELEM_NAME_CONTENT
See Also:
Constant Field Values

ENTRY_ELEM_NAME_AUTHOR

public static final String ENTRY_ELEM_NAME_AUTHOR
See Also:
Constant Field Values

ENTRY_ELEM_NAME_UPDATED

public static final String ENTRY_ELEM_NAME_UPDATED
See Also:
Constant Field Values

ENTRY_ELEM_NAME_LINK

public static final String ENTRY_ELEM_NAME_LINK
See Also:
Constant Field Values
Constructor Detail

FeedConfiguration

public FeedConfiguration(String feedId,
                         String subUri,
                         String adapterClassName,
                         String feedConfigLocation,
                         ServerConfiguration serverConfiguration)
Method Detail

getFeedConfiguration

public static FeedConfiguration getFeedConfiguration(String feedId,
                                                     Properties properties,
                                                     ServerConfiguration serverConfiguration)

getAdapterClassName

public String getAdapterClassName()

getFeedAuthor

public String getFeedAuthor()

getFeedConfigLocation

public String getFeedConfigLocation()

getFeedId

public String getFeedId()

getFeedTitle

public String getFeedTitle()

getSubUri

public String getSubUri()

setFeedAuthor

public void setFeedAuthor(String feedAuthor)

setFeedTitle

public void setFeedTitle(String feedTitle)

getFeedUri

public String getFeedUri()

hasProperty

public boolean hasProperty(String key)

getProperty

public Object getProperty(String key)

getAdapterConfiguration

public CollectionAdapterConfiguration getAdapterConfiguration()

asCollectionElement

public Collection asCollectionElement(RequestContext request)
Description copied from interface: CollectionInfo
Converts this to an instance of the FOM Collection interface

Specified by:
asCollectionElement in interface CollectionInfo

getAccepts

public String[] getAccepts(RequestContext request)
Description copied from interface: CollectionInfo
Returns an array of MIME media types for the app:collection element's app:accept elements. These tell a client which media types the collection will accept on a POST

Specified by:
getAccepts in interface CollectionInfo

getCategoriesInfo

public CategoriesInfo[] getCategoriesInfo(RequestContext request)
Description copied from interface: CollectionInfo
Return the collection of CategoriesInfo objects for the app:collection element's app:categories elements. These tell a client which atom:category elements are defined for use in the collections atom:entries

Specified by:
getCategoriesInfo in interface CollectionInfo

getHref

public String getHref(RequestContext request)
Description copied from interface: CollectionInfo
Get the value of the app:collection element's href attribute. This must not be null

Specified by:
getHref in interface CollectionInfo

getTitle

public String getTitle(RequestContext request)
Description copied from interface: CollectionInfo
Get the value of the app:collection element's atom:title element. This assumes that the title will be type="text". This must not be null;

Specified by:
getTitle in interface CollectionInfo

getServerConfiguration

public ServerConfiguration getServerConfiguration()


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.