Class HTMLServerImageHandler
java.lang.Object
org.eclipse.birt.report.engine.api.HTMLImageHandler
org.eclipse.birt.report.engine.api.HTMLServerImageHandler
- All Implemented Interfaces:
IHTMLImageHandler
Default implementation for writing images in a form that is used in a
web-application.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateUniqueFileName(String imageDir, String prefix) returns a unique file name based on a directory and name prefixprotected StringcreateUniqueFileName(String imageDir, String prefix, String postfix) creates a unique tempoary file to store an imagevoidgetImage(OutputStream out, String imageDir, String imageID) get imageprotected StringgetImageMapID(IImage image) returns the unique identifier for the imageprotected StringhandleImage(IImage image, Object context, String prefix, boolean needMap) handles an image report item and returns an image URLprotected StringhandleTempImage(IImage image, String prefix, boolean needMap) Handle a temporary image .onCustomImage(IImage image, Object context) Deprecated.onDesignImage(IImage image, Object context) Deprecated.onDocImage(IImage image, Object context) Deprecated.onFileImage(IImage image, Object context) Deprecated.onURLImage(IImage image, Object context) Deprecated.Methods inherited from class HTMLImageHandler
addCachedImage, getCachedImage, getRenderContext, onCustomImage, onDesignImage, onDocImage, onFileImage, onURLImage
-
Field Details
-
log
-
-
Constructor Details
-
HTMLServerImageHandler
public HTMLServerImageHandler()dummy constructor
-
-
Method Details
-
onDesignImage
Deprecated.(non-Javadoc)- Specified by:
onDesignImagein interfaceIHTMLImageHandler- Overrides:
onDesignImagein classHTMLImageHandler- Parameters:
image- the image definition objectcontext- the context for generating the URL- Returns:
- the URL for the image
- See Also:
-
onDocImage
Deprecated.(non-Javadoc)- Specified by:
onDocImagein interfaceIHTMLImageHandler- Overrides:
onDocImagein classHTMLImageHandler- Parameters:
image- the image definition objectcontext- the context for generating the URL- Returns:
- the URL for the image
- See Also:
-
onURLImage
Deprecated.(non-Javadoc)- Specified by:
onURLImagein interfaceIHTMLImageHandler- Overrides:
onURLImagein classHTMLImageHandler- Parameters:
image- the image definition objectcontext- the context for generating the URL- Returns:
- the URL for the image
- See Also:
-
onCustomImage
Deprecated.(non-Javadoc)- Specified by:
onCustomImagein interfaceIHTMLImageHandler- Overrides:
onCustomImagein classHTMLImageHandler- Parameters:
image- the image definition objectcontext- the context for generating the URL- Returns:
- the URL for the image
- See Also:
-
createUniqueFileName
-
createUniqueFileName
-
onFileImage
Deprecated.(non-Javadoc)- Specified by:
onFileImagein interfaceIHTMLImageHandler- Overrides:
onFileImagein classHTMLImageHandler- Parameters:
image- the image definition objectcontext- the context for generating the URL- Returns:
- the URL for the image
- See Also:
-
handleImage
handles an image report item and returns an image URL- Parameters:
image- represents the image design informationcontext- context informationprefix- image prefix in URLneedMap- whether image map is needed- Returns:
- URL for the image
-
handleTempImage
-
getImageMapID
-
getImage
get image- Parameters:
out- the output stream of imageimageDir- the image directoryimageID- id of image- Throws:
IOExceptionEngineException
-