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
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextContentProvider
public TextContentProvider()
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