1 48 49 package org.jpublish.view; 50 51 import java.io.*; 52 53 import com.anthonyeden.lib.config.Configuration; 54 import com.anthonyeden.lib.config.ConfigurationException; 55 import org.jpublish.RequestContext; 56 import org.jpublish.SiteContext; 57 58 63 64 public interface ViewRenderer { 65 66 71 72 public SiteContext getSiteContext(); 73 74 79 80 public void setSiteContext(SiteContext siteContext); 81 82 85 86 public void init(); 87 88 97 98 public void render(RequestContext context, String path, Writer out) 99 throws IOException, ViewRenderException; 100 101 110 111 public void render(RequestContext context, String path, OutputStream out) 112 throws IOException, ViewRenderException; 113 114 124 125 public void render(RequestContext context, String path, Reader in, 126 Writer out) throws IOException, ViewRenderException; 127 128 138 139 public void render(RequestContext context, String path, InputStream in, 140 OutputStream out) throws IOException, ViewRenderException; 141 142 147 148 public void loadConfiguration(Configuration configuration) 149 throws ConfigurationException; 150 151 } 152 | Popular Tags |