Package org.megatome.frame2.errors

Examples of org.megatome.frame2.errors.Errors


              event.setResponse(listIndex, marshalledResult);
            } else if (fwd.isResponderType()) {
              // create responder
              String type = fwd.getPath();
              Responder responder = (Responder) Class.forName(
                  type).newInstance();
              Object response = responder
                  .respond(getContextWrapper());

              if (response instanceof org.w3c.dom.Element) {
                event
                    .setResponse(listIndex,
View Full Code Here


              event.setResolve(ResolveType.CHILDREN);
              event.setEvents(eventList);
              events.add(event);
            } else if (eventProxy.isPassThru()) {
              PassthruEvent psevent = (PassthruEvent) eventProxy
                  .getEvent();

              psevent.setPassthruData(element);
              eventList.add(psevent);
              event.setResolve(ResolveType.PASSTHRU);
              event.setEvents(eventList);
              events.add(event);
            }
View Full Code Here

    EventConfigReader reader = getReader("org/megatome/frame2/front/config/globalForward-Single-config.xml"); //$NON-NLS-1$

    Map<String, Forward> forwards = reader.getGlobalHTMLForwards();
    assertTrue(forwards.size() == 1);
    Forward forward = forwards.get(name);
    ForwardProxy proxy = new ForwardProxy(forward);
    assertTrue(proxy.isEventType());
    assertEquals(forward.getName(), name);
    assertEquals(forward.getType(), ForwardType.EVENT);
    assertEquals(forward.getPath(), path);

  }
View Full Code Here

        this.request = new Frame2HttpServletRequestSimulator(this.config
                .getServletContext());
        this.response = new HttpServletResponseSimulator();
        this.context = (MockFrame2ServletContextSimulator)this.config
                .getServletContext();
        this.listener = new Frame2ContextListener();
        this.isInitialized = true;

        sendContextInitializedEvent(null, null);

        this.servlet.init(this.config);
View Full Code Here

     * object to use in this test.
     */
    @Before
  public void setUp() throws Exception {
        if (this.servlet == null) {
            this.servlet = new HttpFrontController();
        }
        LoggerFactory.setType("org.megatome.frame2.log.impl.StandardLogger", //$NON-NLS-1$
                getClass().getClassLoader());
        this.config = new MockFrame2ServletConfigSimulator();
        //request = new
View Full Code Here

      DocumentBuilder db = dbf.newDocumentBuilder();

      result = db.newDocument();
    } catch (Exception e) {
      throw new TranslationException("Unable to create target document", //$NON-NLS-1$
          e);
    }

    return result;
  }
View Full Code Here

      DocumentBuilder db = dbf.newDocumentBuilder();

      result = db.newDocument();
    } catch (Exception e) {
      throw new TranslationException("Unable to create target document", //$NON-NLS-1$
          e);
    }

    return result;
  }
View Full Code Here

      DocumentBuilder db = dbf.newDocumentBuilder();

      result = db.newDocument();
    } catch (Exception e) {
      throw new TranslationException("Unable to create target document", //$NON-NLS-1$
          e);
    }

    return result;
  }
View Full Code Here

   *            The path of the configuration file to load from.
   * @throws ConfigException
   *             If loading the configuration fails.
   */
  public Configuration(String path) throws ConfigException {
    this.reader = new EventConfigReader(path);
    this.path = path;
    processConfig();
  }
View Full Code Here

   *            The InputStream of the configuration file.
   * @throws Exception
   *             If loading the configuration fails.
   */
  public Configuration(InputStream is) throws ConfigException {
    this.reader = new EventConfigReader(is);
    processConfig();
  }
View Full Code Here

TOP

Related Classes of org.megatome.frame2.errors.Errors

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.