Package com.volantis.mcs.policies.variants.content

Examples of com.volantis.mcs.policies.variants.content.BaseURLRelative


    public BaseLocation getBaseLocation(SelectedVariant selected) {

        Variant variant = selected.getVariant();
        Content content = variant.getContent();
        if (content instanceof BaseURLRelative) {
            BaseURLRelative relative = (BaseURLRelative) content;
            BaseLocation baseLocation = relative.getBaseLocation();
            if (baseLocation != BaseLocation.DEFAULT) {
                return baseLocation;
            }

            RuntimePolicyReference reference = (RuntimePolicyReference)
                    relative.getBaseURLPolicyReference();
            if (reference != null) {
                BaseURLPolicy policy = (BaseURLPolicy)
                        policyFetcher.fetchPolicy(reference);
                if (policy != null) {
                    baseLocation = policy.getBaseLocation();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.content.BaseURLRelative

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.