Apache CXF API

org.apache.cxf.jaxrs.ext.atom
Class AbstractAtomElementBuilder<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.atom.AbstractAtomElementBuilder<T>
Type Parameters:
T - Type of objects which will be mapped to feeds or entries
Direct Known Subclasses:
AbstractEntryBuilder, AbstractFeedBuilder

public abstract class AbstractAtomElementBuilder<T>
extends Object

A callback-style provider which can be used to map an object to Atom Feed or Entry without having to deal directly with types representing Atom feeds or entries


Constructor Summary
AbstractAtomElementBuilder()
           
 
Method Summary
 String getAuthor(T pojo)
           
 String getBaseUri(T pojo)
           
 List<String> getCategories(T pojo)
           
 String getId(T pojo)
           
 Map<String,String> getLinks(T pojo)
          Returns a map of link URI to link relations type pairs See Atom Link Relations.
 MessageContext getMessageContext()
          returns MessageContext
 String getTitle(T pojo)
           
 String getUpdated(T pojo)
           
 void setMessageContext(MessageContext context)
          Sets MessageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAtomElementBuilder

public AbstractAtomElementBuilder()
Method Detail

setMessageContext

public void setMessageContext(MessageContext context)
Sets MessageContext

Parameters:
context - message context

getMessageContext

public MessageContext getMessageContext()
returns MessageContext

Returns:
message context

getTitle

public String getTitle(T pojo)
Parameters:
pojo - Object which is being mapped
Returns:
element title

getAuthor

public String getAuthor(T pojo)
Parameters:
pojo - Object which is being mapped
Returns:
element author

getId

public String getId(T pojo)
Parameters:
pojo - Object which is being mapped
Returns:
element id

getBaseUri

public String getBaseUri(T pojo)
Parameters:
pojo - Object which is being mapped
Returns:
base uri

getUpdated

public String getUpdated(T pojo)
Parameters:
pojo - Object which is being mapped
Returns:
element updated date

getCategories

public List<String> getCategories(T pojo)
Parameters:
pojo - Object which is being mapped
Returns:
element categories

getLinks

public Map<String,String> getLinks(T pojo)
Returns a map of link URI to link relations type pairs See Atom Link Relations.

Parameters:
pojo - Object which is being mapped
Returns:
the map of link URI to link relations type pairs

Apache CXF API

Apache CXF