Examples of InvalidTopicExpressionFaultType


Examples of org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType

  protected void validateSubscription(Subscribe subscribeRequest) throws InvalidFilterFault, InvalidMessageContentExpressionFault, InvalidProducerPropertiesExpressionFault, InvalidTopicExpressionFault, SubscribeCreationFailedFault, TopicExpressionDialectUnknownFault, TopicNotSupportedFault, UnacceptableInitialTerminationTimeFault {
    super.validateSubscription(subscribeRequest);
    try {
      jmsTopic = topicConverter.toActiveMQTopic(topic);
    } catch (InvalidTopicException e) {
      InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
      throw new InvalidTopicExpressionFault(e.getMessage(), fault);
    }
  }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType

  protected void validatePublisher(RegisterPublisher registerPublisherRequest) throws InvalidTopicExpressionFault, PublisherRegistrationFailedFault, PublisherRegistrationRejectedFault, ResourceUnknownFault, TopicNotSupportedFault {
    super.validatePublisher(registerPublisherRequest);
    try {
      jmsTopic = topicConverter.toActiveMQTopic(topic);
    } catch (InvalidTopicException e) {
      InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
      throw new InvalidTopicExpressionFault(e.getMessage(), fault);
    }
  }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType

                    e = (JAXBElement<?>) f;
                    f = e.getValue();
                }
                if (f instanceof TopicExpressionType) {
                    if (!e.getName().equals(QNAME_TOPIC_EXPRESSION)) {
                        InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
                        throw new InvalidTopicExpressionFault("Unrecognized TopicExpression: " + e, fault);
                    }
                    topic = (TopicExpressionType) f;
                }
            }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType

        if (publisherReference == null && demand) {
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Invalid PublisherReference: null", fault);
        }
        if (demand && (topic == null || topic.size() == 0)) {
            InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
            throw new InvalidTopicExpressionFault(
                    "Must specify at least one topic for demand-based publishing", fault);
        }
    }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType

                    e = (JAXBElement<?>) f;
                    f = e.getValue();
                }
                if (f instanceof TopicExpressionType) {
                    if (!e.getName().equals(QNAME_TOPIC_EXPRESSION)) {
                        InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
                        throw new InvalidTopicExpressionFault("Unrecognized TopicExpression: " + e, fault);
                    }
                    topic = (TopicExpressionType) f;
                } else if (f instanceof QueryExpressionType) {
                    if (e != null && e.getName().equals(QNAME_PRODUCER_PROPERTIES)) {
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType

        //CHECKSTYLE:ON
        super.validateSubscription(subscribeRequest);
        try {
            jmsTopic = topicConverter.toActiveMQTopic(topic);
        } catch (InvalidTopicException e) {
            InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
            throw new InvalidTopicExpressionFault(e.getMessage(), fault);
        }
    }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.InvalidTopicExpressionFaultType

            TopicNotSupportedFault {
        super.validatePublisher(registerPublisherRequest);
        try {
            topicConverter.toActiveMQTopic(topic);
        } catch (InvalidTopicException e) {
            InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
            throw new InvalidTopicExpressionFault(e.getMessage(), fault);
        }
    }
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.