Package org.richfaces.resource.mapping

Examples of org.richfaces.resource.mapping.ResourcePath


        if (mappedResource == null) {
            return null;
        }

        resourceTracker.markResourceRendered(context, resourceKey);
        ResourcePath path = new ResourcePath(mappedResource.getRequestPath());
        Set<ResourceKey> aggregatedResources = mappedResourceFactory.getAggregatedResources(path);
        for (ResourceKey key : aggregatedResources) {
            resourceTracker.markResourceRendered(context, key);
        }
View Full Code Here


            }

            return new ResourceMapping() {
                @Override
                public ResourcePath getResourcePath(FacesContext context) {
                    return new ResourceServletMapping(new ResourcePath(mapped)).getResourcePath(context);
                }
            };
        }
View Full Code Here

    public URLResource(ResourcePath resourcePath) {
        this.path = resourcePath;
    }

    public URLResource(URL url) {
        this.path = new ResourcePath(url);
    }
View Full Code Here

    public Resource createResource(FacesContext context, ResourceKey resourceKey) {
        for (ResourceMapper mapper : mappers) {
            ResourceMapping mapping = mapper.mapResource(resourceKey);

            if (mapping != null) {
                ResourcePath path = mapping.getResourcePath(context);
                return new URLResource(path);
            }
        }

        return null;
View Full Code Here

TOP

Related Classes of org.richfaces.resource.mapping.ResourcePath

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.