org.apache.tuscany.sca.binding.feed.collection
Interface MediaCollection

All Superinterfaces:
Collection

public interface MediaCollection
extends Collection

Provides access to a collection of resources using Atom.


Method Summary
 Entry postMedia(java.lang.String title, java.lang.String slug, java.lang.String contentType, java.io.InputStream media)
          Creates a new media entry
 void putMedia(java.lang.String id, java.lang.String contentType, java.io.InputStream media)
          Update a media entry.
 
Methods inherited from interface org.apache.tuscany.sca.binding.feed.collection.Collection
delete, get, getFeed, post, put
 

Method Detail

postMedia

Entry postMedia(java.lang.String title,
                java.lang.String slug,
                java.lang.String contentType,
                java.io.InputStream media)
Creates a new media entry

Parameters:
title -
slug -
contentType -
media -

putMedia

void putMedia(java.lang.String id,
              java.lang.String contentType,
              java.io.InputStream media)
              throws NotFoundException
Update a media entry.

Parameters:
id -
contentType -
media -
Throws:
NotFoundException