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 java.lang.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
 java.lang.String getAuthor(T pojo)
           
 java.lang.String getBaseUri(T pojo)
           
 java.util.List<java.lang.String> getCategories(T pojo)
           
 java.lang.String getId(T pojo)
           
 java.util.Map<java.lang.String,java.lang.String> getLinks(T pojo)
          Returns a map of link URI to link relations type pairs See Atom Link Relations.
 MessageContext getMessageContext()
          returns MessageContext
 java.lang.String getTitle(T pojo)
           
 java.lang.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 java.lang.String getTitle(T pojo)
Parameters:
pojo - Object which is being mapped
Returns:
element title

getAuthor

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

getId

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

getBaseUri

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

getUpdated

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

getCategories

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

getLinks

public java.util.Map<java.lang.String,java.lang.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