Package org.apache.axis.message.addressing

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


            throw new IllegalArgumentException("workspace may not be null");
        }

        synchronized (this.accessLock) {

            final EndpointReferenceType epr = workspace.getEpr();

            final AddressIDPair addrID =
                    WorkspaceMap.chooseAddrID(epr, this.pr);

            if (addrID == null) {
View Full Code Here


                if (in != null) {
                    in.close();
                }
            }
        } else if (line.hasOption(Opts.SERVICE2_OPT_STRING)) {
            this.endpoint = new EndpointReferenceType();
            this.endpoint.setAddress(
                    new Address(line.getOptionValue(Opts.SERVICE2_OPT_STRING)));
        } else if (line.hasOption("s")) {
            this.endpoint = new EndpointReferenceType();
            this.endpoint.setAddress(new Address(line.getOptionValue("s")));
        }

        this.debugMode = line.hasOption("d");
View Full Code Here

        for (int i = 0; i < eprFiles.length; i++) {
            final File eprFile = new File(dir, eprFiles[i]);
            pr.debugln("onefile = " + eprFile.getAbsolutePath());
            try {
                final EndpointReferenceType epr =
                        FileUtils.getEPRfromFile(eprFile);
                pr.debugln("Found epr:\n" + epr.toString());
                final int id = EPRUtils.getIdFromEPR(epr);
                pr.debugln("\nFound id: " + id);
                intList.add(new Integer(id));
            } catch (Throwable t) {
                final String err = CommonUtil.genericExceptionMessageWrapper(t);
View Full Code Here

        for (String subfile : subfiles) {

            final File f = new File(thisdir, subfile);
            if (fileExistsAndReadable(f)) {

                EndpointReferenceType epr;
                try {
                    epr = (EndpointReferenceType)
                            ObjectDeserializer.deserialize(
                                new InputSource(new FileInputStream(f)),
                                                EndpointReferenceType.class);
View Full Code Here

        if (!fileExistsAndReadable(instanceEPR)) {
            return "";
        }
       
        EndpointReferenceType epr =
            (EndpointReferenceType) ObjectDeserializer.deserialize(
                    new InputSource(new FileInputStream(instanceEPR)),
                    EndpointReferenceType.class);

        // it's possible to use same cloud client with different clouds:
View Full Code Here

        final ClientSecurityDescriptor csd =
                WSUtils.getClientSecDesc(this.d.delegationSecMechanism,
                                         this.d.delegationProtection,
                                         this.d.delegationAuthorization);

        final EndpointReferenceType delegEpr = AddressingUtils.
                  createEndpointReference(this.d.delegationFactoryUrl, null);

        final X509Certificate[] certsToDelegateOn =
                DelegationUtil.getCertificateChainRP(delegEpr, csd);

        final X509Certificate certToSign = certsToDelegateOn[0];

        if (this.pr.enabled()) {
            final String msg = "Delegating for staging credential(s).";
            if (this.pr.useThis()) {
                this.pr.infoln(PrCodes.DELEGATE__ALLMESSAGES,
                               msg);
            } else if (this.pr.useLogging()) {
                logger.info(msg);
            }
        }

        if (this.pr.enabled()) {
            final StringBuffer buf = new StringBuffer(512);

            buf.append("\nAbout to call delegation.\n  - Client credential: ")
               .append(credential.getIdentity())
               .append("\n  - Factory URL: ")
               .append(this.d.delegationFactoryUrl)
               .append("\n  - Security mechanism: ")
               .append(this.d.delegationSecMechanism)
               .append("\n  - Protection mechanism: ")
               .append(this.d.delegationProtection)
               .append("\n  - Authorization: ")
               .append(this.d.delegationAuthorization.getClass().getName())
               .append("\n  - Cert to sign: ")
               .append(certToSign.getSubjectDN().getName());

            final String dbg = buf.toString();
            if (this.pr.useThis()) {
                this.pr.dbg(dbg);
            } else if (this.pr.useLogging()) {
                logger.debug(dbg);
            }
        }

        final Delegate delegate = new Delegate(credential,
                                               csd,
                                               this.d.delegationFactoryUrl,
                                               certToSign,
                                               this.d.delegationLifetime,
                                               true);

        delegate.validateAll();

        if (this.d.dryrun) {
            if (this.pr.enabled()) {
                final String msg = "Dryrun, not calling delegation service.";
                if (this.pr.useThis()) {
                    // part of PRCODE_CREATE__DRYRUN as a whole
                    this.pr.infoln(PrCodes.CREATE__DRYRUN, msg);
                } else if (this.pr.useLogging()) {
                    logger.info(msg);
                }
            }

            return; // *** EARLY RETURN ***
        }

        final EndpointReferenceType epr = delegate.delegate();
       
        //this.delegationWasPerformed = true;

        final OptionalParameters_Type opt = this.d.optionalParameters;
        if (opt == null) {
View Full Code Here

        } catch (MalformedURLException e) {
            throw new IllegalStateException(
                        "bad default URL: " + e.getMessage());
        }

        final EndpointReferenceType defaultFactoryEPR;
        try {
            defaultFactoryEPR = AddressingUtils.
                    createEndpointReference(defaultFactoryUrlString,
                                            defaultFactoryKey());
        } catch (Exception e) {
View Full Code Here

    private static EndpointReferenceType getEPRfromFile(File f,
                                                        String path)
            throws IOException, DeserializationException {


        final EndpointReferenceType epr;
        FileInputStream in = null;
        try {
            if (f != null) {
                in = new FileInputStream(f);
            } else {
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.