Examples of PolicyFetcher


Examples of com.volantis.mcs.runtime.policies.PolicyFetcher

    public SelectedVariant retrieveBestObject(
            SelectionContext context,
            RuntimePolicyReference reference,
            EncodingCollection requiredEncodings) {

        PolicyFetcher fetcher = context.getPolicyFetcher();

        // Get the policy, if it could not be found then return immediately.
        // There is no need to cache the fact that it could not be found as
        // that will already have been done in a lower level accessor.
        ActivatedVariablePolicy policy = (ActivatedVariablePolicy)
                fetcher.fetchPolicy(reference);
        if (policy == null) {
            return null;
        }

        // Cache selection.
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.PolicyFetcher

            // Try fallback.
            PolicyType policyType = policy.getPolicyType();
            RuntimePolicyReference fallbackReference = (RuntimePolicyReference)
                    policy.getAlternatePolicy(policyType);
            if (fallbackReference != null) {
                PolicyFetcher fetcher = context.getPolicyFetcher();
                policy = (ActivatedVariablePolicy)
                        fetcher.fetchPolicy(fallbackReference);
                if (policy == null) {
                    selection = POLICY_NOT_FOUND;
                } else {
                    return selectBest(context, policy, requiredEncodings);
                }
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.PolicyFetcher

            // a URL file is the URL path and query string
            relativeRequestURL = requestURL.getFile();

            initialiseTopLevelCanvas();

            PolicyFetcher policyFetcher =
                    volantisBean.getPolicyFetcher();

            // If support for inline meta data has been configured then wrap
            // the fetcher in a special one that will search for policies in
            // the page first.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.