1 package net.sf.cantina; 2 3 import java.util.Collection; 4 import java.util.Locale; 5 6 /*** 7 * @author Stephane JAIS 8 */ 9 public interface Document 10 { 11 public String getDocumentId(); 12 public byte[] getContent(Locale locale); 13 public String getContentAsString(Locale locale) throws Exception; 14 public String getContentType(); 15 public Realm getRealm(); 16 17 public void setContent(Locale locale, byte[] content); 18 public void setContentAsString(Locale locale, String content) throws Exception; 19 public void setContentType(String contentType); 20 public void setRealm(Realm realm); 21 public Collection getAvailableLocales(); 22 }