ImageContentProvider Class

com.bea.p13n.ad.render
ImageContentProvider Class

public class ImageContentProvider

    extends Object
    implements AdContentProvider

A class that provides a rendering of image mime types.

This will respond to the following AdContentProvider properties (specified in the configuration):

There are a set of metadata variables stored in the content manager which are used to control how the Ad is rendered.

adTarget may be set to 'newwindow' if the ad is to be displayed in a new browser window. Otherwise the adTarget will be displayed on the page where the request for the content is made.

The target of the click thru operation is defined either by the adTargetUrl or the adTargetContent depending upon source of the content.

An image map may be defined. It requires both the adMapName and the adMap attributes be defined.

If the adWinClose attribute is defined, the rendering will add a 'close window' link for the new window.


Hierarchy
Object
  ImageContentProvider
All Implemented Interfaces

AdContentProvider

Constructor Summary

ImageContentProvider()

 

Method Summary

public static final String
cnvrtSC(String s)
Convert special characters.
public String
renderContent(Node c, long identifier, String servletBase, int height, int width, int options)
Return the XHTML content for the specified content.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.p13n.ad.AdContentProvider
renderContent
 

Constructor Detail

ImageContentProvider

public ImageContentProvider()
 

Method Detail

cnvrtSC(String) Method

public static final String cnvrtSC(String s)
Convert special characters.

Related Topics

AdHelper.toHTML(String)


renderContent(Node, long, String, int, int, int) Method

public String renderContent(Node c, 
                            long identifier, 
                            String servletBase, 
                            int height, 
                            int width, 
                            int options)
throws AdContentException
Return the XHTML content for the specified content.

Parameters

c
The content element to render
identifier
A long that is used to access the database record
servletBase
The Web App root for the click thru servlet
height
The suggested height
width
The suggested width
options
The options for the rendering

Exceptions

AdContentException