@Test public void getContentType() { AssetRenditionDownloadResponse response = new AssetRenditionDownloadResponse(ctx.response(), stringWriter, baos); response.setHeader("Content-Type", "application/test"); assertEquals("application/test", response.getContentType()); }
@Override public String getContentType() { return StringUtils.defaultIfEmpty(contentType, super.getContentType()); }
AssetRenditionDownloadResponse extends BufferedSlingHttpServletResponse { @Override public String getContentType() { return StringUtils.defaultIfEmpty(contentType, super.getContentType()); } }
AssetRenditionDownloadResponse extends BufferedSlingHttpServletResponse { @Override public String getContentType() { return StringUtils.defaultIfEmpty(contentType, super.getContentType()); } AssetRenditionDownloadResponse(SlingHttpServletResponse wrappedResponse, StringWriter writer, ByteArrayOutputStream outputStream); }
AssetRenditionDownloadResponse extends BufferedSlingHttpServletResponse { @Override public String getContentType() { return StringUtils.defaultIfEmpty(contentType, super.getContentType()); } AssetRenditionDownloadResponse(SlingHttpServletResponse wrappedResponse, StringWriter writer, ByteArrayOutputStream outputStream); boolean isRedirect(); String getRedirect(); @Override void sendRedirect(String location); @Override void setStatus(int statusCode); @Override void setHeader(String key, String value); @Override void sendError(int statusCode); @Override void sendError(int statusCode, String msg); ByteArrayOutputStream getByteArrayOutputStream(); int getStatusCode(); @Override String getContentType(); @Override void setContentLength(int contentLength); }
AssetRenditionDownloadResponse extends BufferedSlingHttpServletResponse { @Override public String getContentType() { return StringUtils.defaultIfEmpty(contentType, super.getContentType()); } AssetRenditionDownloadResponse(SlingHttpServletResponse wrappedResponse, StringWriter writer, ByteArrayOutputStream outputStream); boolean isRedirect(); String getRedirect(); @Override void sendRedirect(String location); @Override void setStatus(int statusCode); @Override void setHeader(String key, String value); @Override void sendError(int statusCode); @Override void sendError(int statusCode, String msg); ByteArrayOutputStream getByteArrayOutputStream(); int getStatusCode(); @Override String getContentType(); @Override void setContentLength(int contentLength);  }