Package com.volantis.synergetics.descriptorstore

Examples of com.volantis.synergetics.descriptorstore.ResourceDescriptor


        }

        // TODO later If there's an appropriate plugin, allow it to do pre-processing of the parameters.
        // plugin.preProcess(inputParameters, outputParameters, device);

        ResourceDescriptor descriptor = descriptorStore.createDescriptor(
            request.getResourceType(), inputParameters, outputParameters,
            timeToLive);

        // TODO later If there's an appropriate plugin, allow it to do post-processing of the parameters.
        // plugin.postProcess(outputParameters, device);

        MutableParameters callbackParameters = COMMON_FACTORY.createMutableParameters();
        Iterator processedParameters = descriptor.getOutputParameters().iterator();
        while (processedParameters.hasNext()) {
            Parameters.Entry entry = (Parameters.Entry) processedParameters.next();
            callbackParameters.setParameterValue(entry.getName(), entry.getValue());
        }
        String externalId = descriptor.getExternalID();
        externalIds.add(externalId);
        // base 64 can contain "/"
        externalId = externalId.replaceAll("/", "-");
        callbackParameters.setParameterValue(
            OUTPUT_URL_PARAMETER_NAME, urlPrefix + externalId);
View Full Code Here


     * @return true if obj is equal to this instance
     */
    public boolean equals(Object obj) {
        boolean result = false;
        if (getClass() == obj.getClass()) {
            ResourceDescriptor other = (ResourceDescriptor) obj;
            if (getExternalID().equals(other.getExternalID())
                && getInputParameters().equals(
                    other.getInputParameters())
                && getOutputParameters().equals(
                    other.getOutputParameters())
                && getRequestedParameterNames().equals(
                    other.getRequestedParameterNames())){
                result = true;
            }
        }
        return result;
    }
View Full Code Here

        com.volantis.map.operation.ResourceDescriptor localDescriptor = null;
        try {
            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug("Obtaining descriptor for id " + externalID);
            }
            ResourceDescriptor descriptor = store.getDescriptor(externalID);
            localDescriptor = new DelegatingResourceDescriptor(descriptor);
        } catch (ResourceDescriptorStoreException e) {
            throw new ResourceDescriptorNotFoundException(e);
        }
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.descriptorstore.ResourceDescriptor

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.