public class DocumentLinksDroplet
extends atg.repository.seo.CanonicalItemLink
This droplet returns next canonical links: 1) home - Homepage address 2) up - If PDP, last item from breadcrumbs; if CDP, last but one item from breadcrumbs. Rendered if producId or categoryId is set. 3) chapter - Link to top-level category (item with index=1). Rendered if producId or categoryId is set. 4) section - Link to current category (last item in breadcrumbs). Rendered if producId or categoryId is set. 5) prev - If productId is set, link to previous product (if any) returned by the ProductNeighboursDroplet 6) next - If productId is set, link to next product (if any) returned by the ProductNeighboursDroplet 7) canonical - The canonical link for product or category 8) alternate - The canonical link for the same product or category, but with different locale
This droplet takes the following input parameters
Output parameters:
Open parameters
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
CURRENT_CATEGORY |
static java.lang.String |
CURRENT_PRODUCT |
static java.lang.String |
CURRENT_SITE_ID |
static java.lang.String |
HREF |
static java.lang.String |
HREFLANG |
static java.lang.String |
ITEM |
static java.lang.String |
LANG |
static java.lang.String |
LOCALE |
static java.lang.String |
PRODUCT_REPOSITORY_NAME |
static java.lang.String |
REL |
mItemDescriptorToNameMap, S_EMPTY, S_ERROR, S_ERROR_MESSAGE, S_ID, S_ITEM, S_ITEM_DESCRIPTOR_NAME, S_OUTPUT, S_REPOSITORY, S_REPOSITORY_NAME, S_SITE_ID, S_URL
Constructor and Description |
---|
DocumentLinksDroplet() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getCanonicalLink(java.lang.Object pItem,
atg.servlet.DynamoHttpServletRequest pRequest)
This method gets the canonical link for pItem
|
atg.commerce.catalog.CatalogNavHistory |
getCatalogNavHistory() |
DocumentLinksService |
getDocumentLinksService() |
atg.servlet.RequestLocale |
getRequestLocale() |
atg.multisite.Site |
getSite() |
atg.multisite.SiteURLManager |
getSiteURLManager()
Gets the SiteURLManager
|
atg.service.collections.validator.CollectionObjectValidator[] |
getValidators() |
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method provides the implementation of service
Parameters:
pRequest the request to be processed
pResponse the response object for this request
Throws:
ServletException - an application specific error occurred processing this request
IOException - an error occurred reading data from the request or writing data to the response.
|
void |
setCatalogNavHistory(atg.commerce.catalog.CatalogNavHistory pCatalogNavHistory) |
void |
setDocumentLinksService(DocumentLinksService pDocumentLinksService) |
void |
setRequestLocale(atg.servlet.RequestLocale pRequestLocale) |
void |
setSite(atg.multisite.Site pSite) |
void |
setSiteURLManager(atg.multisite.SiteURLManager pSiteURLManager)
Sets the SiteURLManager
|
void |
setValidators(atg.service.collections.validator.CollectionObjectValidator[] pValidators) |
doStartService, getItemDescriptorNameToUrlTemplateMap, getTemplate, getTemplateMapper, setItemDescriptorNameToUrlTemplateMap
getBestFitTemplateMapper, getDefaultItemDescriptorName, getDefaultRepository, getDefaultWebApp, getItemDescriptorName, getItemDescriptorNameToMapperMap, getItemLookup, getRepositoryName, getSiteLookup, getSiteManager, getSpaceMapping, populateParams, populateParams, setDefaultItemDescriptorName, setDefaultRepository, setDefaultWebApp, setItemDescriptorNameToMapperMap, setSiteManager, setSpaceMapping
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, 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, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String CURRENT_CATEGORY
public static final java.lang.String CURRENT_PRODUCT
public static final java.lang.String CURRENT_SITE_ID
public static final java.lang.String REL
public static final java.lang.String HREF
public static final java.lang.String LANG
public static final java.lang.String HREFLANG
public static final java.lang.String ITEM
public static final java.lang.String LOCALE
public static final java.lang.String PRODUCT_REPOSITORY_NAME
public atg.commerce.catalog.CatalogNavHistory getCatalogNavHistory()
public void setCatalogNavHistory(atg.commerce.catalog.CatalogNavHistory pCatalogNavHistory)
pCatalogNavHistory
- the catalogNavHistory to setpublic atg.multisite.Site getSite()
public void setSite(atg.multisite.Site pSite)
pSite
- the site to setpublic void setRequestLocale(atg.servlet.RequestLocale pRequestLocale)
pRequestLocale
- - request locale.public atg.servlet.RequestLocale getRequestLocale()
public DocumentLinksService getDocumentLinksService()
public void setDocumentLinksService(DocumentLinksService pDocumentLinksService)
pDocumentLinksService
- the documentLinksService to setpublic atg.multisite.SiteURLManager getSiteURLManager()
public void setSiteURLManager(atg.multisite.SiteURLManager pSiteURLManager)
pSiteURLManager
- the siteURLManager to setpublic atg.service.collections.validator.CollectionObjectValidator[] getValidators()
public void setValidators(atg.service.collections.validator.CollectionObjectValidator[] pValidators)
validators
- the validators to setpublic void service(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class atg.repository.seo.ItemLink
javax.servlet.ServletException
java.io.IOException
protected java.lang.String getCanonicalLink(java.lang.Object pItem, atg.servlet.DynamoHttpServletRequest pRequest)
pItem
- the item for which the canonical link will be generatedpRequest
- the request. Is used to allow using methods of ItemLink