org.hd.d.pg2k.webSvr.ads
Class TribalFusionBean

java.lang.Object
  extended by org.hd.d.pg2k.webSvr.ads.TribalFusionBean
All Implemented Interfaces:
AdBeanInterface

public final class TribalFusionBean
extends java.lang.Object
implements AdBeanInterface

This implements the Tribal Fusion bean. Lightweight.

Thread-safe.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hd.d.pg2k.webSvr.ads.AdBeanInterface
AdBeanInterface.Context
 
Field Summary
static java.lang.String AD_FORMAT_TF_TOWER_NARROW
          Parameter value to select narrow (120x600) fixed-width tower format.
static java.lang.String AD_FORMAT_TF_TOWER_NARROW_IF
          Parameter value to select narrow (120x600) iframe tower format; fastest page loading.
static java.lang.String AD_FORMAT_TF_TOWER_WIDE_IF
          Parameter value to select wide (up to 160x600) iframe tower format; fastest page loading.
static java.lang.String AD_FORMAT_TF_TOWER_WIDEVAR
          Parameter value to select wide (up to 160x600) variable-width tower format (default).
private static boolean ALLOW_NOAD_CODE
          If true, sometimes use NoAd (collapsing) code in tower slots.
private  java.lang.String selectedFormat
          Requested ad format or null; volatile to allow lock-less thread-safe access.
 
Constructor Summary
TribalFusionBean()
           
 
Method Summary
 boolean canMakeHTMLBodyInsert(AdBeanInterface.Context ctxt)
          Can make an HTML body-text insert in the given context.
 java.lang.String getHTMLBodyInsert(AdBeanInterface.Context ctxt, java.util.Random source)
          Make HTML body text in the given context, or null if none can be made.
 AdBeanInterface setParams(java.lang.String rawParams)
          Can be used to set general parameters for the bean, or can be null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AD_FORMAT_TF_TOWER_WIDEVAR

public static final java.lang.String AD_FORMAT_TF_TOWER_WIDEVAR
Parameter value to select wide (up to 160x600) variable-width tower format (default).

See Also:
Constant Field Values

AD_FORMAT_TF_TOWER_NARROW

public static final java.lang.String AD_FORMAT_TF_TOWER_NARROW
Parameter value to select narrow (120x600) fixed-width tower format.

See Also:
Constant Field Values

AD_FORMAT_TF_TOWER_WIDE_IF

public static final java.lang.String AD_FORMAT_TF_TOWER_WIDE_IF
Parameter value to select wide (up to 160x600) iframe tower format; fastest page loading.

See Also:
Constant Field Values

AD_FORMAT_TF_TOWER_NARROW_IF

public static final java.lang.String AD_FORMAT_TF_TOWER_NARROW_IF
Parameter value to select narrow (120x600) iframe tower format; fastest page loading.

See Also:
Constant Field Values

selectedFormat

private volatile java.lang.String selectedFormat
Requested ad format or null; volatile to allow lock-less thread-safe access.


ALLOW_NOAD_CODE

private static final boolean ALLOW_NOAD_CODE
If true, sometimes use NoAd (collapsing) code in tower slots.

See Also:
Constant Field Values
Constructor Detail

TribalFusionBean

public TribalFusionBean()
Method Detail

setParams

public AdBeanInterface setParams(java.lang.String rawParams)
Can be used to set general parameters for the bean, or can be null.

Specified by:
setParams in interface AdBeanInterface
Returns:
instance so as to allow pure expression constructions of form (new ...Bean()).setParams().getHTMLBodyInsert(xxx, rnd)

canMakeHTMLBodyInsert

public boolean canMakeHTMLBodyInsert(AdBeanInterface.Context ctxt)
Can make an HTML body-text insert in the given context. Always true for Tribal Fusion towers.

Specified by:
canMakeHTMLBodyInsert in interface AdBeanInterface

getHTMLBodyInsert

public java.lang.String getHTMLBodyInsert(AdBeanInterface.Context ctxt,
                                          java.util.Random source)
Make HTML body text in the given context, or null if none can be made.

Specified by:
getHTMLBodyInsert in interface AdBeanInterface
Parameters:
ctxt - not used
source - must not be null

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.