# com.bea.p13n.ad
AdContentProviderBase Class

public class AdContentProviderBase
extends `Object`
implements `AdContentProvider`

A default global ad renderer.

This implementation delagates to the AdContentProvider's specified via the AdContentProvider MBean children of the application's AdService MBean (i.e. via the META-INF/application-config.xml) on a per-Content mimeType basis.

Hierarchy
  `Object`
  `AdContentProviderBase`

All Implemented Interfaces
  `AdContentProvider`

## Constructor Summary

AdContentProviderBase()

## Method Summary

`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

### AdContentProviderBase

    public AdContentProviderBase()

## Method Detail

### 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
  Identifier ID for the record generating the ad

servletBase
  The web app base on the server

height
  The suggested height

width
  The suggested width

options
  The options for the renderer

#### Returns

a String representing the XHTML content

#### Exceptions

``AdContentException``
  when there is a problem rendering the content

Related Topics

``ContentProviders.getContentProvider(String)``