org.apache.chemistry.opencmis.server.impl.atompub
Class AtomEntryParser

java.lang.Object
  extended by org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser

public class AtomEntryParser
extends Object

Parser for Atom Entries.


Field Summary
protected  boolean ignoreAtomContentSrc
           
 
Constructor Summary
AtomEntryParser()
          Constructor.
AtomEntryParser(InputStream stream)
          Constructor that immediately parses the given stream.
 
Method Summary
 Acl getAcl()
          Returns the ACL of the object.
 ContentStream getContentStream()
          Returns the content stream.
 String getId()
          Returns the Id of the object.
 ObjectData getObject()
          Returns the object.
 List<String> getPolicyIds()
          Returns the policy id list of the object.
 Properties getProperties()
          Returns the properties of the object.
 void parse(InputStream stream)
          Parses the stream.
 void setIgnoreAtomContentSrc(boolean ignoreAtomContentSrc)
          Sets the flag controlling whether atom content src (external content) is ignored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreAtomContentSrc

protected boolean ignoreAtomContentSrc
Constructor Detail

AtomEntryParser

public AtomEntryParser()
Constructor.


AtomEntryParser

public AtomEntryParser(InputStream stream)
                throws Exception
Constructor that immediately parses the given stream.

Throws:
Exception
Method Detail

setIgnoreAtomContentSrc

public void setIgnoreAtomContentSrc(boolean ignoreAtomContentSrc)
Sets the flag controlling whether atom content src (external content) is ignored. This flag is false by default (not ignored).


getObject

public ObjectData getObject()
Returns the object.


getProperties

public Properties getProperties()
Returns the properties of the object.


getId

public String getId()
Returns the Id of the object.


getAcl

public Acl getAcl()
Returns the ACL of the object.


getPolicyIds

public List<String> getPolicyIds()
Returns the policy id list of the object.


getContentStream

public ContentStream getContentStream()
Returns the content stream.


parse

public void parse(InputStream stream)
           throws Exception
Parses the stream.

Throws:
Exception


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.