Package org.wso2.carbon.registry.common.ui.utils

Examples of org.wso2.carbon.registry.common.ui.utils.TreeNode


        if (typeName != null) {
            String typeNamespace = TreeNodeBuilderUtil.getNamespaceURI(typeName, bindingElement);
            String typeLocalName = TreeNodeBuilderUtil.getLocalName(typeName);

            TreeNode typeNode = new TreeNode(TreeNodeBuilderUtil.generateKeyName(WSDLConstants.PORT_TYPE, TreeNodeBuilderUtil.convertQNameToString(typeLocalName,
                    typeNamespace)));
            bindingNode.addChild(typeNode);

            // so we cursing for the binding with that name.
            String typeExpression = "/wsdl:definitions/wsdl:portType[@name='" + typeLocalName +
View Full Code Here


            }
        }
    }

    private void fillPortType(TreeNode typeNode, OMElement typeElement) throws Exception {
        TreeNode operationsNode = new TreeNode(WSDLConstants.OPERATIONS);
        typeNode.addChild(operationsNode);
        List<String> operations = TreeNodeBuilderUtil.evaluateXPathToValues(WSDLConstants.PORT_TYPE_OPERATIONS_EXPR, typeElement);
        for (String operation: operations) {
            operationsNode.addChild(operation);
        }
    }
View Full Code Here

    public void testRetrieveWSDLDataFull() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(), "Wsdl<em>: InstanceRegIdRetriever.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[0].getKey(), "Documentation");
        assertEquals(rootChilds[1].getKey(), "Version");
        assertEquals(rootChilds[2].getKey(), "Service<em>: InstanceRegIdRetriever [http://instanceid.services.core.carbon.wso2.org]</em>");
View Full Code Here

    public void testRetrieveWSDLDataFullNoTns() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetrieverNoTns.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(), "Wsdl<em>: InstanceRegIdRetrieverNoTns.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[0].getKey(), "Documentation");
        assertEquals(rootChilds[1].getKey(), "Version");
        assertEquals(rootChilds[2].getKey(), "Service<em>: InstanceRegIdRetriever [http://instanceid.services.core.carbon.wso2.org]</em>");
View Full Code Here

    public void testRetrieveWSDLDataNoServices() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever-NoServices.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(), "Wsdl<em>: InstanceRegIdRetriever-NoServices.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[0].getKey(), "Documentation");
        assertEquals(rootChilds[1].getKey(), "Version");
        assertEquals(rootChilds[2].getKey(), "Binding<em>: InstanceRegIdRetrieverSoap11Binding [http://instanceid.services.core.carbon.wso2.org]</em>");
View Full Code Here

    public void testRetrieveWSDLDataNoServicesNoBindings() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever-NoServices-NoBindings.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(),
                "Wsdl<em>: InstanceRegIdRetriever-NoServices-NoBindings.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[2].getKey(), "Port Type<em>: InstanceRegIdRetrieverPortType [http://instanceid.services.core.carbon.wso2.org]</em>");
View Full Code Here

    public void testRetrieveWSDLDataNoBindings() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever-NoBindings.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(),
                "Wsdl<em>: InstanceRegIdRetriever-NoBindings.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[2].getKey(), "Service<em>: InstanceRegIdRetriever [http://instanceid.services.core.carbon.wso2.org]</em>");
        assertEquals(rootChilds[3].getKey(), "Port Type<em>: InstanceRegIdRetrieverPortType [http://instanceid.services.core.carbon.wso2.org]</em>");
View Full Code Here

        }

        public void run() {
            try {
                MessageContext msgCtx = ((Axis2MessageContext) synCtx).getAxis2MessageContext();
                Event<MessageContext> event = new Event(msgCtx);
                subscriptions = subscriptionManager.getMatchingSubscriptions(event);
            } catch (EventException e) {
                handleException("Matching subscriptions fetching error", e);
            }
View Full Code Here

     * @throws EventException event
     */
    private void processGetStatusRequest(MessageContext mc,
                                         ResponseMessageBuilder messageBuilder)
            throws AxisFault, EventException {
        Subscription subscription =
                SubscriptionMessageBuilder.createGetStatusMessage(mc);
        if (log.isDebugEnabled()) {
            log.debug("GetStatus request recived for SynapseSubscription ID : " +
                    subscription.getId());
        }
        subscription = subscriptionManager.getSubscription(subscription.getId());
        if (subscription != null) {
            if (log.isDebugEnabled()) {
                log.debug("Sending GetStatus responce for SynapseSubscription ID : " +
                        subscription.getId());
            }
            //send the responce
            SOAPEnvelope soapEnvelope = messageBuilder.genGetStatusResponse(subscription);
            dispatchResponse(soapEnvelope, EventingConstants.WSE_GET_STATUS_RESPONSE,
                    mc, false);
View Full Code Here


    public SynapseSubscription() {
        this.setId(UIDGenerator.generateURNString());
        this.setDeliveryMode(EventingConstants.WSE_DEFAULT_DELIVERY_MODE);
        SubscriptionData subscriptionData = new SubscriptionData();
        subscriptionData.setProperty(SynapseEventingConstants.STATIC_ENTRY, "false");
        this.setSubscriptionData(subscriptionData);
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.registry.common.ui.utils.TreeNode

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.