org.apache.abdera.protocol.server.multipart
Class AbstractMultipartCollectionAdapter

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
      extended by org.apache.abdera.protocol.server.multipart.AbstractMultipartCollectionAdapter
All Implemented Interfaces:
CollectionAdapter, CollectionInfo, MediaCollectionAdapter, MultipartRelatedCollectionInfo, Transactional

public abstract class AbstractMultipartCollectionAdapter
extends org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
implements MultipartRelatedCollectionInfo


Nested Class Summary
protected  class AbstractMultipartCollectionAdapter.MultipartRelatedPost
           
 
Field Summary
protected  Map<String,String> accepts
           
 
Constructor Summary
AbstractMultipartCollectionAdapter()
           
 
Method Summary
 String[] getAccepts(RequestContext request)
          Returns an array of MIME media types for the app:collection element's app:accept elements.
protected  AbstractMultipartCollectionAdapter.MultipartRelatedPost getMultipartRelatedData(RequestContext request)
           
 
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
asCollectionElement, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, createFeedBase, deleteMedia, end, extensionRequest, getAuthor, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getHref, getId, getMedia, getResourceName, headEntry, headMedia, optionsEntry, optionsMedia, postMedia, putMedia, setHref, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.protocol.server.multipart.MultipartRelatedCollectionInfo
getAlternateAccepts
 
Methods inherited from interface org.apache.abdera.protocol.server.CollectionInfo
asCollectionElement, getCategoriesInfo, getHref, getTitle
 
Methods inherited from interface org.apache.abdera.protocol.server.CollectionAdapter
deleteEntry, getEntry, getFeed, postEntry, putEntry
 

Field Detail

accepts

protected Map<String,String> accepts
Constructor Detail

AbstractMultipartCollectionAdapter

public AbstractMultipartCollectionAdapter()
Method Detail

getAccepts

public String[] getAccepts(RequestContext request)
Description copied from interface: CollectionInfo
Returns an array of MIME media types for the app:collection element's app:accept elements. These tell a client which media types the collection will accept on a POST

Specified by:
getAccepts in interface CollectionInfo
Overrides:
getAccepts in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter

getMultipartRelatedData

protected AbstractMultipartCollectionAdapter.MultipartRelatedPost getMultipartRelatedData(RequestContext request)
                                                                                   throws IOException,
                                                                                          ParseException,
                                                                                          javax.mail.MessagingException
Throws:
IOException
ParseException
javax.mail.MessagingException


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