public void flushBuffer() throws IOException { committed = true; responseContext.flushBuffer(); }
public int getBufferSize() { return responseContext.getBufferSize(); }
/** * For use in HeaderRequestImpl constructor. * @param requestContext * @param responseContext * @param lifecyclePhase */ public RenderRequestImpl(PortletRequestContext requestContext, PortletMimeResponseContext responseContext, String lifecyclePhase) { super(requestContext, responseContext, lifecyclePhase); this.cacheControl = responseContext.getCacheControl(); }
@Override public String getContentType() { return ((PortletMimeResponseContext) this.getResponseContext()).getContentType(); } }
public PrintWriter getWriter() throws IllegalStateException, IOException { if (usingStream) { throw new IllegalStateException( "getWriter can't be used after getOutputStream was invoked."); } if (getContentType() == null) { setContentType(getResponseContentTypes().get(0)); } usingWriter = true; return responseContext.getWriter(); }
/** * @param responseContext */ public ResourceURLImpl(PortletMimeResponseContext responseContext) { super(responseContext, responseContext.getPortletURLProvider(PortletURLProvider.TYPE.RESOURCE)); }
public String getCharacterEncoding() { return responseContext.getCharacterEncoding(); }
public Locale getLocale() { return responseContext.getLocale(); }
public boolean isCommitted() { return committed ? true : responseContext.isCommitted(); }
public OutputStream getPortletOutputStream() throws IllegalStateException, IOException { if (usingWriter) { throw new IllegalStateException( "getPortletOutputStream can't be used after getWriter was invoked."); } if (getContentType() == null) { setContentType(getResponseContentTypes().get(0)); } usingStream = true; return responseContext.getOutputStream(); }
@Override public String getContentType() { return ((PortletMimeResponseContext) this.getResponseContext()).getContentType(); } }
PrintWriter writer = ((PortletMimeResponseContext)window.getPortletResponseContext()).getWriter(); if (writer != null)
/** * @param responseContext * @param copy */ public ActionURLImpl(PortletMimeResponseContext responseContext, Copy copy) { super(responseContext, responseContext.getPortletURLProvider(PortletURLProvider.TYPE.ACTION), copy); }
@Override public String getContentType() { return ((PortletMimeResponseContext) this.getResponseContext()).getContentType(); } }
public CacheControl getCacheControl() { return responseContext.getCacheControl(); }
@Override public String getContentType() { return ((PortletMimeResponseContext) this.getResponseContext()).getContentType(); } }