Examples of ChannelModel


Examples of com.tubeonfire.model.ChannelModel

      .getName());

  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {
    try {
      ChannelModel model = new ChannelModel();
      model.prepareList();
      req.setAttribute("model", model);
      req.setAttribute("url", req.getRequestURL().toString());
      req.getRequestDispatcher("/list_channel.jsp").forward(req, resp);
    } catch (Exception e) {
      log.warning(e.toString());
View Full Code Here

Examples of com.tubeonfire.model.admin.ChannelModel

      .getName());

  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException, ServletException {
    try {
      ChannelModel channelModel = new ChannelModel();
      channelModel.prepareList();
      req.setAttribute("url", req.getRequestURL().toString());
      req.setAttribute("result", channelModel);
      req.getRequestDispatcher("/admin/list_channel.jsp").forward(req,
          resp);
    } catch (Exception e) {
View Full Code Here

Examples of org.switchyard.component.common.knowledge.config.model.ChannelModel

        Assert.assertEquals("outputVar", outputModel.getFrom());
        Assert.assertEquals("message.content", outputModel.getTo());
        FaultModel faultModel = operation.getFaults().getFaults().get(0);
        Assert.assertEquals("faultVar", faultModel.getFrom());
        Assert.assertEquals("message.content", faultModel.getTo());
        ChannelModel channel = rules.getChannels().getChannels().get(0);
        Assert.assertEquals(TestChannel.class, channel.getClazz(loader));
        Assert.assertEquals("theName", channel.getName());
        Assert.assertEquals("theOperation", channel.getOperation());
        Assert.assertEquals("theReference", channel.getReference());
        ListenerModel listener = rules.getListeners().getListeners().get(0);
        Assert.assertEquals(DebugRuleRuntimeEventListener.class, listener.getClazz(loader));
        LoggerModel logger = rules.getLoggers().getLoggers().get(0);
        Assert.assertEquals(Integer.valueOf(2000), logger.getInterval());
        Assert.assertEquals("theLog", logger.getLog());
View Full Code Here

Examples of org.switchyard.component.common.knowledge.config.model.ChannelModel

     * @param desc the descriptor
     */
    public V1ChannelsModel(Configuration config, Descriptor desc) {
        super(config, desc);
        for (Configuration channel_config : config.getChildren(CHANNEL)) {
            ChannelModel channel = (ChannelModel)readModel(channel_config);
            if (channel != null) {
                _channels.add(channel);
            }
        }
        setModelChildrenOrder(CHANNEL);
View Full Code Here

Examples of org.switchyard.component.common.knowledge.config.model.ChannelModel

        Assert.assertEquals("outputVar", outputModel.getFrom());
        Assert.assertEquals("message.content", outputModel.getTo());
        FaultModel faultModel = operation.getFaults().getFaults().get(0);
        Assert.assertEquals("faultVar", faultModel.getFrom());
        Assert.assertEquals("message.content", faultModel.getTo());
        ChannelModel channel = bpm.getChannels().getChannels().get(0);
        Assert.assertEquals(TestChannel.class, channel.getClazz(loader));
        Assert.assertEquals("theName", channel.getName());
        Assert.assertEquals("theOperation", channel.getOperation());
        Assert.assertEquals("theReference", channel.getReference());
        ListenerModel listener = bpm.getListeners().getListeners().get(0);
        Assert.assertEquals(DebugProcessEventListener.class, listener.getClazz(loader));
        LoggerModel logger = bpm.getLoggers().getLoggers().get(0);
        Assert.assertEquals(Integer.valueOf(2000), logger.getInterval());
        Assert.assertEquals("theLog", logger.getLog());
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.