public class NASEnvironment extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NASEnvironment.StringMatcher |
Modifier and Type | Field and Description |
---|---|
static String |
contextPath |
String |
h3AdminName |
String |
h3AdminPassword |
List<NASEnvironment.StringMatcher> |
h3HostPortAllowRegexList |
Heritrix3JobMonitorThread |
h3JobMonitorThread |
HttpLocaleHandler |
httpLocaleUtils |
I18n |
I18N |
protected String |
login_template_name |
protected com.antiaction.common.templateengine.login.LoginTemplateHandler<NASUser> |
loginHandler |
String |
NAS_GROOVY_SCRIPT |
static String |
servicePath |
protected javax.servlet.ServletConfig |
servletConfig
servletConfig.
|
com.antiaction.common.templateengine.TemplateMaster |
templateMaster |
File |
tempPath |
Constructor and Description |
---|
NASEnvironment(javax.servlet.ServletContext servletContext,
javax.servlet.ServletConfig theServletConfig) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Do some cleanup.
|
Stream<String> |
getCrawledUrls(long jobId,
Heritrix3JobMonitor h3Job)
Get the (attempted) crawled URLs of the crawllog for the running job with the given job id
|
String |
getResourceAsString(String resource) |
boolean |
isH3HostnamePortEnabled(String h3HostnamePort) |
boolean |
jobHarvestsDomain(long jobId,
String domainName,
Heritrix3JobMonitor h3Job)
Find out whether the given job harvests given domain.
|
void |
replaceH3HostnamePortRegexList(List<String> h3HostnamePortRegexList,
List<String> invalidPatternsList) |
void |
start() |
public String NAS_GROOVY_SCRIPT
protected javax.servlet.ServletConfig servletConfig
public com.antiaction.common.templateengine.TemplateMaster templateMaster
protected String login_template_name
protected com.antiaction.common.templateengine.login.LoginTemplateHandler<NASUser> loginHandler
public String h3AdminName
public String h3AdminPassword
public Heritrix3JobMonitorThread h3JobMonitorThread
public static String contextPath
public static String servicePath
public HttpLocaleHandler httpLocaleUtils
public List<NASEnvironment.StringMatcher> h3HostPortAllowRegexList
public NASEnvironment(javax.servlet.ServletContext servletContext, javax.servlet.ServletConfig theServletConfig) throws javax.servlet.ServletException
javax.servlet.ServletException
public String getResourceAsString(String resource) throws IOException
IOException
public void start()
public void cleanup()
public void replaceH3HostnamePortRegexList(List<String> h3HostnamePortRegexList, List<String> invalidPatternsList)
public boolean isH3HostnamePortEnabled(String h3HostnamePort)
public Stream<String> getCrawledUrls(long jobId, Heritrix3JobMonitor h3Job)
jobId
- Id of the running jobh3Job
- Heritrix3JobMonitor from which to get the job for the given jobIdpublic boolean jobHarvestsDomain(long jobId, String domainName, Heritrix3JobMonitor h3Job)
jobId
- The jobdomainName
- The domainCopyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.