|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.svc.clicktoconnect.LandingPageHandler
atg.svc.clicktoconnect.URIMatchLandingPageHandler
@Service(requiredProperties="virtualContextRootService") public class URIMatchLandingPageHandler
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
|
protected atg.servlet.VirtualContextRootService |
mVirtualContextRootService
|
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. |
atg.servlet.VirtualContextRootService |
getVirtualContextRootService()
Returns the virtualContextRootService |
protected boolean |
isFileURIMatch(java.lang.String pReferrerFileURL)
Returns true if the referrer file url ( pReferrerFileURL ) matches
with the value specified by the uriMatch property. |
protected boolean |
isURIMatch(C2CRequestData pC2CRequestData)
This method gets the referrer file url and calls isFileURIMatch(String)
to find out whether the referrer file url matches with any configured uriMatch property
value. |
void |
setURIMatches(java.lang.String[] pMatches)
|
void |
setVirtualContextRootService(atg.servlet.VirtualContextRootService pVirtualContextRootService)
Sets the virtualContextRootService |
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, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 |
---|
public static java.lang.String CLASS_VERSION
protected java.lang.String[] mURIMatches
protected atg.servlet.VirtualContextRootService mVirtualContextRootService
Constructor Detail |
---|
public URIMatchLandingPageHandler()
Method Detail |
---|
public java.lang.String[] getURIMatches()
public void setURIMatches(java.lang.String[] pMatches)
public atg.servlet.VirtualContextRootService getVirtualContextRootService()
public void setVirtualContextRootService(atg.servlet.VirtualContextRootService pVirtualContextRootService)
pVirtualContextRootService
- the virtualContextRootService to setprotected boolean isURIMatch(C2CRequestData pC2CRequestData)
isFileURIMatch(String)
to find out whether the referrer file url matches with any configured uriMatch
property
value.
pC2CRequestData
-
isFileURIMatch(String)
protected boolean isFileURIMatch(java.lang.String pReferrerFileURL)
pReferrerFileURL
) matches
with the value specified by the uriMatch
property.
This method uses the following approach to find a match.
uriMatch
property, then the match is found and returns true. VirtualContextRootService.getRealServletPath(String)
to find the real path. if the referrer file url real path starts with the value specified by the
uriMatch
property, then the match is found and returns true.
pReferrerFileURL
-
VirtualContextRootService.getRealServletPath(String)
protected LandingPage createLandingPage(C2CRequestData pC2CRequestData)
LandingPage
pC2CRequestData
-
public LandingPage generateLandingPage(C2CRequestData pC2CRequestData)
uriMatch
property
createLandingPage
is executed to create the
LandingPage
object.
generateLandingPage
in class LandingPageHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |