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.
  • Constructor Details

    • CrawlsApiServiceImpl

      @Autowired public CrawlsApiServiceImpl(jakarta.servlet.http.HttpServletRequest request)
  • Method Details

    • getCrawlById

      public org.springframework.http.ResponseEntity getCrawlById(String jobId)
      Provides the status of a requested crawl.
      Specified by:
      getCrawlById in interface CrawlsApiDelegate
      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:
      getCrawlByMimeType in interface CrawlsApiDelegate
      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:
      getCrawlErrors in interface CrawlsApiDelegate
      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:
      getCrawlExcluded in interface CrawlsApiDelegate
      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:
      getCrawlFetched in interface CrawlsApiDelegate
      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:
      getCrawlNotModified in interface CrawlsApiDelegate
      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:
      getCrawlParsed in interface CrawlsApiDelegate
      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:
      getCrawlPending in interface CrawlsApiDelegate
      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

      public org.springframework.http.ResponseEntity getCrawls(Integer limit, String continuationToken)
      Provides all (or a pageful of) the crawls in the service.
      Specified by:
      getCrawls in interface CrawlsApiDelegate
      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: