String requestPath = locator.getRequestPath(); Iterator<ProfileLocatorProperty []> locatorIter = locator.iterator(); if (locatorIter.hasNext())
public ProfileLocator createLocator(RequestContext context) { try { ProfileLocator locator = (ProfileLocator) beanFactory.getBean( this.locatorBean, ProfileLocator.class); locator.init(this, context.getPath(), ((context.getRequest() != null) ? context.getRequest().getServerName() : null)); return locator; } catch (Exception e) { log.error("Failed to create locator for " + this.locatorBean + " error : " + e.getLocalizedMessage()); } return null; }
debug.append(locator.toString());
requestPath = locator.getRequestPath(); requestServerName = locator.getRequestServerName();
ProfileLocatorProperty [] properties = locator.iterator().next(); for (int i = 0, limit = properties.length; (i < limit); i++)
/** * locatorRequestPath - extract request specific path from profile locator * using request path from locator * * @param locator request profile locator * @return request path */ private static String locatorRequestPath(ProfileLocator locator) { // use request path in locator as default return locatorRequestPath(locator, locator.getRequestPath()); }
boolean isControl = resolver.isControl(criterion); boolean isNavigation = resolver.isNavigation(criterion); locator.add(criterion, isControl, isNavigation, value);
Iterator<ProfileLocatorProperty []> locatorIter = locator.iterator(); while (locatorIter.hasNext())