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

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

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

This implements the AdBrite bean.


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_AB_HORIZONTAL
          Parameter value to select horizontal (banner) format.
static java.lang.String AD_FORMAT_AB_VERTICAL
          Parameter value to select vertical (tower) format (default).
private  java.lang.String selectedFormat
          Requested ad format or null; volatile to allow lock-less thread-safe access.
 
Constructor Summary
AdBriteBean()
           
 
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_AB_VERTICAL

public static final java.lang.String AD_FORMAT_AB_VERTICAL
Parameter value to select vertical (tower) format (default).

See Also:
Constant Field Values

AD_FORMAT_AB_HORIZONTAL

public static final java.lang.String AD_FORMAT_AB_HORIZONTAL
Parameter value to select horizontal (banner) format.

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.

Constructor Detail

AdBriteBean

public AdBriteBean()
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 AdBrite.

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 - not used

DHD Multimedia Gallery V1.53.0

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