Package org.apache.muse.ws.resource.sg

Examples of org.apache.muse.ws.resource.sg.Entry


        }
    }
   
    public void resourceAdded(EndpointReference epr, Resource resource) throws SoapFault
    {
        Entry entry = (Entry)resource.getCapability(WssgConstants.ENTRY_URI);
       
        //
        // resource is not a service group entry
        //
        if (entry == null)
            return;
       
        //
        // if the resource the service group that owns the entry, send a message
        //
        if (isAdvertised(entry.getServiceGroupEPR()))
        {
            Element payload = XmlUtils.createElement(MuwsConstants.MANAGEABILITY_EPR_QNAME, epr.toXML());
            sendMessage(epr, MuwsConstants.ADV_ME_CREATION_TOPIC, WefConstants.CREATE_SITUATION_QNAME, payload);
        }
    }
View Full Code Here


        throws SoapFault
    {
        //
        // write the service group entry XML infoset to file
        //
        Entry entry = (Entry)resource.getCapability(WssgConstants.ENTRY_URI);
        Element entryXML = entry.toXML();
       
        try
        {
            XmlUtils.toFile(entryXML, resourceFile);
        }
View Full Code Here

        //
        // find the entry resource, use the Entry capability to set the
        // member EPR and service group property values
        //
        WsResource entryResource = (WsResource)getResourceManager().getResource(entryEPR);       
        Entry entryCap = (Entry)entryResource.getCapability(WssgConstants.ENTRY_URI);
       
        WsResource sgResource = getServiceGroup();
       
        entryCap.setServiceGroup(sgResource);
        entryCap.setMemberEPR(memberEPR);
       
        ServiceGroup sgCap = (ServiceGroup)sgResource.getCapability(WssgConstants.SERVICE_GROUP_URI);
        sgCap.addEntry(memberEPR, entryResource);
       
        return entryResource;
View Full Code Here

       
        //
        // set the sg entry fields before initializing the entry resource
        //
       
        Entry entry = (Entry)resource.getCapability(WssgConstants.ENTRY_URI);
       
        entry.setServiceGroup(sg);
        entry.setMemberEPR(epr);
       
        try
        {
            resource.initialize();
            manager.addResource(resource.getEndpointReference(), resource);
View Full Code Here

        WsResource[] entries = getEntry();
        Element[] entryXML = new Element[entries.length];
       
        for (int n = 0; n < entries.length; ++n)
        {
            Entry entryCap = (Entry)entries[n].getCapability(WssgConstants.ENTRY_URI);
            entryXML[n] = entryCap.toXML();
        }
       
        return entryXML;
    }
View Full Code Here

       
        //
        // set the sg entry fields before initializing the entry resource
        //
       
        Entry entry = (Entry)resource.getCapability(WssgConstants.ENTRY_URI);
       
        entry.setServiceGroup(sg);
        entry.setMemberEPR(epr);
       
        try
        {
            resource.initialize();
            manager.addResource(resource.getEndpointReference(), resource);
View Full Code Here

        WsResource[] entries = getEntry();
        Element[] entryXML = new Element[entries.length];
       
        for (int n = 0; n < entries.length; ++n)
        {
            Entry entryCap = (Entry)entries[n].getCapability(WssgConstants.ENTRY_URI);
            entryXML[n] = entryCap.toXML();
        }
       
        return entryXML;
    }
View Full Code Here

        throws SoapFault
    {
        //
        // write the service group entry XML infoset to file
        //
        Entry entry = (Entry)resource.getCapability(WssgConstants.ENTRY_URI);
        Element entryXML = entry.toXML();
       
        try
        {
            XmlUtils.toFile(entryXML, resourceFile);
        }
View Full Code Here

        //
        // find the entry resource, use the Entry capability to set the
        // member EPR and service group property values
        //
        WsResource entryResource = (WsResource)getResourceManager().getResource(entryEPR);       
        Entry entryCap = (Entry)entryResource.getCapability(WssgConstants.ENTRY_URI);
       
        WsResource sgResource = getServiceGroup();
       
        entryCap.setServiceGroup(sgResource);
        entryCap.setMemberEPR(memberEPR);
       
        ServiceGroup sgCap = (ServiceGroup)sgResource.getCapability(WssgConstants.SERVICE_GROUP_URI);
        sgCap.addEntry(memberEPR, entryResource);
       
        return entryResource;
View Full Code Here

        }
    }
   
    public void resourceAdded(EndpointReference epr, Resource resource) throws SoapFault
    {
        Entry entry = (Entry)resource.getCapability(WssgConstants.ENTRY_URI);
       
        //
        // resource is not a service group entry
        //
        if (entry == null)
            return;
       
        //
        // if the resource the service group that owns the entry, send a message
        //
        if (isAdvertised(entry.getServiceGroupEPR()))
        {
            Element payload = XmlUtils.createElement(MuwsConstants.MANAGEABILITY_EPR_QNAME, epr.toXML());
            sendMessage(epr, MuwsConstants.ADV_ME_CREATION_TOPIC, WefConstants.CREATE_SITUATION_QNAME, payload);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.sg.Entry

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.