@Service public class CdxApiServiceImpl extends Object implements CdxApiDelegate
| Constructor and Description |
|---|
CdxApiServiceImpl(javax.servlet.http.HttpServletRequest request)
Constructor for autowiring.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<String> |
getCdxOwb(String collectionid,
String q,
Integer count,
Integer startPage,
String accept,
String acceptEncoding)
Provides the OpenWayback CDX records of a URL in a collection.
|
org.springframework.http.ResponseEntity<String> |
getCdxPywb(String collectionid,
String url,
Integer limit,
String matchType,
String sort,
String closest,
String output,
String fl,
String accept,
String acceptEncoding)
Provides the PyWayback CDX records of a URL in a collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAcceptHeader, getObjectMapper, getRequest@Autowired public CdxApiServiceImpl(javax.servlet.http.HttpServletRequest request)
request - An HttpServletRequest with the HTTP request.public org.springframework.http.ResponseEntity<String> getCdxOwb(String collectionid, String q, Integer count, Integer startPage, String accept, String acceptEncoding)
getCdxOwb in interface CdxApiDelegatecollectionid - A String with the identifier of the collection.q - A String with the query string. Supported fields are url, type
(urlquery/prefixquery), offset, limit, request.anchordate,
startdate and enddate.count - An Integer with the count of results per page to be returned.startPage - An Integer with the page number of results, 1 based.accept - A String with the Accept request header.acceptEncoding - A String with the Accept-Encoding request header.ResponseEntity<String> with the requested OpenWayback CDX
records.CdxApi.getCdxOwb(java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.String)public org.springframework.http.ResponseEntity<String> getCdxPywb(String collectionid, String url, Integer limit, String matchType, String sort, String closest, String output, String fl, String accept, String acceptEncoding)
getCdxPywb in interface CdxApiDelegatecollectionid - A String with the identifier of the collection.url - A String with the URL for which the CDX records are requested.limit - An Integer with the limit.matchType - A String with the type of match requested.sort - A String with the type of sort requested.closest - A String with the timestamp for the sort=closest mode.output - A String with the output format requested.fl - A String with the comma-separated list of fields to include in the
result.accept - A String with the Accept request header.acceptEncoding - A String with the Accept-Encoding request header.ResponseEntity<String> with the requested PyWayback CDX
records.CdxApi.getCdxPywb(java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)Copyright © 2000–2021 LOCKSS Program. All rights reserved.