Package org.chiba.xml.events

Examples of org.chiba.xml.events.XMLEvent


            adapter = setupAdapter(adapter, xFormsSession.getKey(), formURI);
            setContextParams(request, adapter);
            storeCookies(request, adapter);
            storeAcceptLanguage(request, adapter);
            adapter.init();
            XMLEvent exitEvent = adapter.checkForExitEvent();

            if (exitEvent != null) {
                handleExit(exitEvent, xFormsSession, session,  request, response);
            } else {
                //todo: review: the following may be substituted with the ViewServlet
View Full Code Here


            }
            ChibaEvent chibaEvent = new DefaultChibaEventImpl();
            chibaEvent.initEvent("http-request", null, request);
            webAdapter.dispatch(chibaEvent);

            XMLEvent exitEvent = webAdapter.checkForExitEvent();

            if (exitEvent != null) {
                handleExit(exitEvent, xFormsSession, session, request,response);
            } else {
                response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + "/view?sessionKey=" + xFormsSession.getKey() + "&referer=" + referer));
View Full Code Here

    public void handleEvent(Event event) {
        super.handleEvent(event);

        try {
            if (event instanceof XMLEvent) {
                XMLEvent xmlEvent = (XMLEvent) event;
                String type = xmlEvent.getType();
                if (ChibaEventNames.REPLACE_ALL.equals(type)) {
                    // get event context and store it in session
                    Map submissionResponse = new HashMap();
                    submissionResponse.put("header", xmlEvent.getContextInfo("header"));
                    submissionResponse.put("body", xmlEvent.getContextInfo("body"));
                    this.xformsSession.setProperty(ChibaServlet.CHIBA_SUBMISSION_RESPONSE, submissionResponse);

                    this.exitEvent = xmlEvent;
                    shutdown();
                } else if (ChibaEventNames.LOAD_URI.equals(type)) {
                    // get event properties
                    String show = (String) xmlEvent.getContextInfo("show");

                    if ("replace".equals(show)) {
                        this.exitEvent = xmlEvent;
                        shutdown();
                    }
View Full Code Here

     */
    public void handleEvent(Event event) {
        super.handleEvent(event);
        try {
            if (event instanceof XMLEvent) {
                XMLEvent xmlEvent = (XMLEvent) event;
                String type = xmlEvent.getType();
                if (ChibaEventNames.REPLACE_ALL.equals(type)) {
                    // get event context and store it in session
                    Map submissionResponse = new HashMap();
                    submissionResponse.put("header", xmlEvent.getContextInfo("header"));
                    submissionResponse.put("body", xmlEvent.getContextInfo("body"));
                    this.xformsSession.setProperty(ChibaServlet.CHIBA_SUBMISSION_RESPONSE,submissionResponse);

                    // get event properties
                    Element target = (Element) event.getTarget();
                    String targetId = target.getAttributeNS(null, "id");
                    String targetName = target.getLocalName();

                    // add event properties to log
                    this.eventLog.add(type, targetId, targetName);

                    this.exitEvent = xmlEvent;
                    shutdown();
                    return;
                } else if (ChibaEventNames.LOAD_URI.equals(type)) {
                    // get event properties
                    String show = (String) xmlEvent.getContextInfo("show");

                    // add event to log
                    this.eventLog.add(xmlEvent);
                    if ("replace".equals(show)) {
                        this.exitEvent = xmlEvent;
View Full Code Here

TOP

Related Classes of org.chiba.xml.events.XMLEvent

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.