Package org.lockss.laaws.crawler.impl
Class CrawlsApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.crawler.impl.CrawlsApiServiceImpl
- All Implemented Interfaces:
CrawlsApiDelegate
@Service
public class CrawlsApiServiceImpl
extends BaseSpringApiServiceImpl
implements CrawlsApiDelegate
Service for accessing crawls.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
BaseSpringApiServiceImpl.MapMessageListener -
Field Summary
Fields inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
DEFAULT_CONFIG_WAIT_TIME, DEFAULT_READY_WAIT_TIME, JMS_BOTH, JMS_RECEIVE, JMS_SEND, jmsConsumer, jmsProducer, PARAM_CONFIG_WAIT_TIME, PARAM_READY_WAIT_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntitygetCrawlById(String jobId) Provides the status of a requested crawl.org.springframework.http.ResponseEntitygetCrawlByMimeType(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.ResponseEntitygetCrawlErrors(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the error URLS in a crawl.org.springframework.http.ResponseEntitygetCrawlExcluded(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the excluded URLS in a crawl.org.springframework.http.ResponseEntitygetCrawlFetched(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the fetched URLS in a crawl.org.springframework.http.ResponseEntitygetCrawlNotModified(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the not-modified URLS in a crawl.org.springframework.http.ResponseEntitygetCrawlParsed(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the parsed URLS in a crawl.org.springframework.http.ResponseEntitygetCrawlPending(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the pending URLS in a crawl.org.springframework.http.ResponseEntityProvides all (or a pageful of) the crawls in the service.Methods inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
configMgrCreated, getClassName, getConfigWaitTime, getJMSManager, getPluginManager, getReadyWaitTime, getRunningLockssDaemon, getStateManager, getWaitTime, jmsSetUpDone, jsonResponse, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, stringResponse, waitConfig, waitConfig, waitReady, waitReadyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lockss.laaws.crawler.api.CrawlsApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
CrawlsApiServiceImpl
@Autowired public CrawlsApiServiceImpl(jakarta.servlet.http.HttpServletRequest request)
-
-
Method Details
-
getCrawlById
Provides the status of a requested crawl.- Specified by:
getCrawlByIdin interfaceCrawlsApiDelegate- Parameters:
jobId- A String with the identifier assigned to the crawl when added.- Returns:
- a
ResponseEntity<CrawlStatus>with the status of the crawl. - See Also:
-
getCrawlByMimeType
public org.springframework.http.ResponseEntity getCrawlByMimeType(String jobId, String type, Integer limit, String continuationToken) Returns all (or a pageful of) the items in a crawl by MIME type..- Specified by:
getCrawlByMimeTypein interfaceCrawlsApiDelegate- Parameters:
jobId- 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 page- Returns:
- a
ResponseEntity<UrlPager>with the information about the items. - See Also:
-
getCrawlErrors
public org.springframework.http.ResponseEntity getCrawlErrors(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the error URLS in a crawl.- Specified by:
getCrawlErrorsin interfaceCrawlsApiDelegate- Parameters:
jobId- 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 page- Returns:
- a
ResponseEntity<UrlPager>with the information about the error URLs. - See Also:
-
getCrawlExcluded
public org.springframework.http.ResponseEntity getCrawlExcluded(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the excluded URLS in a crawl.- Specified by:
getCrawlExcludedin interfaceCrawlsApiDelegate- Parameters:
jobId- 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 page- Returns:
- a
ResponseEntity<UrlPager>with the information about the excluded URLs. - See Also:
-
getCrawlFetched
public org.springframework.http.ResponseEntity getCrawlFetched(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the fetched URLS in a crawl.- Specified by:
getCrawlFetchedin interfaceCrawlsApiDelegate- Parameters:
jobId- 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 page- Returns:
- a
ResponseEntity<UrlPager>with the information about the fetched URLs. - See Also:
-
getCrawlNotModified
public org.springframework.http.ResponseEntity getCrawlNotModified(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the not-modified URLS in a crawl.- Specified by:
getCrawlNotModifiedin interfaceCrawlsApiDelegate- Parameters:
jobId- 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 page- Returns:
- a
ResponseEntity<UrlPager>with the information about the not-modified URLs. - See Also:
-
getCrawlParsed
public org.springframework.http.ResponseEntity getCrawlParsed(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the parsed URLS in a crawl.- Specified by:
getCrawlParsedin interfaceCrawlsApiDelegate- Parameters:
jobId- 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 page- Returns:
- a
ResponseEntity<UrlPager>with the information about the parsed URLs. - See Also:
-
getCrawlPending
public org.springframework.http.ResponseEntity getCrawlPending(String jobId, Integer limit, String continuationToken) Returns all (or a pageful of) the pending URLS in a crawl.- Specified by:
getCrawlPendingin interfaceCrawlsApiDelegate- Parameters:
jobId- 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 page- Returns:
- a
ResponseEntity<UrlPager>with the information about the pending URLs. - See Also:
-
getCrawls
Provides all (or a pageful of) the crawls in the service.- Specified by:
getCrawlsin interfaceCrawlsApiDelegate- Parameters:
limit- An Integer with the maximum number of crawls per page.continuationToken- A String with the continuation token used to fetch the next page- Returns:
- a
ResponseEntity<CrawlPager>with the information about the crawls. - See Also:
-