/** * Resolves with the help of the current resolvedSiteMapItem to a new sitemap item with path <code>pathInfo</code> * @param request * @param response * @param currentResolvedSiteMapItem * @param pathInfo * @throws MatchException when the <code>pathInfo</code> cannot be matched * @return a new ResolvedSiteMapItem */ public ResolvedSiteMapItem matchSiteMapItem(HttpServletRequest request, HttpServletResponse response, ResolvedSiteMapItem currentResolvedSiteMapItem, String pathInfo) throws MatchException { return currentResolvedSiteMapItem.getResolvedSiteMount().matchSiteMapItem(pathInfo); }
resolvedSiteMapItem = mount.matchSiteMapItem(hstContainerURL.getPathInfo()); if(resolvedSiteMapItem == null) {
public ResolvedSiteMapItem matchSiteMapItem(HstContainerURL hstContainerURL) throws MatchException{ ResolvedVirtualHost resolvedVirtualHost = matchVirtualHost(hstContainerURL.getHostName()); if(resolvedVirtualHost == null) { throw new MatchException("Unknown host '"+hstContainerURL.getHostName()+"'"); } ResolvedSiteMount resolvedSiteMount = resolvedVirtualHost.matchSiteMount(hstContainerURL.getContextPath(), hstContainerURL.getRequestPath()); if(resolvedSiteMount == null) { if(resolvedSiteMount == null) { throw new MatchException("resolvedVirtualHost '"+hstContainerURL.getHostName()+"' does not have a site mount"); } } return resolvedSiteMount.matchSiteMapItem(hstContainerURL.getPathInfo()); }
req.removeAttribute(ContainerConstants.HST_FORWARD_PATH_INFO); resolvedSiteMapItem = resolvedSiteMapItem.getResolvedSiteMount().matchSiteMapItem(forwardPathInfo); if(resolvedSiteMapItem == null) {