Package org.apache.muse.ws.dm.muws.events

Examples of org.apache.muse.ws.dm.muws.events.Component


            setEventID(XmlUtils.extractText(idXML));
            alreadySeen.add(idXML);
        }
       
        Element reporterXML = XmlUtils.getElement(xml, WefConstants.REPORTER_COMP_QNAME);
        Component reporter = factory.createComponent(reporterXML);
        setReporter(reporter);
        alreadySeen.add(reporterXML);
       
        Element sourceXML = XmlUtils.getElement(xml, WefConstants.SOURCE_COMP_QNAME);
        Component source = factory.createComponent(sourceXML);
        setSource(source);
        alreadySeen.add(sourceXML);
       
        Element situationXML = XmlUtils.getElement(xml, WefConstants.SITUATION_QNAME);
       
View Full Code Here


        if (eventID == null)
            throw new RuntimeException(_MESSAGES.get("NoEventID"));

        XmlUtils.setElement(wef, WefConstants.EVENT_ID_QNAME, eventID);
       
        Component source = getSource();

        if (source == null)
            throw new RuntimeException(_MESSAGES.get("NoSourceComponent"));

        Element sourceXML = source.toXML(doc);
        wef.appendChild(sourceXML);

        Component reporter = getReporter();

        if (reporter!= null)
        {
            Element reporterXML = reporter.toXML(doc);
            wef.appendChild(reporterXML);
        }

        Situation situation = getSituation();
View Full Code Here

        WefFactory factory = createWefFactory();
        ManagementEvent event = factory.createEvent();
       
        event.addExtendedElement(payload);

        Component source = factory.createComponent();
        source.setName(WefConstants.SOURCE_COMP_QNAME);
       
        ComponentAddress address = factory.createComponentAddress(sourceEPR);
        source.setAddress(address);
       
        event.setSource(source);
       
        Component reporter = factory.createComponent();
        reporter.setName(WefConstants.REPORTER_COMP_QNAME);
       
        address = factory.createComponentAddress(advertiser.getEndpointReference());
        reporter.setAddress(address);
       
        event.setReporter(reporter);
       
        Situation situation = factory.createSituation();
        situation.setCategoryType(situationCategory);
View Full Code Here

        WefFactory factory = createWefFactory();
        ManagementEvent event = factory.createEvent();
       
        event.addExtendedElement(payload);

        Component source = factory.createComponent();
        source.setName(WefConstants.SOURCE_COMP_QNAME);
       
        ComponentAddress address = factory.createComponentAddress(sourceEPR);
        source.setAddress(address);
       
        event.setSource(source);
       
        Component reporter = factory.createComponent();
        reporter.setName(WefConstants.REPORTER_COMP_QNAME);
       
        address = factory.createComponentAddress(advertiser.getEndpointReference());
        reporter.setAddress(address);
       
        event.setReporter(reporter);
       
        Situation situation = factory.createSituation();
        situation.setCategoryType(situationCategory);
View Full Code Here

       
        Element reporterXML = XmlUtils.getElement(xml, WefConstants.REPORTER_COMP_QNAME);
       
        if (reporterXML != null)
        {
            Component reporter = factory.createComponent(reporterXML);
            setReporter(reporter);
            alreadySeen.add(reporterXML);
        }
       
        Element sourceXML = XmlUtils.getElement(xml, WefConstants.SOURCE_COMP_QNAME);
       
        if (sourceXML == null)
            throw new RuntimeException(_MESSAGES.get("NoSourceComponent"));
       
        Component source = factory.createComponent(sourceXML);
        setSource(source);
        alreadySeen.add(sourceXML);
       
        Element situationXML = XmlUtils.getElement(xml, WefConstants.SITUATION_QNAME);
       
View Full Code Here

        if (eventID == null)
            throw new RuntimeException(_MESSAGES.get("NoEventID"));

        XmlUtils.setElement(wef, WefConstants.EVENT_ID_QNAME, eventID);
       
        Component source = getSource();

        if (source == null)
            throw new RuntimeException(_MESSAGES.get("NoSourceComponent"));

        Element sourceXML = source.toXML(doc);
        wef.appendChild(sourceXML);

        Component reporter = getReporter();

        if (reporter!= null)
        {
            Element reporterXML = reporter.toXML(doc);
            wef.appendChild(reporterXML);
        }

        Situation situation = getSituation();
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.dm.muws.events.Component

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.