|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.ad.ContentProviders
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.
Field Summary | |
static java.lang.String |
ALT_TEXT
|
static java.lang.String |
ANCHOR_TARGET
|
static java.lang.String |
DEF_AD_CLICK_THRU_URI
The default partial uri of the Ad Click-Thru handler. |
static java.lang.String |
DEF_SHOW_DOC_URI
The default partial uri of the Show Document handler. |
static java.lang.String |
IMG_BORDER
|
static java.lang.String |
MAP_NAME
|
static java.lang.String |
MAP_TEXT
|
static java.lang.String |
TARGET_CONTENT
|
static java.lang.String |
TARGET_URL
|
static java.lang.String |
USE_XHTML
|
static java.lang.String |
WIN_CLOSE
|
static java.lang.String |
WIN_TARGET
|
Constructor Summary | |
ContentProviders()
|
Method Summary | |
static java.lang.String |
createNewWindowContent(Content c,
long id,
java.lang.String target,
java.lang.String servletBase,
int options)
Write the necessary XHTML script to create a new window which will renderer the Content. |
static java.lang.String |
getAdClickThruURI()
Get the partial URI to the Ad Click-Thru handler. |
static java.lang.String |
getClickTarget(Content c,
java.lang.String servletBase)
Return the xhtml string that represents the URL for a click thru. |
static AdContentProvider |
getContentProvider(java.lang.String mimeType)
Return an AdContentProvider based upon the mimeType |
static java.util.Properties |
getContentProviderProperties(java.lang.String mimeType)
Return the configuration properties for a mime type's AdContentProvider. |
static java.lang.String |
getShowDocURI()
Get the partial URI to the Show Document handler. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String TARGET_URL
public static final java.lang.String TARGET_CONTENT
public static final java.lang.String ALT_TEXT
public static final java.lang.String MAP_NAME
public static final java.lang.String MAP_TEXT
public static final java.lang.String WIN_CLOSE
public static final java.lang.String WIN_TARGET
public static final java.lang.String IMG_BORDER
public static final java.lang.String ANCHOR_TARGET
public static final java.lang.String USE_XHTML
public static final java.lang.String DEF_AD_CLICK_THRU_URI
public static final java.lang.String DEF_SHOW_DOC_URI
Constructor Detail |
public ContentProviders()
Method Detail |
public static AdContentProvider getContentProvider(java.lang.String mimeType) throws AdContentException
This will look for the appropriate AdContentProviderMBean as a child of the application's AdServiceMBean (in the META-INF/application-config.xml).
mimeType
- the mime type of we want to renderAdContentProviderMBean
,
AdServiceMBean
public static java.util.Properties getContentProviderProperties(java.lang.String mimeType) throws AdContentException
This assumes getContentProvider(mimeType) has already been invoked or is coming from an AdContentProvider implementation.
mimeType
- the mime type of we want to renderpublic static java.lang.String createNewWindowContent(Content c, long id, java.lang.String target, java.lang.String servletBase, int options) throws AdContentException
c
- the Content object that we will renderid
- the ad bucket identifiertarget
- the window targetservletBase
- the Web App root of the click thru servletoptions
- the render optionspublic static java.lang.String getClickTarget(Content c, java.lang.String servletBase) throws AdContentException, java.rmi.RemoteException
c
- the content objectservletBase
- the Web App root of the servlet basepublic static java.lang.String getAdClickThruURI()
AdServiceMBean
public static java.lang.String getShowDocURI()
AdServiceMBean
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |