Class AtomHopperFeedEndpoint<PAYLOAD>
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.feed.client.atom.hopper.AtomHopperFeedEndpoint<PAYLOAD>
-
- All Implemented Interfaces:
FeedEndpoint<AtomHopperFeedLocation,AtomHopperFeedEntry<PAYLOAD>,AtomHopperFeedPage<PAYLOAD>>
public class AtomHopperFeedEndpoint<PAYLOAD> extends Object implements FeedEndpoint<AtomHopperFeedLocation,AtomHopperFeedEntry<PAYLOAD>,AtomHopperFeedPage<PAYLOAD>>
-
-
Constructor Summary
Constructors Constructor Description AtomHopperFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, int size, BiFunction<com.rometools.rome.feed.synd.SyndFeed,com.rometools.rome.feed.synd.SyndEntry,PAYLOAD> payloadResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<AtomHopperFeedPage<PAYLOAD>>getFirstPage()Optional<AtomHopperFeedPage<PAYLOAD>>getLastPage()Optional<AtomHopperFeedPage<PAYLOAD>>getPage(AtomHopperFeedLocation location)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedEndpoint
getFirstPage, getLastLocation, getLastPage, getPage
-
-
-
-
Constructor Detail
-
AtomHopperFeedEndpoint
public AtomHopperFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, int size, BiFunction<com.rometools.rome.feed.synd.SyndFeed,com.rometools.rome.feed.synd.SyndEntry,PAYLOAD> payloadResolver)
-
-
Method Detail
-
getFirstPage
public Optional<AtomHopperFeedPage<PAYLOAD>> getFirstPage()
- Specified by:
getFirstPagein interfaceFeedEndpoint<AtomHopperFeedLocation,AtomHopperFeedEntry<PAYLOAD>,AtomHopperFeedPage<PAYLOAD>>
-
getLastPage
public Optional<AtomHopperFeedPage<PAYLOAD>> getLastPage()
- Specified by:
getLastPagein interfaceFeedEndpoint<AtomHopperFeedLocation,AtomHopperFeedEntry<PAYLOAD>,AtomHopperFeedPage<PAYLOAD>>
-
getPage
public Optional<AtomHopperFeedPage<PAYLOAD>> getPage(AtomHopperFeedLocation location)
- Specified by:
getPagein interfaceFeedEndpoint<AtomHopperFeedLocation,AtomHopperFeedEntry<PAYLOAD>,AtomHopperFeedPage<PAYLOAD>>
-
-