TextContentProvider Class

com.bea.p13n.ad.render
TextContentProvider Class

public class TextContentProvider

    extends Object
    implements AdContentProvider

A class that provides XHTML rendering for HTML content.

This just returns the body of the content in the default encoding.


Hierarchy
Object
  TextContentProvider
All Implemented Interfaces

AdContentProvider

Constructor Summary

TextContentProvider()

 

Method Summary

public byte[]
getBytes(Node c, Property p, BinaryValue bv)
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

TextContentProvider

public TextContentProvider()
 

Method Detail

getBytes(Node, Property, BinaryValue) Method

public byte[] getBytes(Node c, 
                     Property p, 
                     BinaryValue bv)
throws RepositoryException

Exceptions

RepositoryException

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