ContentProviders Class
- public class ContentProviders
extends Object
The primary use of ContentProviders is as a AdContentProvider
factory based upon the mime type being processed. It provides some
commen routines to deal with XHTML output.
-
Hierarchy
-
Object
ContentProviders
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALT_TEXT
public static final String ALT_TEXT
ANCHOR_TARGET
public static final String ANCHOR_TARGET
DEF_AD_CLICK_THRU_URI
public static final String DEF_AD_CLICK_THRU_URI
- The default partial uri of the Ad Click-Thru handler.
DEF_SHOW_DOC_URI
public static final String DEF_SHOW_DOC_URI
- The default partial uri of the Show Document handler.
IMG_BORDER
public static final String IMG_BORDER
MAP_NAME
public static final String MAP_NAME
MAP_TEXT
public static final String MAP_TEXT
TARGET_CONTENT
public static final String TARGET_CONTENT
TARGET_URL
public static final String TARGET_URL
USE_XHTML
public static final String USE_XHTML
WIN_CLOSE
public static final String WIN_CLOSE
WIN_TARGET
public static final String WIN_TARGET
WIN_TITLE
public static final String WIN_TITLE
ContentProviders
public ContentProviders()
createNewWindowContent(Node, long, String, String, int) Method
public static String createNewWindowContent(Node c,
long id,
String target,
String servletBase,
int options)
throws AdContentException
Write the necessary XHTML script to create a new window which will
renderer the Content.
Parameters
-
c
- the Content object that we will render
-
id
- the ad bucket identifier
-
target
- the window target
-
servletBase
- the Web App root of the click thru servlet
-
options
- the render options
Exceptions
-
AdContentException
getAdClickThruURI() Method
public static String getAdClickThruURI()
Get the partial URI to the Ad Click-Thru handler.
Related Topics
AdServiceMBean
getClickTarget(Node, String) Method
public static String getClickTarget(Node c,
String servletBase)
throws RepositoryException
Return the xhtml string that represents the URL for a click
thru. The actual URL target is the click thru servlet with a
set of parameters that will allow for the redirect.
Parameters
-
c
- the content object
-
servletBase
- the Web App root of the servlet base
Exceptions
-
RepositoryException
getContentProvider(String) Method
public static AdContentProvider getContentProvider(String mimeType)
throws AdContentException
Return an AdContentProvider based upon the mimeType
This will look for the appropriate AdContentProviderMBean as a child
of the application's AdServiceMBean (in the
META-INF/application-config.xml).
Parameters
-
mimeType
- the mime type of we want to render
Exceptions
-
AdContentException
Related Topics
AdContentProviderMBean
AdServiceMBean
getContentProviderProperties(String) Method
public static Properties getContentProviderProperties(String mimeType)
throws AdContentException
Return the configuration properties for a mime type's
AdContentProvider.
This assumes getContentProvider(mimeType) has already been
invoked or is coming from an AdContentProvider implementation.
Parameters
-
mimeType
- the mime type of we want to render
Exceptions
-
AdContentException
getShowDocURI() Method
public static String getShowDocURI()
Get the partial URI to the Show Document handler.
Related Topics
AdServiceMBean