/** * Detect integrator template modes - check selectors in current url. */ private void detectIntegratorTemplateModes() { // integrator mode cannot be active if no modes defined if (urlHandlerConfig.getIntegratorModes().isEmpty()) { return; } if (request != null && RequestPath.hasSelector(request, SELECTOR_INTEGRATORTEMPLATE_SECURE)) { integratorTemplateSecureMode = true; } else if (request != null && RequestPath.hasSelector(request, SELECTOR_INTEGRATORTEMPLATE)) { integratorTemplateMode = true; } }
if (RequestPath.hasSelector(request, SELECTOR_DOWNLOAD)) {
/** * Checks whether resource URLs should be rendered in secure mode or not. * @return true if resource URLs should be rendered in secure mode */ private boolean isResourceUrlSecure(Page page) { ValueMap props = getPagePropertiesNullSafe(page); IntegratorMode mode = getIntegratorMode(props); if (mode.isDetectProtocol()) { IntegratorProtocol integratorProtocol = getIntegratorProtocol(props); if (integratorProtocol == IntegratorProtocol.HTTPS) { return true; } else if (integratorProtocol == IntegratorProtocol.AUTO) { return RequestPath.hasSelector(request, IntegratorHandler.SELECTOR_INTEGRATORTEMPLATE_SECURE); } } return false; }