Examples of Channel


Examples of com.rometools.rome.feed.rss.Channel

                        if (logger.isDebugEnabled()) logger.debug("Nothing new in the feed... Relaxing...");
                    }

                    // #8 : Use the ttl rss field to auto adjust feed refresh rate
                    if (!ignoreTtl && feed.originalWireFeed() != null && feed.originalWireFeed() instanceof Channel) {
                        Channel channel = (Channel) feed.originalWireFeed();
                        if (channel.getTtl() > 0) {
                            int minutes = channel.getTtl();
                            if (minutes != updateRate.minutes()) {
                                updateRate = TimeValue.timeValueMinutes(minutes);
                                if (logger.isInfoEnabled())
                                    logger.info("Auto adjusting update rate with provided ttl: {}", updateRate);
                            }
View Full Code Here

Examples of com.rsslibj.elements.Channel

public class RssView implements View {

  @SuppressWarnings("unchecked")
  public void render(HttpServletRequest req, HttpServletResponse resp,
      Object obj) throws Throwable {
    Channel channel = new Channel();
    channel.setCopyright("Ngqa copy right");
        channel.setLink(req.getRequestURL().toString());
        channel.setTitle("Ngqa questions");
       
        if (obj instanceof Pager) {
          Pager<Question> pager = (Pager<Question>) obj;
          for (Question question : pager.getData()) {
        channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
      }
        } else if (obj instanceof Question) {
          Question question = (Question) obj;
          channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
        }
        resp.getWriter().write(channel.getFeed("rss"));
  }
View Full Code Here

Examples of com.salas.bb.utils.parser.Channel

    /**
     * Tests updating the feed data from parsed channel object.
     */
    public void testUpdateFeed()
    {
        Channel channel = new Channel();

        // The parsed channel has information about format and language,
        // the feed we have -- has not. The information should be moved.
        channel.setFormat("A");
        channel.setLanguage("B");

        feed.updateFeed(channel);
        assertEquals("Wrong format.", "A", feed.getFormat());
        assertEquals("Wrong language.", "B", feed.getLanguage());

        // The parsed channel has no information about format and language,
        // the feed we already have -- has. There should be no updates.
        channel.setFormat(null);
        channel.setLanguage(null);

        feed.updateFeed(channel);
        assertEquals("Wrong format.", "A", feed.getFormat());
        assertEquals("Wrong language.", "B", feed.getLanguage());
    }
View Full Code Here

Examples of com.stuffwithstuff.magpie.interpreter.Channel

  }
 
  @Def("(== Channel) new()")
  public static class NewChannel implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      Channel channel = new Channel();
      return context.instantiate(sChannelClass, channel);
    }
View Full Code Here

Examples of com.sun.sgs.app.Channel

       
        // We were passed a reference to the first channel.
        channel1.get().join(session);
       
        // We look up the second channel by name.
        Channel channel2 = channelMgr.getChannel(HelloChannels.CHANNEL_2_NAME);
        channel2.join(session);
    }
View Full Code Here

Examples of com.sun.syndication.feed.rss.Channel

              System.out.println("[ERROR] Error obtaining geodata url: ["
                  + georssUrlStr + "]: Message: "+e.getMessage()+": skipping and continuing");
              continue;
            }

            Channel c = (Channel) feed;
            List<Item> items = (List<Item>) c.getItems();
            for (Item item : items) {
              GeoRSSModule geoRSSModule = (GeoRSSModule) item
                  .getModule(GeoRSSModule.GEORSS_GEORSS_URI);
              if (geoRSSModule == null)
                geoRSSModule = (GeoRSSModule) item
View Full Code Here

Examples of com.supinfo.analytics.entities.Channel

        SalesExport export = service.getSalesExportPort();
        List<com.supinfo.analytics.soap.Sale> soapSales = export.getFranceSales();
       
        for(com.supinfo.analytics.soap.Sale s : soapSales)
        {
            Channel c = new Channel();
            c.setDescription(s.getChannel().getChannelDesc());
            c.setId(s.getChannel().getChannelId());

            Product p = new Product();
            p.setName(s.getProduct().getProdName());
            p.setId(s.getProduct().getProdId());
View Full Code Here

Examples of com.tcs.hrr.domain.Channel

  }

  public Channel findById(java.lang.Integer id) {
    log.debug("getting Channel instance with id: " + id);
    try {
      Channel instance = (Channel) getHibernateTemplate().get(
          "com.tcs.hrr.domain.Channel", id);
      return instance;
    } catch (RuntimeException re) {
      log.error("get failed", re);
      throw re;
View Full Code Here

Examples of com.tubeonfire.entity.Channel

    tube.setTags(TagHelper.youTag(tube.getTitle() + " "
        + tube.getDescription()));
    tube.setOtherTags(TagHelper.getOtherTag(tube.getTags()));
    tube.setBumpPoint(Calendar.getInstance().getTimeInMillis() / 1000);
    if (ChannelModel.getById(tube.getChannelId()) == null) {
      Channel channel = new Channel();
      channel.setId(tube.getChannelId());
      channel.setTitle(tube.getChannelName());
      channel.setDescription(tube.getChannelName());
      channel.setDoc(Calendar.getInstance().getTime());
      channel.setUpdated(Calendar.getInstance().getTime());
      channel.setBumpPoint(Calendar.getInstance().getTimeInMillis() / 1000);
      channel.setStatus(1);
      ChannelModel.insert(channel);
    }
    return tube;
  }
View Full Code Here

Examples of com.uwyn.drone.core.Channel

      }
     
      // obtain the requested channel
      String channel_name = seen_matcher.group(1).toLowerCase();
      String message = seen_matcher.group(2);
      Channel  channel = bot.getServer().getChannel(channel_name);
      if (null == channel)
      {
        return;
      }
     
      // send the CTCP action message to the channel
      channel.send(Ctcp.escapeAction(message));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.