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 ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final URL(package private) final FeedHttpClient(package private) final boolean(package private) final int(package private) final AtomOffsetFeedEndpoint.UrlResolver -
Constructor Summary
ConstructorsConstructorDescriptionAtomOffsetFeedEndpoint(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, boolean inclusiveForward) -
Method Summary
Modifier and TypeMethodDescription(package private) Optional<AtomOffsetFeedPage<PAYLOAD>>getPage(FeedHttpClient.Request request, AtomOffsetFeedLocation.Direction direction, boolean notFoundOnEmpty) getPage(AtomOffsetFeedLocation location) 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
getFirstPage, getFirstPage, getLastLocation, getLastPage, getLastPage, getPage
-
Field Details
-
endpoint
-
httpClient
-
notFoundOnEmpty
final boolean notFoundOnEmpty -
size
final int size -
urlResolver
-
-
Constructor Details
-
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, boolean inclusiveForward)
-
-
Method Details
-
getPage
- Specified by:
getPagein interfaceFeedEndpoint<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>, AtomOffsetFeedPage<PAYLOAD>>
-
getPage
Optional<AtomOffsetFeedPage<PAYLOAD>> getPage(FeedHttpClient.Request request, AtomOffsetFeedLocation.Direction direction, boolean notFoundOnEmpty)
-