Package org.apache.axis.message.addressing

Examples of org.apache.axis.message.addressing.EndpointReferenceType


        }


        /* CHECK ENSEMBLE RELATED ASSUMPTIONS */

        final EndpointReferenceType ensembleEPR = response.getEnsembleEPR();

        if (this.expectEnsembleEPR && ensembleEPR == null) {
            throw new ExecutionProblem("(?) requested ensemble " +
                    "participation but no ensemble EPR was assigned");
        }

        if (!this.expectEnsembleEPR && ensembleEPR != null) {
            throw new ExecutionProblem("(?) ensemble EPR assigned but " +
                    "no request was made for ensemble participation");
        }

        /* CHECK CONTEXT RELATED ASSUMPTIONS */

        final EndpointReferenceType contextEPR = response.getContextEPR();

        if (this.expectContextEPR && contextEPR == null) {
            throw new ExecutionProblem("(?) requested context " +
                    "participation but no context EPR was assigned");
        }
View Full Code Here


            // will not be null, leaving as safeguard/reminder
            throw new ParameterProblem("Cannot subscribe, notification " +
                    "listener was not set up correctly.");
        }

        final EndpointReferenceType consumerEPR =
                    this.listenMaster.getConsumerEPR();

        final SubscribeCurrentState_Instance[] rets =
                new SubscribeCurrentState_Instance[portTypes.length];
       
View Full Code Here

            // will not be null, leaving as safeguard/reminder
            throw new ParameterProblem("Cannot subscribe, notification " +
                    "listener was not set up correctly.");
        }

        final EndpointReferenceType consumerEPR =
                    this.listenMaster.getConsumerEPR();

        final SubscribeTermination_Instance[] rets =
                new SubscribeTermination_Instance[portTypes.length];
View Full Code Here

        final Caller caller = this.translate.getCaller(callerDN);

        // --------------------------------------
        // handle context broker related requests
        // --------------------------------------
        final EndpointReferenceType ctxEPR;
        final Contextualization_Type ctx = this.translate.getWSctx(req);
        if (ctx == null) {
            ctxEPR = null;
            this.doNotConsumeCtx(ctx, req);
        } else {
View Full Code Here

        // time and can avoid need for back-outs
        // todo: when broker becomes full standalone and is also in a remote
        //       container, do not make this call
        this.brokerHome.basicValidate(ctx);

        EndpointReferenceType ctxEPR = req.getContextEPR();
       
        if (ctxEPR == null) {
            ctxEPR = this.brokerHome.createNewResource(callerDN);
        } else {
            // check up front (see above, same problem with remote brokers)
View Full Code Here

        if (req == null) {
            throw new IllegalArgumentException("req may not be null");
        }

        final EndpointReferenceType ctxEPR = req.getContextEPR();
        if (ctxEPR != null) {
            throw new ContextBrokerException("Context EPR is provided " +
                    "but no contextualization section is present in " +
                    "logistics?");
        }
View Full Code Here

    // VALIDATION ETC
    // -------------------------------------------------------------------------

    private void validateEndpoint() throws ParameterProblem {

        final EndpointReferenceType epr = this.stubConf.getEPR();

        if (epr == null) {
            throw new ParameterProblem(name() + " requires EPR");
        }
View Full Code Here

        this.ctx_create = new Ctx_Create(epr, this.stubConf, this.pr);
    }

    private void validateEndpoint() throws ParameterProblem {

        final EndpointReferenceType epr;
        if (this.stubConf.getEPR() == null) {

            if (this.args.targetServiceUrl == null) {
                throw new ParameterProblem(name() + " requires a " +
                        "Context Broker URL, see \"" +
                        Opts.CTX_CREATE_OPT_STRING + " -h\"");
            }

            try {
                epr = new EndpointReferenceType(
                                new Address(this.args.targetServiceUrl));
            } catch (URI.MalformedURIException e) {
                throw new ParameterProblem("Given context broker URL " +
                        "appears to be invalid: " + e.getMessage(), e);
            }

            this.stubConf.setEPR(epr);
        } else {
            epr = this.stubConf.getEPR();
            this.args.targetServiceUrl = epr.getAddress().toString();
        }

        if (this.pr.enabled()) {
            // address print
            final String msg = "Context Broker:\n    " +
View Full Code Here

            final String err = "Problem getting consumer to start " +
                    "listening: " + e.getMessage();
            throw new NotificationImplementationException(err, e);
        }

        final EndpointReferenceType defaultConsumerEPR;
        try {
            defaultConsumerEPR =
                    this.consumer.createNotificationConsumer(topicPaths,
                                                             listeners);
        } catch (ResourceException e) {
View Full Code Here

                    "illegal to call with more than one listener non-null");
        }

        synchronized (this.accessLock) {

            final EndpointReferenceType epr = workspace.getEpr();

            // look in the map to see if anything is being tracked already
            final WorkspaceAndListeners wal =
                    this.map.getWorkspace(epr, this.pr);
View Full Code Here

TOP

Related Classes of org.apache.axis.message.addressing.EndpointReferenceType

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.