1 18 package org.apache.roller.webservices.atomprotocol; 19 20 import java.io.InputStream ; 21 import java.util.Date ; 22 23 import com.sun.syndication.feed.atom.Entry; 24 import com.sun.syndication.feed.atom.Feed; 25 26 34 public interface AtomHandler 35 { 36 37 public String getAuthenticatedUsername(); 38 39 42 public AtomService getIntrospection() throws AtomException; 43 44 48 public Feed getCollection(String [] pathInfo) throws AtomException; 49 50 54 public Entry postEntry(String [] pathInfo, Entry entry) throws AtomException; 55 56 60 public Entry getEntry(String [] pathInfo) throws AtomException; 61 62 66 public Entry putEntry(String [] pathInfo, Entry entry) throws AtomException; 67 68 69 73 public void deleteEntry(String [] pathInfo) throws AtomException; 74 75 81 public Entry postMedia( 82 String [] pathInfo, String title, String slug, String contentType, InputStream is) throws AtomException; 83 84 88 public Entry putMedia( 89 String [] pathInfo, String contentType, InputStream is) throws AtomException; 90 91 94 public boolean isIntrospectionURI(String [] pathInfo); 95 96 99 public boolean isCollectionURI(String [] pathInfo); 100 101 104 public boolean isEntryURI(String [] pathInfo); 105 106 109 public boolean isMediaEditURI(String [] pathInfo); 110 } 111 112 | Popular Tags |