Apache Abdera API

org.apache.abdera.protocol
Interface EntityProvider

All Known Implementing Classes:
AbstractEntityProvider

public interface EntityProvider

An EntityProvider is used to serialize entities using the StreamWriter interface. The EntityProvider interface can be implemented by applications to provide an efficient means of serializing non-FOM objects to Atom/XML.


Method Summary
 String getContentType()
          Return the mime content type of the serialized entity
 org.apache.abdera.util.EntityTag getEntityTag()
          Return the EntityTag of the entity,
 Date getLastModified()
          Return the Last-Modified date of the entity
 boolean isRepeatable()
          True if the serialization is repeatable.
 void writeTo(StreamWriter sw)
          Write to the specified StreamWriter
 

Method Detail

writeTo

void writeTo(StreamWriter sw)
Write to the specified StreamWriter


isRepeatable

boolean isRepeatable()
True if the serialization is repeatable.


getContentType

String getContentType()
Return the mime content type of the serialized entity


getEntityTag

org.apache.abdera.util.EntityTag getEntityTag()
Return the EntityTag of the entity,


getLastModified

Date getLastModified()
Return the Last-Modified date of the entity


Apache Abdera API

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