1 5 package org.exoplatform.test.mocks.jsf; 6 7 import java.util.HashMap ; 8 import java.io.Writer ; 9 import java.io.OutputStream ; 10 import javax.faces.render.* ; 11 import javax.faces.context.* ; 12 18 public class MockRenderKit extends RenderKit { 19 private HashMap map_ ; 20 21 public MockRenderKit() { 22 map_ = new HashMap () ; 23 } 24 25 public void addRenderer(String family, java.lang.String rendererType, Renderer renderer) { 26 map_.put(family + "/" + rendererType, renderer ) ; 27 } 28 29 public Renderer getRenderer(String family, String rendererType) { 30 return (Renderer) map_.get(family + "/" + rendererType) ; 31 } 32 33 public ResponseStateManager getResponseStateManager() { 34 return null ; 35 } 36 37 public ResponseWriter createResponseWriter(Writer writer, String contentTypeList, 38 String characterEncoding) { 39 return null ; 40 } 41 42 public ResponseStream createResponseStream(OutputStream out) { 43 return null ; 44 } 45 } | Popular Tags |