Package org.oasis_open.docs.wsn.b_2

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


        is.close();
        return subscribe;
    }

    public void testWithNilITT() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-nil-itt.xml");
        subscription.validateSubscription(subscribe);
    }
View Full Code Here


        Subscribe subscribe = getSubscription("subscribe-nil-itt.xml");
        subscription.validateSubscription(subscribe);
    }

    public void testWithAbsoluteITT() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-abs-itt.xml");
        try {
            subscription.validateSubscription(subscribe);
            fail("Invalid initial termination time used. Fault was expected.");
        } catch (UnacceptableInitialTerminationTimeFault e) {
            // OK
View Full Code Here

            // OK
        }
    }

    public void testWithEmptyITT() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-empty-itt.xml");
        try {
            subscription.validateSubscription(subscribe);
            fail("Invalid initial termination time used. Fault was expected.");
        } catch (UnacceptableInitialTerminationTimeFault e) {
            // OK
View Full Code Here

            // OK
        }
    }

    public void testWithNoITT() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-no-itt.xml");
        subscription.validateSubscription(subscribe);
    }
View Full Code Here

        Subscribe subscribe = getSubscription("subscribe-no-itt.xml");
        subscription.validateSubscription(subscribe);
    }

    public void testWithUseRaw() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-raw.xml");
        subscription.validateSubscription(subscribe);
    }
View Full Code Here

        Subscribe subscribe = getSubscription("subscribe-raw.xml");
        subscription.validateSubscription(subscribe);
    }

    public void testWithProducerProperties() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-pp.xml");
        try {
            subscription.validateSubscription(subscribe);
            fail("ProducerProperties used. Fault was expected.");
        } catch (InvalidProducerPropertiesExpressionFault e) {
            // OK
View Full Code Here

            // OK
        }
    }

    public void testWithNoTopic() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-no-topic.xml");
        try {
            subscription.validateSubscription(subscribe);
            fail("ProducerProperties used. Fault was expected.");
        } catch (InvalidFilterFault e) {
            // OK
View Full Code Here

            // OK
        }
    }

    public void testWithEPR() throws Exception {
        Subscribe subscribe = getSubscription("subscribe-epr.xml");
        subscription.validateSubscription(subscribe);
    }
View Full Code Here

            SubscribeResponse response = new SubscribeResponse();
            response.setSubscriptionReference(createEndpointReference(subscription.getAddress()));
            success = true;
            return response;
        } catch (EndpointRegistrationException e) {
            SubscribeCreationFailedFaultType fault = new SubscribeCreationFailedFaultType();
            throw new SubscribeCreationFailedFault("Unable to register endpoint", fault, e);
        } finally {
            if (!success && subscription != null) {
                subscriptions.remove(subscription);
                try {
View Full Code Here

                }
            }
        }
        // Check all parameters
        if (consumerReference == null) {
            SubscribeCreationFailedFaultType fault = new SubscribeCreationFailedFaultType();
            throw new SubscribeCreationFailedFault("Invalid ConsumerReference: null", fault);
        }
        // TODO check we can resolve endpoint
        if (topic == null) {
            InvalidFilterFaultType fault = new InvalidFilterFaultType();
View Full Code Here

TOP

Related Classes of org.oasis_open.docs.wsn.b_2.UnsubscribeResponse

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.