1 48 49 50 package com.caucho.portal.generic; 51 52 import javax.portlet.PortletMode; 53 import javax.portlet.PortletRequest; 54 import javax.portlet.RenderRequest; 55 import javax.portlet.WindowState; 56 import java.io.IOException ; 57 import java.io.OutputStream ; 58 import java.io.PrintWriter ; 59 60 63 public interface Renderer { 64 70 public boolean isWindowStateAllowed( PortletRequest request, 71 WindowState windowState ); 72 73 79 public boolean isPortletModeAllowed( PortletRequest request, 80 PortletMode portletMode ); 81 82 86 public boolean isAlwaysWrite(); 87 88 92 public boolean isAlwaysStream(); 93 94 100 public String getDefaultContentType(); 101 102 public int getBufferSize(); 103 104 114 public PrintWriter getWriter( PrintWriter out, 115 RenderRequest request, 116 String namespace ) 117 throws IOException ; 118 119 128 public void finish( PrintWriter writer, 129 RenderRequest request, 130 String namespace, 131 boolean isDiscarded ) 132 throws IOException ; 133 134 144 public OutputStream getOutputStream( OutputStream out, 145 RenderRequest renderRequest, 146 String namespace ) 147 throws IOException ; 148 149 158 public void finish( OutputStream outputStream, 159 RenderRequest renderRequest, 160 String namespace, 161 boolean isDiscarded ) 162 throws IOException ; 163 } 164 165 | Popular Tags |