Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.TranscodableUrlResolver


    }

    // Javadoc inherited.
    public void visit(StyleTranscodableURI value, Object object) {
        try {
            final TranscodableUrlResolver urlResolver =
                protocol.getMarinerPageContext().getTranscodableUrlResolver();
            final String url = urlResolver.resolve(value.getUri());
            if (url != null) {
                insertImage(parent, url);
            }
        } catch (RepositoryException e) {
            throw new ExtendedRuntimeException(e);
View Full Code Here


                .getCommonExpectations(expectations, mockFactory);
        marinerPageContextMock.expects.getPolicyReferenceResolver()
                .returns(referenceResolverMock).any();

        marinerPageContextMock.expects.getTranscodableUrlResolver().returns(
            new TranscodableUrlResolver(requestContextMock)).any();

        DefaultCSSVersion cssVersion = new DefaultCSSVersion("testVersion");
        cssVersion.markImmutable();

        ExtractorContext returnValue = new RuntimeExtractorContext(
View Full Code Here

            }
        } else if (valueType == StyleValueType.TRANSCODABLE_URI) {
            final StyleTranscodableURI transcodableUri =
                (StyleTranscodableURI) styleValue;
            try {
                final TranscodableUrlResolver urlResolver =
                    getMarinerPageContext().getTranscodableUrlResolver();
                return urlResolver.resolve(transcodableUri.getUri());
            } catch (RepositoryException e) {
                logger.error ("repository-exception", e);
            }
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.context.TranscodableUrlResolver

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.