com.bea.p13n.ad.render
Class DefaultContentProvider
java.lang.Object
|
+--com.bea.p13n.ad.render.DefaultContentProvider
- public class DefaultContentProvider
- extends java.lang.Object
- implements AdContentProvider
A default ad renderer for when no other renderer is available.
This will just print a link to the document.
This will respond to the following AdContentProvider properties
(specified in the configuration):
- ShowDocURI: The web-application scoped URI of the ShowDocServlet
(defaults to "ShowDoc").
- DisplayStr: The text of the link. This can contain ${prop} values,
which will be replaced by the corresponding value on the ad Content object
(defaults to
${name}
which is the name of the Content).
Method Summary
|
static java.lang.String |
cnvrtSC(java.lang.String s)
Convert special characters. |
java.lang.String |
renderContent(Content c,
long identifier,
java.lang.String servletBase,
int height,
int width,
int options)
Return the XHTML content for the specified content |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DefaultContentProvider
public DefaultContentProvider()
renderContent
public java.lang.String renderContent(Content c,
long identifier,
java.lang.String servletBase,
int height,
int width,
int options)
throws AdContentException
- Return the XHTML content for the specified content
- Specified by:
- renderContent in interface AdContentProvider
- Parameters:
content
- The content element to renderidentifier
- A long that is used to access the database recordservletBase
- The Web App root for the click thru servletheight
- The suggested heightwidth
- The suggested widthoption
- The options for the rendering
cnvrtSC
public static final java.lang.String cnvrtSC(java.lang.String s)
- Convert special characters.
- See Also:
ContentHelper.toHTML(java.lang.String)
Copyright © 2002 BEA Systems, Inc. All Rights Reserved