1 48 49 50 package com.caucho.portal.generic.context; 51 52 import javax.portlet.PortletMode; 53 import javax.portlet.PortletURL; 54 import javax.portlet.RenderResponse; 55 import java.io.IOException ; 56 import java.io.OutputStream ; 57 import java.io.PrintWriter ; 58 import java.util.Locale ; 59 60 class RenderResponseImpl 61 extends PortletResponseImpl 62 implements RenderResponse 63 { 64 public RenderResponseImpl(ConnectionContext context) 65 { 66 super(context); 67 } 68 69 public String getNamespace() 70 { 71 return _context.getNamespace(); 72 } 73 74 public PortletURL createRenderURL() 75 { 76 return _context.createRenderURL(); 77 } 78 79 public PortletURL createActionURL() 80 { 81 return _context.createActionURL(); 82 } 83 84 public boolean isPortletModeAllowed(PortletMode portletMode) 85 { 86 return _context.isPortletModeAllowed(portletMode); 87 } 88 89 public String getContentType() 90 { 91 return _context.getContentType(); 92 } 93 94 public void setTitle(String title) 95 { 96 _context.setTitle(title); 97 } 98 99 public void setContentType(String contentType) 100 { 101 _context.setContentType(contentType); 102 } 103 104 public String getCharacterEncoding() 105 { 106 return _context.getCharacterEncoding(); 107 } 108 109 public PrintWriter getWriter() 110 throws IOException 111 { 112 return _context.getWriter(); 113 } 114 115 public Locale getLocale() 116 { 117 return _context.getLocale(); 118 } 119 120 public void setBufferSize(int size) 121 { 122 _context.setBufferSize(size); 123 } 124 125 public int getBufferSize() 126 { 127 return _context.getBufferSize(); 128 } 129 130 public void flushBuffer() 131 throws IOException 132 { 133 _context.flushBuffer(true); } 135 136 public void resetBuffer() 137 { 138 _context.resetBuffer(false); } 140 141 public void reset() 142 { 143 _context.reset(false); } 145 146 public boolean isCommitted() 147 { 148 return _context.isCommitted(); 149 } 150 151 public OutputStream getPortletOutputStream() 152 throws IOException 153 { 154 return _context.getPortletOutputStream(); 155 } 156 } 157 158 | Popular Tags |