Examples of toXML()


Examples of org.apache.muse.ws.dm.muws.StateType.toXML()

       
        StateType previous = getPreviousState();
       
        if (previous != null)
        {
            Element previousXML = previous.toXML(doc);
            XmlUtils.setElement(root, MuwsConstants.PREVIOUS_QNAME, previousXML, true);
        }
       
        StateType entered = getEnteredState();
        Element enteredXML = entered.toXML(doc);
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.events.Component.toXML()

        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)
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.events.ComponentAddress.toXML()

       
        ComponentAddress address = getAddress();
       
        if (address != null)
        {
            Element addressXML = address.toXML(factory);
            componentXML.appendChild(addressXML);
        }
       
        String resourceID = getResourceID();
       
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.events.ManagementEvent.toXML()

        Situation situation = factory.createSituation();
        situation.setCategoryType(situationCategory);
        event.setSituation(situation);

        NotificationProducer wsn = (NotificationProducer)advertiser.getCapability(WsnConstants.PRODUCER_URI);
        wsn.publish(topicName, event.toXML());
    }
   
    protected void subscribeInitialConsumer()
        throws SoapFault
    {
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.events.Situation.toXML()

        Situation situation = getSituation();

        if (situation != null)
        {
            Element situationXML = situation.toXML(doc);
            wef.appendChild(situationXML);
        }

        appendExtendedElements(wef);
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.impl.QueryRelationships.toXML()

    public WsResourceClient[] queryRelationshipsByType(QName[] types)
        throws SoapFault
    {
        QueryRelationships query = new QueryRelationships(types);
       
        Element responseXML = invoke(MuwsConstants.QUERY_RELATIONSHIPS_URI, query.toXML());
        QueryRelationshipsResponse response = new QueryRelationshipsResponse(responseXML);
       
        return response.getRelationshipClients();
    }
}
View Full Code Here

Examples of org.apache.muse.ws.metadata.impl.GetMetadataRequest.toXML()

    public Element[] getMetadata(String dialect)
        throws SoapFault
    {
        GetMetadataRequest get = new GetMetadataRequest(dialect);
       
        Element response = invoke(WsxConstants.GET_METADATA_URI, get.toXML());
       
        //
        // each child element is a MetadataSection - we want to dig down
        // one level deeper and get the actual content for the user
        //
View Full Code Here

Examples of org.apache.muse.ws.notification.Filter.toXML()

        Iterator i = getFilters().iterator();
       
        while (i.hasNext())
        {
            Filter next = (Filter)i.next();
            Element nextXML = next.toXML(doc);
           
            //
            // we have to 'move' instead of 'appendChild' because the other
            // Filter types already add a <Filter/> element as part of their
            // toXML() implementations, and we can't change this for reasons
View Full Code Here

Examples of org.apache.muse.ws.notification.SubscriptionManager.toXML()

    {
        //
        // write subscription ws-rp doc to file
        //
        SubscriptionManager sub = (SubscriptionManager)resource.getCapability(WsnConstants.SUBSCRIPTION_MGR_URI);
        Element subXML = sub.toXML();
       
        try
        {
            XmlUtils.toFile(subXML, resourceFile);
        }
View Full Code Here

Examples of org.apache.muse.ws.notification.impl.GetCurrentMessage.toXML()

    public NotificationMessage getCurrentMessage(QName topicPath)
        throws SoapFault
    {
        GetCurrentMessage get = new GetCurrentMessage(topicPath);
       
        Element responseXML = invoke(WsnConstants.GET_CURRENT_URI, get.toXML());
       
        GetCurrentMessageResponse response = new GetCurrentMessageResponse(responseXML);
        return response.getMessage();
    }
   
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.