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 Modifier and Type Class Description static interfaceAtomFeedEndpoint.UrlResolver
-
Constructor Summary
Constructors Constructor Description AtomFeedEndpoint(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<AtomFeedPage<PAYLOAD>>getFirstPage()Optional<AtomFeedPage<PAYLOAD>>getFirstPage(AtomFeedLocation boundary)Optional<AtomFeedPage<PAYLOAD>>getLastPage()Optional<AtomFeedPage<PAYLOAD>>getLastPage(AtomFeedLocation boundary)Optional<AtomFeedPage<PAYLOAD>>getPage(AtomFeedLocation location)Optional<AtomFeedPage<PAYLOAD>>getPage(AtomFeedLocation location, AtomFeedLocation boundary)-
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
getLastLocation
-
-
-
-
Constructor Detail
-
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 Detail
-
getFirstPage
public Optional<AtomFeedPage<PAYLOAD>> getFirstPage()
- Specified by:
getFirstPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>,AtomFeedPage<PAYLOAD>>
-
getFirstPage
public Optional<AtomFeedPage<PAYLOAD>> getFirstPage(AtomFeedLocation boundary)
- Specified by:
getFirstPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>,AtomFeedPage<PAYLOAD>>
-
getLastPage
public Optional<AtomFeedPage<PAYLOAD>> getLastPage()
- Specified by:
getLastPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>,AtomFeedPage<PAYLOAD>>
-
getLastPage
public Optional<AtomFeedPage<PAYLOAD>> getLastPage(AtomFeedLocation boundary)
- Specified by:
getLastPagein interfaceFeedEndpoint<AtomFeedLocation,AtomFeedEntry<PAYLOAD>,AtomFeedPage<PAYLOAD>>
-
getPage
public Optional<AtomFeedPage<PAYLOAD>> getPage(AtomFeedLocation location)
- 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>>
-
-