com.bea.p13n.ad.render
Class ShockwaveContentProvider

java.lang.Object
  extended by com.bea.p13n.ad.render.ShockwaveContentProvider
All Implemented Interfaces
AdContentProvider, AdRenderableContentProvider

public class ShockwaveContentProvider
extends Object
implements AdRenderableContentProvider

A class that provides XHTML rendering for shockwave content.

This will respond to the following AdContentProvider properties (specified in the configuration):


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
ShockwaveContentProvider()
           
 
Method Summary
static String cnvrtSC(String s)
          Convert special characters.
protected  String createParam(String name, String value)
          Create a tag with the specified name and value.
 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

ShockwaveContentProvider

public ShockwaveContentProvider()
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
content - 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
option - 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
content - 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
option - The options for the rendering
Throws
AdContentException

createParam

protected String createParam(String name,
                             String value)
Create a tag with the specified name and value.

Parameters
name - the name attribute
value - the value attribute

cnvrtSC

public static final String cnvrtSC(String s)
Convert special characters.

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


Copyright © 2011, Oracle. All rights reserved.