@Test public void testGetOutputStream() throws IOException { portletMimeHttpServletResponseWrapper = new PortletMimeHttpServletResponseWrapper(res, null, null, new CacheControlImpl()); ServletOutputStream stream = portletMimeHttpServletResponseWrapper.getOutputStream(); Assert.assertNotNull(stream); }
@Override public ServletOutputStream getOutputStream() throws IOException { if (this.servletOutputStream == null) { this.servletOutputStream = new LazyServletOutputStream( new Callable<ServletOutputStream>() { @Override public ServletOutputStream call() throws Exception { return PortletMimeHttpServletResponseWrapper.super .getOutputStream(); } }) { @Override public void close() throws IOException { if (!PortletMimeHttpServletResponseWrapper.this.cacheControl .useCachedContent()) { super.close(); } } }; } return this.servletOutputStream; }
PortletMimeHttpServletResponseWrapper extends PortletHttpServletResponseWrapper { @Override public ServletOutputStream getOutputStream() throws IOException { if (this.servletOutputStream == null) { this.servletOutputStream = new LazyServletOutputStream( new Callable<ServletOutputStream>() { @Override public ServletOutputStream call() throws Exception { return PortletMimeHttpServletResponseWrapper.super .getOutputStream(); } }) { @Override public void close() throws IOException { if (!PortletMimeHttpServletResponseWrapper.this.cacheControl .useCachedContent()) { super.close(); } } }; } return this.servletOutputStream; } }
PortletMimeHttpServletResponseWrapper extends PortletHttpServletResponseWrapper { @Override public ServletOutputStream getOutputStream() throws IOException { if (this.servletOutputStream == null) { this.servletOutputStream = new LazyServletOutputStream( new Callable<ServletOutputStream>() { @Override public ServletOutputStream call() throws Exception { return PortletMimeHttpServletResponseWrapper.super .getOutputStream(); } }) { @Override public void close() throws IOException { if (!PortletMimeHttpServletResponseWrapper.this.cacheControl .useCachedContent()) { super.close(); } } }; } return this.servletOutputStream; } PortletMimeHttpServletResponseWrapper(
            HttpServletResponse httpServletResponse,
            IPortletWindow portletWindow,
            PortletOutputHandler portletOutputHandler,
            CacheControl cacheControl); }
PortletMimeHttpServletResponseWrapper extends PortletHttpServletResponseWrapper { @Override public ServletOutputStream getOutputStream() throws IOException { if (this.servletOutputStream == null) { this.servletOutputStream = new LazyServletOutputStream( new Callable<ServletOutputStream>() { @Override public ServletOutputStream call() throws Exception { return PortletMimeHttpServletResponseWrapper.super .getOutputStream(); } }) { @Override public void close() throws IOException { if (!PortletMimeHttpServletResponseWrapper.this.cacheControl .useCachedContent()) { super.close(); } } }; } return this.servletOutputStream; } PortletMimeHttpServletResponseWrapper(
            HttpServletResponse httpServletResponse,
            IPortletWindow portletWindow,
            PortletOutputHandler portletOutputHandler,
            CacheControl cacheControl); @Override ServletOutputStream getOutputStream(); @Override PrintWriter getWriter(); @Override void flushBuffer(); @Override void resetBuffer(); @Override void reset(); @Override void setBufferSize(int size); @Override void setContentType(String type); @Override String getContentType(); @Override int getBufferSize(); @Override boolean isCommitted(); }
PortletMimeHttpServletResponseWrapper extends PortletHttpServletResponseWrapper { @Override public ServletOutputStream getOutputStream() throws IOException { if (this.servletOutputStream == null) { this.servletOutputStream = new LazyServletOutputStream( new Callable<ServletOutputStream>() { @Override public ServletOutputStream call() throws Exception { return PortletMimeHttpServletResponseWrapper.super .getOutputStream(); } }) { @Override public void close() throws IOException { if (!PortletMimeHttpServletResponseWrapper.this.cacheControl .useCachedContent()) { super.close(); } } }; } return this.servletOutputStream; } PortletMimeHttpServletResponseWrapper(
            HttpServletResponse httpServletResponse,
            IPortletWindow portletWindow,
            PortletOutputHandler portletOutputHandler,
            CacheControl cacheControl); @Override ServletOutputStream getOutputStream(); @Override PrintWriter getWriter(); @Override void flushBuffer(); @Override void resetBuffer(); @Override void reset(); @Override void setBufferSize(int size); @Override void setContentType(String type); @Override String getContentType(); @Override int getBufferSize(); @Override boolean isCommitted();  }