Class AtomFeedEndpoint<PAYLOAD>
java.lang.Object
no.skatteetaten.fastsetting.formueinntekt.felles.feed.client.atom.AtomFeedEndpoint<PAYLOAD>
- All Implemented Interfaces:
FeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>, AtomFeedPage<PAYLOAD>>
public class AtomFeedEndpoint<PAYLOAD>
extends Object
implements FeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>,AtomFeedPage<PAYLOAD>>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAtomFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, BiFunction<com.rometools.rome.feed.synd.SyndFeed, com.rometools.rome.feed.synd.SyndEntry, PAYLOAD> payloadResolver) AtomFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, BiFunction<com.rometools.rome.feed.synd.SyndFeed, com.rometools.rome.feed.synd.SyndEntry, PAYLOAD> payloadResolver, AtomFeedEndpoint.UrlResolver urlResolver, Function<String, String> linkResolver, String previous, String next) -
Method Summary
Modifier and TypeMethodDescriptiongetFirstPage(AtomFeedLocation boundary) getLastPage(AtomFeedLocation boundary) getPage(AtomFeedLocation location) getPage(AtomFeedLocation location, AtomFeedLocation boundary) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedEndpoint
getLastLocation
-
Constructor Details
-
AtomFeedEndpoint
public AtomFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, BiFunction<com.rometools.rome.feed.synd.SyndFeed, com.rometools.rome.feed.synd.SyndEntry, PAYLOAD> payloadResolver) -
AtomFeedEndpoint
public AtomFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, BiFunction<com.rometools.rome.feed.synd.SyndFeed, com.rometools.rome.feed.synd.SyndEntry, PAYLOAD> payloadResolver, AtomFeedEndpoint.UrlResolver urlResolver, Function<String, String> linkResolver, String previous, String next)
-
-
Method Details
-
getFirstPage
- Specified by:
getFirstPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>, AtomFeedPage<PAYLOAD>>
-
getFirstPage
- Specified by:
getFirstPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>, AtomFeedPage<PAYLOAD>>
-
getLastPage
- Specified by:
getLastPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>, AtomFeedPage<PAYLOAD>>
-
getLastPage
- Specified by:
getLastPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>, AtomFeedPage<PAYLOAD>>
-
getPage
- Specified by:
getPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>, AtomFeedPage<PAYLOAD>>
-
getPage
public Optional<AtomFeedPage<PAYLOAD>> getPage(AtomFeedLocation location, AtomFeedLocation boundary) - Specified by:
getPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>, AtomFeedPage<PAYLOAD>>
-