Examples of resolve()


Examples of org.apache.cassandra.db.ColumnFamily.resolve()

        }
        if (resolved == null)
            return null;
        for (ColumnFamily cf : versions)
        {
            resolved.resolve(cf);
        }
        return resolved;
    }

    public void preprocess(Message message)
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.variables.VariableResolver.resolve()

    {
        String resolvedPath = null;
        try
        {
            VariableResolver resolver = VariableResolverFactory.getResolver(path, manager);
            resolvedPath = resolver.resolve(null, objectModel);
        }
        catch (PatternException e)
        {
            throw new ProcessingException(e);
        }
View Full Code Here

Examples of org.apache.cocoon.components.variables.VariableResolver.resolve()

    public String resolve(String value) throws ProcessingException {
        VariableResolver resolver = null;
        try {
            resolver = this.variableFactory.lookup( value );
            return resolver.resolve();
        } catch (PatternException e) {
            throw new ProcessingException("Error parsing pattern: " + value, e);
        } finally {
            this.variableFactory.release(resolver);
        }
View Full Code Here

Examples of org.apache.cocoon.environment.SourceResolver.resolve()

            for(Iterator i = sources.iterator(), j = timeStamps.iterator(); i.hasNext();) {
                String src = ((String)i.next());
                long timeStamp = ((Long)j.next()).longValue();
                Source otherSource = null;
                try {
                    otherSource = otherResolver.resolve(src);
                    if(otherSource.getLastModified() != timeStamp ||
                        timeStamp == 0)
                        return false;
                } catch (Exception e) {
                    return false;
View Full Code Here

Examples of org.apache.cocoon.environment.URLFactorySourceResolver.resolve()

            URLFactory urlFactory = null;
            Source configSource = null;
            try {
                urlFactory = (URLFactory)manager.lookup(URLFactory.ROLE);
                URLFactorySourceResolver urlResolver = new URLFactorySourceResolver(urlFactory, manager);
                configSource = urlResolver.resolve(configUrl);
                if (getLogger().isDebugEnabled()) {
                    getLogger().debug("Loading configuration from " + configSource.getSystemId());
                }
                configSource.toSAX(new ConfigurationParser());
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.cocoon.sitemap.expression.LanguageInterpreter.resolve()

                throw new UnsupportedExpressionLanguageException("Could not resolve parameter '" + parameter
                        + "'. The language '" + language + "' is not supported.");
            }

            final String variable = matcher.group(2);
            final String replacement = languageInterpreter.resolve(variable, this.objectModel);

            if (replacement != null) {
                result.replace(matcher.start(), matcher.end(), replacement);
            } else {
                throw new VariableNotFoundException("Variable {" + language + ":" + variable
View Full Code Here

Examples of org.apache.commons.mail.DataSourceResolver.resolve()

    public void testResolvingClassPathLenient() throws Exception
    {
        DataSourceResolver dataSourceResolver;

        dataSourceResolver = new DataSourceClassPathResolver("/", true);
        assertTrue(toByteArray(dataSourceResolver.resolve("images/asf_logo_wide.gif")).length == IMG_SIZE);
        assertTrue(toByteArray(dataSourceResolver.resolve("./images/asf_logo_wide.gif")).length == IMG_SIZE);
        assertTrue(toByteArray(dataSourceResolver.resolve("/images/asf_logo_wide.gif")).length == IMG_SIZE);
        assertNull(dataSourceResolver.resolve("/asf_logo_wide.gif"));

        dataSourceResolver = new DataSourceClassPathResolver("/images", true);
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointResolverRegistry.resolve()

        EndpointReferenceType physical = null;
        if (bus != null) {
            EndpointResolverRegistry registry =
                bus.getExtension(EndpointResolverRegistry.class);
            if (registry != null) {
                physical = registry.resolve(logical);
            }
        }
        return physical != null ? physical : logical;
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.xml.XSISchemaLocation.resolve()

    }
   
    private void addSchemaLocation(Marshaller ms, Annotation[] anns) throws Exception {
        XSISchemaLocation sl = AnnotationUtils.getAnnotation(anns, XSISchemaLocation.class);
        if (sl != null) {
            String value = sl.resolve() ? resolveXMLResourceURI(sl.value()) : sl.value();
            String propName = !sl.noNamespace()
                ? Marshaller.JAXB_SCHEMA_LOCATION : Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION;
            ms.setProperty(propName, value);
        }
    }
View Full Code Here

Examples of org.apache.cxf.resource.ExtendedURIResolver.resolve()

    public Policy resolveReference(String uri) {
        int pos = uri.indexOf('#');
        String documentURI = pos == -1 ? uri : uri.substring(0, pos);
        ExtendedURIResolver resolver = new ExtendedURIResolver();
        InputSource is = resolver.resolve(documentURI, baseURI);
        if (null == is) {
            return null;
        }
        Document doc = null;
        try {
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.