use of org.asqatasun.entity.parameterization.Parameter in project Asqatasun by Asqatasun.
the class ParameterFactoryImpl method createParameter.
@Override
public Parameter createParameter(ParameterElement parameterElement, String value) {
Parameter parameter = new ParameterImpl();
parameter.setDefaultParameterValue(false);
parameter.setParameterElement(parameterElement);
parameter.setValue(value);
return parameter;
}
use of org.asqatasun.entity.parameterization.Parameter in project Asqatasun by Asqatasun.
the class CrawlerServiceImpl method crawlGroupOfPages.
@Override
public WebResource crawlGroupOfPages(Audit audit, String siteUrl, List<String> urlList) {
Crawler crawler = getCrawlerInstance((Set<Parameter>) audit.getParameterSet(), true);
crawler.setSiteURL(siteUrl, urlList);
return crawl(crawler, audit, true);
}
use of org.asqatasun.entity.parameterization.Parameter in project Asqatasun by Asqatasun.
the class CrawlerServiceImpl method crawlPage.
@Override
public WebResource crawlPage(Audit audit, String pageUrl) {
Crawler crawler = getCrawlerInstance((Set<Parameter>) audit.getParameterSet(), true);
crawler.setPageURL(pageUrl);
return crawl(crawler, audit, true);
}
use of org.asqatasun.entity.parameterization.Parameter in project Asqatasun by Asqatasun.
the class AsqatasunOrchestratorImpl method auditSite.
@Override
public Audit auditSite(Contract contract, String siteUrl, final List<String> pageUrlList, String clientIp, Set<Parameter> parameterSet, Locale locale) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Group of pages audit");
for (String str : pageUrlList) {
LOGGER.debug("pageUrl " + str);
}
for (Parameter param : parameterSet) {
LOGGER.debug("param " + param.getValue() + " " + param.getParameterElement().getParameterElementCode());
}
}
Act act = createAct(contract, ScopeEnum.GROUPOFPAGES, clientIp);
AuditTimeoutThread auditPageThread = new AuditGroupOfPagesThread(siteUrl, pageUrlList, auditService, act, parameterSet, locale, delay);
Audit audit = submitAuditAndLaunch(auditPageThread, act);
return audit;
}
use of org.asqatasun.entity.parameterization.Parameter in project Asqatasun by Asqatasun.
the class AsqatasunOrchestratorImpl method auditPage.
@Override
public Audit auditPage(Contract contract, String pageUrl, String clientIp, Set<Parameter> parameterSet, Locale locale) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Page audit on " + pageUrl);
for (Parameter param : parameterSet) {
LOGGER.debug("param " + param.getValue() + " " + param.getParameterElement().getParameterElementCode());
}
}
Act act = createAct(contract, ScopeEnum.PAGE, clientIp);
AuditTimeoutThread auditPageThread = new AuditPageThread(pageUrl, auditService, act, parameterSet, locale, delay);
Audit audit = submitAuditAndLaunch(auditPageThread, act);
return audit;
}
Aggregations