1 48 49 50 package com.caucho.portal.generic.context; 51 52 import com.caucho.portal.generic.Portal; 53 import com.caucho.portal.generic.Render; 54 import com.caucho.portal.generic.Window; 55 56 import javax.portlet.Portlet; 57 import javax.portlet.PortletException; 58 import javax.portlet.RenderRequest; 59 import javax.portlet.RenderResponse; 60 import java.io.IOException ; 61 62 63 class RenderImpl 64 implements Render 65 { 66 protected ConnectionContext _context; 67 68 public RenderImpl(ConnectionContext context) 69 { 70 _context = context; 71 } 72 73 public void render(Portlet portlet) 74 throws PortletException, IOException 75 { 76 _context.render(portlet); 77 } 78 79 public Portal getPortal() 80 { 81 return _context.getPortal(); 82 } 83 84 public Window getWindow() 85 { 86 return _context.getWindow(); 87 } 88 89 public String getNamespace() 90 { 91 return _context.getNamespace(); 92 } 93 94 public RenderRequest getRenderRequest() 95 { 96 return _context.getRenderRequest(); 97 } 98 99 public RenderResponse getRenderResponse() 100 { 101 return _context.getRenderResponse(); 102 } 103 104 public void finish() 105 throws IOException , PortletException 106 { 107 _context.finishRender(); 108 } 109 } 110 | Popular Tags |