Package org.httpfeeds.server
Class HttpFeedController
- java.lang.Object
-
- org.httpfeeds.server.HttpFeedController
-
@RestController @RequestMapping("${httpfeed.server.path}") public class HttpFeedController extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpFeedController(FeedFetcher feedFetcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CloudEvent>getFeedItems(String lastEventId, Long timeoutMillis)
-
-
-
Constructor Detail
-
HttpFeedController
public HttpFeedController(FeedFetcher feedFetcher)
-
-
Method Detail
-
getFeedItems
@GetMapping(produces={"application/cloudevents-batch+json","application/json"}) public List<CloudEvent> getFeedItems(@RequestParam(name="lastEventId",required=false) String lastEventId, @RequestParam(name="timeout",required=false) Long timeoutMillis)
-
-