Package net.sf.jasperreports.jakarta.web
Class ImageWebResourceHandler
- java.lang.Object
-
- net.sf.jasperreports.jakarta.web.ImageWebResourceHandler
-
- All Implemented Interfaces:
WebResourceHandler
public class ImageWebResourceHandler extends Object implements WebResourceHandler
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_JASPERPRINT_NOT_FOUND
static String
EXCEPTION_MESSAGE_KEY_REPORT_CONTEXT_NOT_FOUND
static String
REQUEST_PARAMETER_IMAGE_NAME
-
Constructor Summary
Constructors Constructor Description ImageWebResourceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handleResource(JasperReportsContext jasperReportsContext, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
protected byte[]
process(JasperReportsContext jasperReportsContext, Renderable renderer, Dimension dimension, Color backcolor)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_JASPERPRINT_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_JASPERPRINT_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_REPORT_CONTEXT_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_REPORT_CONTEXT_NOT_FOUND
- See Also:
- Constant Field Values
-
REQUEST_PARAMETER_IMAGE_NAME
public static final String REQUEST_PARAMETER_IMAGE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleResource
public boolean handleResource(JasperReportsContext jasperReportsContext, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
- Specified by:
handleResource
in interfaceWebResourceHandler
-
process
protected byte[] process(JasperReportsContext jasperReportsContext, Renderable renderer, Dimension dimension, Color backcolor) throws JRException
- Throws:
JRException
-
-