Package org.globus.wsrf

Examples of org.globus.wsrf.ResourceKey


        return this.serviceAddress;
    }

    public String getContextSecret(EndpointReferenceType ref)
            throws ContextBrokerException {
        final ResourceKey ctxKey = this.getResourceKey(ref);
        final ContextBrokerResource resource =
                                        this.findResourceNoSecurity(ctxKey);
        BootstrapInformation bootstrap = resource.getBootstrap();

        // current secret string is a separated list:
View Full Code Here


        }

        logger.info("WS-CTX created new contextualization " +
                    "resource: '" + uuid + "' for DN = '" + callerDN + "'");

        ResourceKey key = this.getResourceKey(uuid);
        this.add(key, resource);
        return getEPR(key);
    }
View Full Code Here

        final BrokerContact contact;
        try {
            final EndpointReferenceType epr =
                    this.home.createNewResource(callerDn, expectInjections);

            final ResourceKey resourceKey = this.home.getResourceKey(epr);
            final String contextId = resourceKey.toString();

            rawId = (String) resourceKey.getValue();


            contact = new BrokerContact(this.home.getBrokerURL(),
                    contextId, this.home.getContextSecret(epr));
        } catch (ContextBrokerException e) {
View Full Code Here

        final String callerDn = getCallerDn();

        final Resource resource;
        try {
            final ResourceKey resourceKey = this.home.getResourceKey(id);
            resource = this.home.find(resourceKey);
        } catch (ResourceException e) {
            logger.error("Problem retrieving ctx resource with id '"+id+"': "
                    +e.getMessage(), e);
            return Response.status(Response.Status.NOT_FOUND).build();
View Full Code Here

            throw new CannotTranslateException("id may not be null");
        }

        try {
            final String addr = this.baseURL + this.serviceName;
            final ResourceKey key =
                    new SimpleResourceKey(this.keyTypeName, id);
            return AddressingUtils.createEndpointReference(addr, key);
        } catch (Exception e) {
            throw new CannotTranslateException(e.getMessage(), e);
        }
View Full Code Here

TOP

Related Classes of org.globus.wsrf.ResourceKey

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.