org.springframework.extensions.webscripts.atom
Class AtomReader

java.lang.Object
  extended by org.springframework.extensions.webscripts.atom.AtomReader
All Implemented Interfaces:
FormatReader<org.apache.abdera.model.Element>

public class AtomReader
extends Object
implements FormatReader<org.apache.abdera.model.Element>

Convert application/atom+xml to either org.apache.abdera.model.Entry or org.apache.adbera.model.Feed

Author:
davidc

Field Summary
protected  AbderaService abderaService
           
 
Constructor Summary
AtomReader()
           
 
Method Summary
 Map<String,Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res)
          Create script parameters specific to source mimetype
 Class<org.apache.abdera.model.Element> getDestinationClass()
          Gets the Java Class to convert to
 String getSourceMimetype()
          Gets the source mimetype to convert from
 org.apache.abdera.model.Element read(WebScriptRequest req)
          Converts mimetype to Java Object
 void setAbderaService(AbderaService abderaService)
          Sets the Abdera Service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

abderaService

protected AbderaService abderaService
Constructor Detail

AtomReader

public AtomReader()
Method Detail

setAbderaService

public void setAbderaService(AbderaService abderaService)
Sets the Abdera Service

Parameters:
abderaService -

getDestinationClass

public Class<org.apache.abdera.model.Element> getDestinationClass()
Description copied from interface: FormatReader
Gets the Java Class to convert to

Specified by:
getDestinationClass in interface FormatReader<org.apache.abdera.model.Element>
Returns:
Java Clas

getSourceMimetype

public String getSourceMimetype()
Description copied from interface: FormatReader
Gets the source mimetype to convert from

Specified by:
getSourceMimetype in interface FormatReader<org.apache.abdera.model.Element>
Returns:
mimetype

read

public org.apache.abdera.model.Element read(WebScriptRequest req)
Description copied from interface: FormatReader
Converts mimetype to Java Object

Specified by:
read in interface FormatReader<org.apache.abdera.model.Element>
Parameters:
req - web script request
Returns:
Java Object

createScriptParameters

public Map<String,Object> createScriptParameters(WebScriptRequest req,
                                                 WebScriptResponse res)
Description copied from interface: FormatReader
Create script parameters specific to source mimetype

Specified by:
createScriptParameters in interface FormatReader<org.apache.abdera.model.Element>
Parameters:
req - web script request
res - web script response
Returns:
map of script objects indexed by name


Copyright © 2009 SpringSource, Inc. All Rights Reserved.