Package org.apache.muse.ws.notification.faults

Examples of org.apache.muse.ws.notification.faults.InvalidTopicExpressionFault


            throw new NullPointerException(_MESSAGES.get("NullTopicSpaceElement"));
       
        _targetNamespace = root.getAttribute(XmlUtils.TARGET_NS);
       
        if (_targetNamespace == null)
            throw new InvalidTopicExpressionFault(_MESSAGES.get("NoTopicSpaceNS"));
       
        _name = root.getAttribute(XsdUtils.NAME);
       
        Element[] children = XmlUtils.getElements(root, WstConstants.TOPIC_QNAME);
       
View Full Code Here


        String name = topic.getName();
       
        if (_rootTopics.containsKey(name))
        {
            Object[] filler = { name, getTargetNamespace() };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("TopicExists", filler));
        }
       
        TopicNamespace topicSpace = topic.getTopicNamespace();
       
        if (topicSpace != this)
        {
            Object[] filler = { topicSpace.getTargetNamespace(), getTargetNamespace() };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("InvalidTopicNS", filler));
        }
       
        _rootTopics.put(name, topic);
    }
View Full Code Here

        String targetNS = _topicSpace.getTargetNamespace();
       
        if (!targetNS.equals(topicNS))
        {
            Object[] filler = { topicNS, targetNS };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("InvalidTopicNS", filler));
        }
       
        validateTopicPath(_topicPath);
    }
View Full Code Here

        _topicSpace = topics.getTopicNamespace(uri);
       
        if (_topicSpace == null)
        {
            Object[] filler = { uri };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("InvalidTopicSpaceNS", filler));
        }

        String topicNS = topicPath.getNamespaceURI();
        String targetNS = _topicSpace.getTargetNamespace();
       
        if (!targetNS.equals(topicNS))
        {
            Object[] filler = { topicNS, targetNS };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("InvalidTopicNS", filler));
        }
       
        validateTopicPath(_topicPath);
    }
View Full Code Here

       
        if (unqualifiedPath.indexOf('*') >= 0 ||
            unqualifiedPath.indexOf("//") >= 0)
        {
            Object[] filler = { XmlUtils.toString(topicPath) };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("InvalidConcretePath", filler));
        }
    }
View Full Code Here

        _topicSpace = topicSpace;
       
        _name = root.getAttribute(XsdUtils.NAME);
       
        if (_name == null || _name.length() == 0)
            throw new InvalidTopicExpressionFault(_MESSAGES.get("NoTopicName"));
       
        String finalValue = root.getAttribute(WstConstants.FINAL);
       
        if (finalValue != null && finalValue.length() > 0)
            _isFinal = Boolean.valueOf(finalValue).booleanValue();
View Full Code Here

            throw new NullPointerException(_MESSAGES.get("NullTopic"));
       
        if (isFinal())
        {
            Object[] filler = { getConcretePath() };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("NoNewTopics", filler));
        }
       
        addTopicEvenIfFinal(childTopic);
    }
View Full Code Here

        String name = childTopic.getName();
       
        if (_childTopics.containsKey(name))
        {
            Object[] filler = { name, getConcretePath() };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("SubTopicExists", filler));
        }
       
        String topicNS = childTopic.getTopicNamespace().getTargetNamespace();
        String targetNS = getTopicNamespace().getTargetNamespace();
       
        if (!targetNS.equals(topicNS))
        {
            Object[] filler = { topicNS, targetNS };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("InvalidTopicNS", filler));
        }
       
        childTopic.setParentTopic(this);
       
        _childTopics.put(name, childTopic);
View Full Code Here

        String namespace = topicSpace.getTargetNamespace();
       
        if (_topicSpacesByNS.keySet().contains(namespace))
        {
            Object[] filler = { namespace };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("TopicSpaceNSExists", filler));
        }
       
        _topicSpacesByNS.put(namespace, topicSpace);
    }
View Full Code Here

        String targetNS = _topicSpace.getTargetNamespace();
       
        if (!targetNS.equals(topicNS))
        {
            Object[] filler = { topicNS, targetNS };
            throw new InvalidTopicExpressionFault(_MESSAGES.get("InvalidTopicNS", filler));
        }
       
        validateTopicPath(_topicPath);
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.notification.faults.InvalidTopicExpressionFault

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.