org.springframework.extensions.webscripts.atom
Class AtomService

java.lang.Object
  extended by org.springframework.extensions.webscripts.atom.AtomService

public class AtomService
extends Object

Atom Model

Author:
davidc

Constructor Summary
AtomService()
           
 
Method Summary
 org.apache.abdera.model.Entry createEntry()
          Construct an empty Entry
 org.apache.abdera.model.Feed createFeed()
          Construct an empty Feed
 QName createQName(String uri, String localName)
          Creates a QName
 Map<String,QName> getNames()
          Gets pre-configured Atom Extensions (QNames)
 void setAbderaService(AbderaService abderaService)
          Sets the Abdera Service
 org.apache.abdera.model.Element toAtom(Content atom)
          Parse an Atom element
 org.apache.abdera.model.Element toAtom(String atom)
          Parse an Atom element
 org.apache.abdera.model.Entry toEntry(Content entry)
          Parse an Atom Entry
 org.apache.abdera.model.Entry toEntry(String entry)
          Parse an Atom Entry
 org.apache.abdera.model.Feed toFeed(Content feed)
          Parse an Atom Feed
 org.apache.abdera.model.Feed toFeed(String feed)
          Parse an Atom Feed
 String toMimeType(org.apache.abdera.model.Entry entry)
          Establish mimetype of atom content
 org.apache.abdera.model.Service toService(Content entry)
          Parse an Atom Service
 org.apache.abdera.model.Service toService(String entry)
          Parse an Atom Service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomService

public AtomService()
Method Detail

setAbderaService

public void setAbderaService(AbderaService abderaService)
Sets the Abdera Service

Parameters:
abderaService -

createFeed

public org.apache.abdera.model.Feed createFeed()
Construct an empty Feed

Returns:
feed

createEntry

public org.apache.abdera.model.Entry createEntry()
Construct an empty Entry

Returns:
entry

getNames

public Map<String,QName> getNames()
Gets pre-configured Atom Extensions (QNames)

Returns:
map of QNames by alias

createQName

public QName createQName(String uri,
                         String localName)
Creates a QName

Parameters:
uri -
localName -
Returns:
qname

toMimeType

public String toMimeType(org.apache.abdera.model.Entry entry)
Establish mimetype of atom content

Parameters:
content - atom content
Returns:
mimetype (or null, if it could not be established)

toAtom

public org.apache.abdera.model.Element toAtom(Content atom)
Parse an Atom element

Parameters:
entry -
Returns:

toAtom

public org.apache.abdera.model.Element toAtom(String atom)
Parse an Atom element

Parameters:
entry -
Returns:

toService

public org.apache.abdera.model.Service toService(Content entry)
Parse an Atom Service

Parameters:
entry -
Returns:

toService

public org.apache.abdera.model.Service toService(String entry)
Parse an Atom Service

Parameters:
entry -
Returns:

toEntry

public org.apache.abdera.model.Entry toEntry(Content entry)
Parse an Atom Entry

Parameters:
entry -
Returns:

toEntry

public org.apache.abdera.model.Entry toEntry(String entry)
Parse an Atom Entry

Parameters:
entry -
Returns:

toFeed

public org.apache.abdera.model.Feed toFeed(Content feed)
Parse an Atom Feed

Parameters:
feed -
Returns:

toFeed

public org.apache.abdera.model.Feed toFeed(String feed)
Parse an Atom Feed

Parameters:
feed -
Returns:


Copyright © 2009 SpringSource, Inc. All Rights Reserved.