Package com.commafeed.backend.feed

Examples of com.commafeed.backend.feed.FetchedFeed


  private FeedInfo fetchFeedInternal(String url) {
    FeedInfo info = null;
    url = StringUtils.trimToEmpty(url);
    url = prependHttp(url);
    try {
      FetchedFeed feed = feedFetcher.fetch(url, true, null, null, null, null);
      info = new FeedInfo();
      info.setUrl(feed.getUrlAfterRedirect());
      info.setTitle(feed.getTitle());

    } catch (Exception e) {
      log.debug(e.getMessage(), e);
      throw new WebApplicationException(e, Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build());
    }
View Full Code Here


      if (ArrayUtils.isEmpty(bytes)) {
        return Response.status(Status.BAD_REQUEST).entity("empty body received").build();
      }

      FetchedFeed fetchedFeed = parser.parse(null, bytes);
      String topic = fetchedFeed.getFeed().getPushTopic();
      if (StringUtils.isBlank(topic)) {
        return Response.status(Status.BAD_REQUEST).entity("empty topic received").build();
      }

      log.debug("content callback received for {}", topic);
View Full Code Here

TOP

Related Classes of com.commafeed.backend.feed.FetchedFeed

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.