Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.p13n.ad.render
Class DefaultContentProvider

    java.lang.Object
      com.bea.p13n.ad.render.DefaultContentProvider

All Implemented Interfaces
  AdContentProvider, AdRenderableContentProvider

    public class DefaultContentProvider

extends Object
implements AdRenderableContentProvider

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).

Nested Class Summary
`static class` | `DefaultContentProvider.ContentVariableFinder` A variable finder that will retrieve the variable values as properties of a Content object.

Field Summary

Fields inherited from interface com.bea.p13n.ad.AdRenderableContentProvider
`VERSION_ID`

Fields inherited from interface com.bea.p13n.ad.AdContentProvider
`NEW_WINDOW, NEW_WINDOW_TYPE, PREVIEW`

Constructor Summary
`DefaultContentProvider()`

Method Summary
`static String` | `cnvrtSC(String s)` Convert special characters.
`String` | `renderContent(Node c, long identifier, String servletBase, int height, int width, int options)` Deprecated
`String` | `renderContent(RenderableContent content, long identifier, 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`

Constructor Detail

### DefaultContentProvider

    public DefaultContentProvider()

Method Detail

### renderContent

    public String renderContent(Node c,
                                long identifier,
                                String servletBase,
                                int height,
                                int width,
                                int options)
                         throws AdContentException

  Deprecated

  Return the XHTML content for the specified content

  Specified by:
    `renderContent` in interface `AdContentProvider`
  Parameters
    `c` - The Node 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
  Throws
    `AdContentException`

### renderContent

    public String renderContent(RenderableContent content,
                                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 `AdRenderableContentProvider`
  Parameters
    `c` - The Node 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
  Throws
    `AdContentException`

### cnvrtSC

    public static final String cnvrtSC(String s)

  Convert special characters.

  See Also
    `AdHelper.toHTML(java.lang.String)`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.