@Service public class CrawlsApiServiceImpl extends BaseSpringApiServiceImpl implements CrawlsApiDelegate
BaseSpringApiServiceImpl.MapMessageListenerDEFAULT_CONFIG_WAIT_TIME, DEFAULT_READY_WAIT_TIME, JMS_BOTH, JMS_RECEIVE, JMS_SEND, jmsConsumer, jmsProducer, PARAM_CONFIG_WAIT_TIME, PARAM_READY_WAIT_TIME| Constructor and Description |
|---|
CrawlsApiServiceImpl(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<CrawlStatus> |
deleteCrawlById(String jobId)
Deletes a crawl previously added to the crawl queue, stopping the crawl if already running.
|
org.springframework.http.ResponseEntity<CrawlStatus> |
getCrawlById(String jobId)
Provides the status of a requested crawl.
|
org.springframework.http.ResponseEntity<UrlPager> |
getCrawlByMimeType(String jobId,
String type,
Integer limit,
String continuationToken)
Returns all (or a pageful of) the items in a crawl by MIME type..
|
org.springframework.http.ResponseEntity<UrlPager> |
getCrawlErrors(String jobId,
Integer limit,
String continuationToken)
Returns all (or a pageful of) the error URLS in a crawl.
|
org.springframework.http.ResponseEntity<UrlPager> |
getCrawlExcluded(String jobId,
Integer limit,
String continuationToken)
Returns all (or a pageful of) the excluded URLS in a crawl.
|
org.springframework.http.ResponseEntity<UrlPager> |
getCrawlFetched(String jobId,
Integer limit,
String continuationToken)
Returns all (or a pageful of) the fetched URLS in a crawl.
|
org.springframework.http.ResponseEntity<UrlPager> |
getCrawlNotModified(String jobId,
Integer limit,
String continuationToken)
Returns all (or a pageful of) the not-modified URLS in a crawl.
|
org.springframework.http.ResponseEntity<UrlPager> |
getCrawlParsed(String jobId,
Integer limit,
String continuationToken)
Returns all (or a pageful of) the parsed URLS in a crawl.
|
org.springframework.http.ResponseEntity<UrlPager> |
getCrawlPending(String jobId,
Integer limit,
String continuationToken)
Returns all (or a pageful of) the pending URLS in a crawl.
|
org.springframework.http.ResponseEntity<CrawlPager> |
getCrawls(Integer limit,
String continuationToken)
Provides all (or a pageful of) the crawls in the service.
|
configMgrCreated, getClassName, getConfigWaitTime, getJMSManager, getPluginManager, getReadyWaitTime, getRunningLockssDaemon, getStateManager, getWaitTime, jmsSetUpDone, jsonResponse, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, stringResponse, waitConfig, waitConfig, waitReady, waitReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAcceptHeader, getObjectMapper, getRequest@Autowired public CrawlsApiServiceImpl(javax.servlet.http.HttpServletRequest request)
public org.springframework.http.ResponseEntity<CrawlStatus> deleteCrawlById(String jobId)
deleteCrawlById in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.ResponseEntity<CrawlStatus> with the status of the deleted crawl.CrawlsApi.deleteCrawlById(java.lang.String)public org.springframework.http.ResponseEntity<CrawlStatus> getCrawlById(String jobId)
getCrawlById in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.ResponseEntity<CrawlStatus> with the status of the crawl.CrawlsApi.getCrawlById(java.lang.String)public org.springframework.http.ResponseEntity<UrlPager> getCrawlByMimeType(String jobId, String type, Integer limit, String continuationToken)
getCrawlByMimeType in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.type - A String with the MIME type.limit - An Integer with the maximum number of URLs per s page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<UrlPager> with the information about the items.CrawlsApi.getCrawlByMimeType(java.lang.String, java.lang.String, java.lang.Integer, java.lang.String)public org.springframework.http.ResponseEntity<UrlPager> getCrawlErrors(String jobId, Integer limit, String continuationToken)
getCrawlErrors in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.limit - An Integer with the maximum number of URLs per page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<UrlPager> with the information about the error URLs.CrawlsApi.getCrawlErrors(java.lang.String, java.lang.Integer, java.lang.String)public org.springframework.http.ResponseEntity<UrlPager> getCrawlExcluded(String jobId, Integer limit, String continuationToken)
getCrawlExcluded in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.limit - An Integer with the maximum number of URLs per page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<UrlPager> with the information about the excluded URLs.CrawlsApi.getCrawlExcluded(java.lang.String, java.lang.Integer, java.lang.String)public org.springframework.http.ResponseEntity<UrlPager> getCrawlFetched(String jobId, Integer limit, String continuationToken)
getCrawlFetched in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.limit - An Integer with the maximum number of URLs per page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<UrlPager> with the information about the fetched URLs.CrawlsApi.getCrawlFetched(java.lang.String, java.lang.Integer, java.lang.String)public org.springframework.http.ResponseEntity<UrlPager> getCrawlNotModified(String jobId, Integer limit, String continuationToken)
getCrawlNotModified in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.limit - An Integer with the maximum number of URLs per page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<UrlPager> with the information about the not-modified URLs.CrawlsApi.getCrawlNotModified(java.lang.String, java.lang.Integer, java.lang.String)public org.springframework.http.ResponseEntity<UrlPager> getCrawlParsed(String jobId, Integer limit, String continuationToken)
getCrawlParsed in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.limit - An Integer with the maximum number of URLs per page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<UrlPager> with the information about the parsed URLs.CrawlsApi.getCrawlParsed(java.lang.String, java.lang.Integer, java.lang.String)public org.springframework.http.ResponseEntity<UrlPager> getCrawlPending(String jobId, Integer limit, String continuationToken)
getCrawlPending in interface CrawlsApiDelegatejobId - A String with the identifier assigned to the crawl when added.limit - An Integer with the maximum number of URLs per page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<UrlPager> with the information about the pending URLs.CrawlsApi.getCrawlPending(java.lang.String, java.lang.Integer, java.lang.String)public org.springframework.http.ResponseEntity<CrawlPager> getCrawls(Integer limit, String continuationToken)
getCrawls in interface CrawlsApiDelegatelimit - An Integer with the maximum number of crawls per page.continuationToken - A String with the continuation token used to fetch the next pageResponseEntity<CrawlPager> with the information about the crawls.CrawlsApi.getCrawls(java.lang.Integer, java.lang.String)Copyright © 2000–2023 LOCKSS Program. All rights reserved.