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

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


        }
    }

    public void resourceRemoved(EndpointReference epr) throws SoapFault
    {
        ServiceGroup serviceGroup = (ServiceGroup)getResource().getCapability(WssgConstants.SERVICE_GROUP_URI);
       
        if (serviceGroup.getEntry(epr) != null)
        {
            Element payload = XmlUtils.createElement(MuwsConstants.DESTROY_NOTIFICATION_QNAME);
            sendMessage(epr, MuwsConstants.ADV_ME_DESTRUCTION_TOPIC, WefConstants.DESTROY_SITUATION_QNAME, payload);
        }
    }
View Full Code Here


        WsResourceClient client = getMemberClient();
       
        if (client == null)
            return null;
       
        ServiceGroup sg = (ServiceGroup)getServiceGroup().getCapability(WssgConstants.SERVICE_GROUP_URI);
        QName[] contentNames = sg.getContentElements();       
       
        try
        {
            if (contentNames.length != 0)
                content = client.getMultipleResourceProperties(contentNames);
View Full Code Here

        throws SoapFault
    {
        //
        // tell the sg that owns us to remove us from its collection
        //
        ServiceGroup sg = (ServiceGroup)getServiceGroup().getCapability(WssgConstants.SERVICE_GROUP_URI);
        sg.removeEntry(getWsResource());
       
        super.shutdown();
    }
View Full Code Here

        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

        WsResourceClient client = getMemberClient();
       
        if (client == null)
            return null;
       
        ServiceGroup sg = (ServiceGroup)getServiceGroup().getCapability(WssgConstants.SERVICE_GROUP_URI);
        QName[] contentNames = sg.getContentElements();       
       
        try
        {
            if (contentNames.length != 0)
                content = client.getMultipleResourceProperties(contentNames);
View Full Code Here

        throws SoapFault
    {
        //
        // tell the sg that owns us to remove us from its collection
        //
        ServiceGroup sg = (ServiceGroup)getServiceGroup().getCapability(WssgConstants.SERVICE_GROUP_URI);
        sg.removeEntry(getWsResource());
       
        super.shutdown();
    }
View Full Code Here

        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 resourceRemoved(EndpointReference epr) throws SoapFault
    {
        ServiceGroup serviceGroup = (ServiceGroup)getResource().getCapability(WssgConstants.SERVICE_GROUP_URI);
       
        if (serviceGroup.getEntry(epr) != null)
        {
            Element payload = XmlUtils.createElement(MuwsConstants.DESTROY_NOTIFICATION_QNAME);
            sendMessage(epr, MuwsConstants.ADV_ME_DESTRUCTION_TOPIC, WefConstants.DESTROY_SITUATION_QNAME, payload);
        }
    }
View Full Code Here

TOP

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

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.