Note: The information in this section applies to page requests processed by the AssemblerPipelineServlet
only. For information about page requests that are processed using the InvokeAssembler
servlet bean, see the InvokeAssembler section.
For page requests processed by the AssemblerPipelineServlet
, the AssemblerTools.getContentPath()
method calculates the content path from the request URL, for example, /browse
. The content path identifies the page in Experience Manager whose content should be rendered and it is relative to the current site, meaning if the current site is storeus
and the content path is /browse
, then the /browse
page will be retrieved for the storeus
site.
The AssemblerTools
component has several properties that the getContentPath()
method takes into account when it calculates the content path. For example, if a request is made to http://localhost:8080/crs/storeus/browse/
, the getContentPath()
method does the following:
Gets the request URI using the
atg.servlet.ServletUtil
class. In this case, the request URI is:/crs/storeus/browse/
If the
AssemblerTools.isRemoveSiteBaseURL()
property is true,getContentPath()
removes the site base URL (also known as theproductionURL
). In this example, the site base URL is/crs/storeus
, so the modified path becomes:/browse/
If
AssemblerTools.isRemoveContextRoot()
property is true and the site base URL has not been removed,getContentPath()
removes the context root. In this case,getContentPath()
has already removed the site base URL, so the path remains as is:/browse/