atg.svc.clicktoconnect
Class URIMatchLandingPageHandler

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.svc.clicktoconnect.LandingPageHandler
              extended by atg.svc.clicktoconnect.URIMatchLandingPageHandler
All Implemented Interfaces:
atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener

public class URIMatchLandingPageHandler
extends LandingPageHandler

Generates a LandingPage when the C2C Referrer URL starts with any of the values configured by the uriMatches property.

By default the configured LandingPage is returned when a match is found.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  java.lang.String[] mURIMatches
           
 
Fields inherited from class atg.svc.clicktoconnect.LandingPageHandler
mEnvironmentTools, mLandingPage
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
URIMatchLandingPageHandler()
           
 
Method Summary
protected  LandingPage createLandingPage(C2CRequestData pC2CRequestData)
          Returns the configured LandingPage
 LandingPage generateLandingPage(C2CRequestData pC2CRequestData)
          If the referrer url starts with the uriMatch property createLandingPage is executed to create the LandingPage object.
 java.lang.String[] getURIMatches()
          Returns the array of URI strings that are used to determine if this handler should create a landing page.
protected  boolean isURIMatch(C2CRequestData pC2CRequestData)
          Returns true if the referrer url starts with the value specified by the uriMatch property.
 void setURIMatches(java.lang.String[] pMatches)
           
 
Methods inherited from class atg.svc.clicktoconnect.LandingPageHandler
getEnvironmentTools, getLandingPage, getReferrerParameter, setEnvironmentTools, setLandingPage
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values

mURIMatches

protected java.lang.String[] mURIMatches
Constructor Detail

URIMatchLandingPageHandler

public URIMatchLandingPageHandler()
Method Detail

getURIMatches

public java.lang.String[] getURIMatches()
Returns the array of URI strings that are used to determine if this handler should create a landing page.

Returns:
String[]

setURIMatches

public void setURIMatches(java.lang.String[] pMatches)

isURIMatch

protected boolean isURIMatch(C2CRequestData pC2CRequestData)
Returns true if the referrer url starts with the value specified by the uriMatch property.

Parameters:
pC2CRequestData -
Returns:
true if match is found

createLandingPage

protected LandingPage createLandingPage(C2CRequestData pC2CRequestData)
Returns the configured LandingPage

Parameters:
pC2CRequestData -
Returns:
LandingPage

generateLandingPage

public LandingPage generateLandingPage(C2CRequestData pC2CRequestData)
If the referrer url starts with the uriMatch property createLandingPage is executed to create the LandingPage object.

Specified by:
generateLandingPage in class LandingPageHandler
Returns:
LandingPage