org.apache.clerezza.platform.content
Class AbstractDiscobitsHandler

java.lang.Object
  extended by org.apache.clerezza.platform.content.AbstractDiscobitsHandler
All Implemented Interfaces:
DiscobitsHandler
Direct Known Subclasses:
DiscobitsTypeHandler

public abstract class AbstractDiscobitsHandler
extends Object
implements DiscobitsHandler

Author:
reto

Constructor Summary
AbstractDiscobitsHandler()
           
 
Method Summary
 byte[] getData(org.apache.clerezza.rdf.core.UriRef uriRef)
           
 javax.ws.rs.core.MediaType getMediaType(org.apache.clerezza.rdf.core.UriRef uriRef)
           
protected abstract  Set<org.apache.clerezza.rdf.metadata.MetaDataGenerator> getMetaDataGenerators()
          A Set containing MetaDataGenerators to be used to add meta data to data putted by the handler.
protected abstract  org.apache.clerezza.rdf.core.MGraph getMGraph()
           
 void put(org.apache.clerezza.rdf.core.UriRef infoDiscoBitUri, javax.ws.rs.core.MediaType mediaType, byte[] data)
          Creates an InfoDiscoBit
 void remove(org.apache.clerezza.rdf.core.NonLiteral node)
          Removes InfoDiscoBits (aka binary contents), other DiscoBits and the context of the specified node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDiscobitsHandler

public AbstractDiscobitsHandler()
Method Detail

getMGraph

protected abstract org.apache.clerezza.rdf.core.MGraph getMGraph()
Returns:
the MGraph to be used to retrieve and create discobits

getMetaDataGenerators

protected abstract Set<org.apache.clerezza.rdf.metadata.MetaDataGenerator> getMetaDataGenerators()
A Set containing MetaDataGenerators to be used to add meta data to data putted by the handler.

Returns:
a Set containing meta data generators

put

public void put(org.apache.clerezza.rdf.core.UriRef infoDiscoBitUri,
                javax.ws.rs.core.MediaType mediaType,
                byte[] data)
Description copied from interface: DiscobitsHandler
Creates an InfoDiscoBit

Specified by:
put in interface DiscobitsHandler

remove

public void remove(org.apache.clerezza.rdf.core.NonLiteral node)
Description copied from interface: DiscobitsHandler
Removes InfoDiscoBits (aka binary contents), other DiscoBits and the context of the specified node. If it is in a hierarchy then it will be removed also form its container.

Specified by:
remove in interface DiscobitsHandler

getData

public byte[] getData(org.apache.clerezza.rdf.core.UriRef uriRef)
Specified by:
getData in interface DiscobitsHandler
Returns:
a byte[] with the data of the InfoDiscoBit with the specified URI or null if no data for that URI is known

getMediaType

public javax.ws.rs.core.MediaType getMediaType(org.apache.clerezza.rdf.core.UriRef uriRef)
Specified by:
getMediaType in interface DiscobitsHandler
Returns:
the media type of the InfoDiscoBit with the specified URI or null if no MediaType for that URI is known


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.