Class AtomOffsetFeedEndpoint<PAYLOAD>
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.feed.client.atom.offset.AtomOffsetFeedEndpoint<PAYLOAD>
-
- All Implemented Interfaces:
FeedEndpoint<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>,AtomOffsetFeedPage<PAYLOAD>>
- Direct Known Subclasses:
AtomOffsetFeedEndpoint.WithLinkedUpperOffset,AtomOffsetFeedEndpoint.WithNamedUpperOffset
public abstract class AtomOffsetFeedEndpoint<PAYLOAD> extends Object implements FeedEndpoint<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>,AtomOffsetFeedPage<PAYLOAD>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAtomOffsetFeedEndpoint.UrlResolverstatic classAtomOffsetFeedEndpoint.WithLinkedUpperOffset<PAYLOAD>static classAtomOffsetFeedEndpoint.WithNamedUpperOffset<PAYLOAD>
-
Field Summary
Fields Modifier and Type Field Description (package private) URLendpoint(package private) FeedHttpClienthttpClient(package private) booleannotFoundOnEmpty(package private) intsize(package private) AtomOffsetFeedEndpoint.UrlResolverurlResolver
-
Constructor Summary
Constructors Constructor Description AtomOffsetFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, int size, ToLongFunction<String> offsetResolver, BiFunction<com.rometools.rome.feed.synd.SyndFeed,com.rometools.rome.feed.synd.SyndEntry,PAYLOAD> payloadResolver, AtomOffsetFeedEndpoint.UrlResolver urlResolver, boolean alwaysReversed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Optional<AtomOffsetFeedPage<PAYLOAD>>getPage(URL url, AtomOffsetFeedLocation.Direction direction, boolean notFoundOnEmpty)Optional<AtomOffsetFeedPage<PAYLOAD>>getPage(AtomOffsetFeedLocation 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, getFirstPage, getLastLocation, getLastPage, getLastPage, getPage
-
-
-
-
Field Detail
-
endpoint
final URL endpoint
-
httpClient
final FeedHttpClient httpClient
-
notFoundOnEmpty
final boolean notFoundOnEmpty
-
size
final int size
-
urlResolver
final AtomOffsetFeedEndpoint.UrlResolver urlResolver
-
-
Constructor Detail
-
AtomOffsetFeedEndpoint
AtomOffsetFeedEndpoint(URL endpoint, FeedHttpClient httpClient, boolean notFoundOnEmpty, int size, ToLongFunction<String> offsetResolver, BiFunction<com.rometools.rome.feed.synd.SyndFeed,com.rometools.rome.feed.synd.SyndEntry,PAYLOAD> payloadResolver, AtomOffsetFeedEndpoint.UrlResolver urlResolver, boolean alwaysReversed)
-
-
Method Detail
-
getPage
public Optional<AtomOffsetFeedPage<PAYLOAD>> getPage(AtomOffsetFeedLocation location)
- Specified by:
getPagein interfaceFeedEndpoint<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>,AtomOffsetFeedPage<PAYLOAD>>
-
getPage
Optional<AtomOffsetFeedPage<PAYLOAD>> getPage(URL url, AtomOffsetFeedLocation.Direction direction, boolean notFoundOnEmpty)
-
-