com.bea.p13n.ad.render
Class DefaultContentProvider
java.lang.Object
com.bea.p13n.ad.render.DefaultContentProvider
- All Implemented Interfaces:
- AdContentProvider
- public class DefaultContentProvider
- extends 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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultContentProvider
public DefaultContentProvider()
cnvrtSC
public static final String cnvrtSC(String s)
- Convert special characters.
- See Also:
AdHelper.toHTML(java.lang.String)
renderContent
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
- Specified by:
renderContent
in interface AdContentProvider
- Parameters:
c
- The Node 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 widthoptions
- The options for the rendering
- Throws:
AdContentException
Copyright © 2005 BEA Systems, Inc. All Rights Reserved