Uses of Interface
org.apache.tapestry5.commons.Resource
Packages that use Resource
Package
Description
Root package for Tapestry, containing common interfaces and data types used throughout the framework.
[INTERNAL USE ONLY] support classes for the
Dynamic component; API subject to change[INTERNAL USE ONLY] support classes for the JPA module; API subject to change
[INTERNAL USE ONLY] support classes for component models; API subject to change
[INTERNAL USE ONLY] support classes for assembling and loading pages; API subject to change
[INTERNAL USE ONLY] support classes for component template rendering; API subject to change
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] asset support services; API subject to change
[INTERNAL USE ONLY] JavaScript support implementations; API subject to change
[INTERNAL USE ONLY] support implementations for component catalogs; API subject to change
[INTERNAL USE ONLY] component template support classes; API subject to change
[INTERNAL USE ONLY] page structure implementation details; API subject to change.
[INTERNAL USE ONLY] various utility classes; API subject to change.
[INTERNAL USE ONLY] Tapestry IOC service implementation classes; API subject to change.
[INTERNAL USE ONLY] utility classes for Tapestry IOC services; API subject to change
Interfaces for various types of component and parameter models used by Tapestry
Core services
Various services for assets (e.g., images, JavaScript and CSS files)
Services supporting the
Dynamic component.Support for Javascript (and CSS), including dynamically-added JavaScript and
services that manage dynamically-added links to JavaScript (and CSS) assets.
Services supporting component and application message catalogs.
Services for locating and loading pages and component resources.
Template services
Support for testing Tapestry pages
-
Uses of Resource in org.apache.tapestry5
Methods in org.apache.tapestry5 that return ResourceModifier and TypeMethodDescriptionComponentResources.getBaseResource()Returns the base resource for the component, which will represent the class's location within the classpath (this is used to resolve relative assets).Asset.getResource()Returns the underlying Resource for the Asset. -
Uses of Resource in org.apache.tapestry5.commons
Methods in org.apache.tapestry5.commons that return ResourceModifier and TypeMethodDescriptionReturns a Resource based on a relative path, relative to the folder containing the resource.Returns a localized version of the resource.Location.getResource()The resource from which the object tagged with a location was derived.Resource.withExtension(String extension) Returns a new Resource with the extension changed (or, if the resource does not have an extension, the extension is added). -
Uses of Resource in org.apache.tapestry5.commons.internal.services
Methods in org.apache.tapestry5.commons.internal.services that return ResourceModifier and TypeMethodDescriptionStringLocation.getResource()Returns null; we don't know where the file really is (it's probably a class on the class path). -
Uses of Resource in org.apache.tapestry5.internal.dynamic
Methods in org.apache.tapestry5.internal.dynamic with parameters of type ResourceConstructors in org.apache.tapestry5.internal.dynamic with parameters of type ResourceModifierConstructorDescriptionDynamicTemplateSaxParser(Resource resource, BindingSource bindingSource, Map<String, URL> publicIdToURL) -
Uses of Resource in org.apache.tapestry5.internal.jpa
Constructors in org.apache.tapestry5.internal.jpa with parameters of type ResourceModifierConstructorDescriptionEntityManagerSourceImpl(org.slf4j.Logger logger, Resource persistenceDescriptor, PersistenceUnitConfigurer packageNamePersistenceUnitConfigurer, Map<String, PersistenceUnitConfigurer> configuration) -
Uses of Resource in org.apache.tapestry5.internal.model
Methods in org.apache.tapestry5.internal.model that return ResourceConstructors in org.apache.tapestry5.internal.model with parameters of type ResourceModifierConstructorDescriptionMutableComponentModelImpl(String componentClassName, org.slf4j.Logger logger, Resource baseResource, ComponentModel parentModel, boolean pageClass, String libraryName) -
Uses of Resource in org.apache.tapestry5.internal.pageload
Methods in org.apache.tapestry5.internal.pageload that return ResourceModifier and TypeMethodDescriptionDefaultComponentResourceLocator.locateTemplate(ComponentModel model, ComponentResourceSelector selector) Methods in org.apache.tapestry5.internal.pageload that return types with arguments of type ResourceModifier and TypeMethodDescriptionDefaultComponentResourceLocator.locateMessageCatalog(Resource baseResource, ComponentResourceSelector selector) Methods in org.apache.tapestry5.internal.pageload with parameters of type ResourceModifier and TypeMethodDescriptionDefaultComponentResourceLocator.locateMessageCatalog(Resource baseResource, ComponentResourceSelector selector) -
Uses of Resource in org.apache.tapestry5.internal.parser
Methods in org.apache.tapestry5.internal.parser that return ResourceModifier and TypeMethodDescriptionComponentTemplate.getResource()Returns the resource that was parsed to form the template.ComponentTemplateImpl.getResource()Constructors in org.apache.tapestry5.internal.parser with parameters of type ResourceModifierConstructorDescriptionComponentTemplateImpl(Resource resource, List<TemplateToken> tokens, Map<String, Location> componentIds, boolean extension, boolean strictMixinParameters, Map<String, List<TemplateToken>> overrides) -
Uses of Resource in org.apache.tapestry5.internal.services
Classes in org.apache.tapestry5.internal.services that implement ResourceModifier and TypeClassDescriptionclassA resource stored with in the web application context.classMethods in org.apache.tapestry5.internal.services that return ResourceModifier and TypeMethodDescriptionMessagesBundle.getBaseResource()Returns the base resource for this bundle of properties files.MessagesTrackingInfo.getResource()UrlAsset.getResource()AbstractAssetFactory.getRootResource()Returns the rootContextResource.ExternalUrlAssetFactory.getRootResource()protected ResourceContextResource.newResource(String path) AssetSourceImpl.resourceForPath(String path) Methods in org.apache.tapestry5.internal.services with parameters of type ResourceModifier and TypeMethodDescriptionprotected AssetAbstractAssetFactory.createAsset(Resource resource, String folder, String resourcePath) ClasspathAssetFactory.createAsset(Resource resource) ContextAssetFactory.createAsset(Resource resource) ExternalUrlAssetFactory.createAsset(Resource resource) ClasspathAssetAliasManagerImpl.extractAssetAlias(Resource resource) Deprecated.Returns the digest for the given path.TemplateParser.parseTemplate(Resource templateResource) Parses the given resource into a component template.TemplateParserImpl.parseTemplate(Resource templateResource) booleanResourceDigestManager.requiresDigest(Resource resource) Deprecated.Returns true if the path requires that the client URL for the resource include a digest to validate that the client is authorized to access the resource.booleanResourceDigestManagerImpl.requiresDigest(Resource resource) booleanResourceStreamer.streamResource(Resource resource, String providedChecksum, Set<ResourceStreamer.Options> options) Streams the content of the resource to the client (or sends an alternative response such asHttpServletResponse.SC_NOT_MODIFIED).booleanResourceStreamerImpl.streamResource(Resource resource, String providedChecksum, Set<ResourceStreamer.Options> options) booleanResourceStreamerImpl.streamResource(Resource resource, StreamableResource streamable, String providedChecksum, Set<ResourceStreamer.Options> options) Constructors in org.apache.tapestry5.internal.services with parameters of type ResourceModifierConstructorDescriptionAbstractAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource, AssetPathConstructor assetPathConstructor, Resource rootResource) MessagesTrackingInfo(Resource resource, Object bundleId, String className) SaxTemplateParser(Resource resource, Map<String, URL> publicIdToURL) XMLTokenStream(Resource resource, Map<String, URL> publicIdToURL) Constructor parameters in org.apache.tapestry5.internal.services with type arguments of type ResourceModifierConstructorDescriptionComponentMessagesSourceImpl(boolean productionMode, boolean multipleClassLoaders, List<Resource> appCatalogResources, PropertiesFileParser parser, ComponentResourceLocator resourceLocator, ClasspathURLConverter classpathURLConverter, ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer, ThreadLocale threadLocale, ComponentClassResolver componentClassResolver, org.slf4j.Logger logger) -
Uses of Resource in org.apache.tapestry5.internal.services.assets
Methods in org.apache.tapestry5.internal.services.assets with parameters of type ResourceModifier and TypeMethodDescriptionvoidResourceChangeTrackerImpl.addDependency(Resource dependency) AssetChecksumGeneratorImpl.generateChecksum(Resource resource) ContentTypeAnalyzerImpl.getContentType(Resource resource) CSSURLRewriter.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) DelegatingSRS.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) JavaScriptStackMinimizeDisabler.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) SRSCachingInterceptor.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) SRSCompressingInterceptor.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) SRSMinimizingInterceptor.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) StreamableResourceSourceImpl.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) UTF8ForTextAssets.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) booleanIf the resource exists and the checksum is correct, stream it to the client and return true.longResourceChangeTracker.trackResource(Resource resource) Start tracking the resource (or return the last modified time of an already tracked resource).longResourceChangeTrackerImpl.trackResource(Resource resource) Constructors in org.apache.tapestry5.internal.services.assets with parameters of type ResourceModifierConstructorDescriptionContextAssetRequestHandler(ResourceStreamer resourceStreamer, Resource rootContextResource) -
Uses of Resource in org.apache.tapestry5.internal.services.javascript
Methods in org.apache.tapestry5.internal.services.javascript that return ResourceMethods in org.apache.tapestry5.internal.services.javascript with parameters of type ResourceModifier and TypeMethodDescriptionJavaScriptStackSourceImpl.findStackForJavaScriptLibrary(Resource resource) -
Uses of Resource in org.apache.tapestry5.internal.services.messages
Classes in org.apache.tapestry5.internal.services.messages that implement ResourceModifier and TypeClassDescriptionclassProvides a number of symbols related to client-side localization; by exposing these in the global message catalog, they are available to the client (via the "t5/core/messages" module).Methods in org.apache.tapestry5.internal.services.messages that return ResourceModifier and TypeMethodDescriptionClientLocalizationMessageResource.withExtension(String extension) Methods in org.apache.tapestry5.internal.services.messages with parameters of type ResourceModifier and TypeMethodDescriptionPropertiesFileParserImpl.parsePropertiesFile(Resource resource) -
Uses of Resource in org.apache.tapestry5.internal.services.templates
Methods in org.apache.tapestry5.internal.services.templates that return ResourceModifier and TypeMethodDescriptionDefaultTemplateLocator.locateTemplate(ComponentModel model, Locale locale) PageTemplateLocator.locateTemplate(ComponentModel model, Locale locale) Constructors in org.apache.tapestry5.internal.services.templates with parameters of type ResourceModifierConstructorDescriptionPageTemplateLocator(Resource contextRoot, ComponentClassResolver resolver, String applicationFolder) -
Uses of Resource in org.apache.tapestry5.internal.structure
Methods in org.apache.tapestry5.internal.structure that return Resource -
Uses of Resource in org.apache.tapestry5.internal.util
Classes in org.apache.tapestry5.internal.util that implement ResourceModifier and TypeClassDescriptionclassclassBase class for virtual resources: resources that are not simply mapped to stored files, but are assembled, as necessary, on the fly.Methods in org.apache.tapestry5.internal.util that return Resource -
Uses of Resource in org.apache.tapestry5.ioc.internal.services
Constructors in org.apache.tapestry5.ioc.internal.services with parameters of type Resource -
Uses of Resource in org.apache.tapestry5.ioc.internal.util
Classes in org.apache.tapestry5.ioc.internal.util that implement ResourceModifier and TypeClassDescriptionclassAbstract implementation ofResource.final classImplementation ofResourcefor files on the classpath (as defined by aClassLoader).Methods in org.apache.tapestry5.ioc.internal.util that return ResourceModifier and TypeMethodDescriptionfinal Resourcefinal ResourceLocationImpl.getResource()protected abstract ResourceAbstractResource.newResource(String path) Factory method provided by subclasses.protected ResourceClasspathResource.newResource(String path) final ResourceAbstractResource.withExtension(String extension) Constructors in org.apache.tapestry5.ioc.internal.util with parameters of type ResourceModifierConstructorDescriptionLocationImpl(Resource resource) LocationImpl(Resource resource, int line) LocationImpl(Resource resource, int line, int column) -
Uses of Resource in org.apache.tapestry5.ioc.test
Methods in org.apache.tapestry5.ioc.test that return ResourceModifier and TypeMethodDescriptionprotected final ResourceIOCTestCase.mockResource()Deprecated.Methods in org.apache.tapestry5.ioc.test with parameters of type ResourceModifier and TypeMethodDescriptionprotected final voidIOCTestCase.train_forFile(Resource resource, String relativePath, Resource file) Deprecated.protected final voidIOCTestCase.train_forLocale(Resource base, Locale locale, Resource resource) Deprecated.protected final voidIOCTestCase.train_getPath(Resource r, String path) Deprecated.protected final voidIOCTestCase.train_toURL(Resource resource, URL url) Deprecated. -
Uses of Resource in org.apache.tapestry5.kaptcha.modules
Methods in org.apache.tapestry5.kaptcha.modules with parameters of type ResourceModifier and TypeMethodDescriptionstatic voidKaptchaModule.provideLibraryMessages(OrderedConfiguration<Resource> configuration, Resource kaptchaCatalog) Method parameters in org.apache.tapestry5.kaptcha.modules with type arguments of type ResourceModifier and TypeMethodDescriptionstatic voidKaptchaModule.provideLibraryMessages(OrderedConfiguration<Resource> configuration, Resource kaptchaCatalog) -
Uses of Resource in org.apache.tapestry5.model
Methods in org.apache.tapestry5.model that return ResourceModifier and TypeMethodDescriptionComponentModel.getBaseResource()Returns the resource corresponding to the class file for this component. -
Uses of Resource in org.apache.tapestry5.modules
Methods in org.apache.tapestry5.modules with parameters of type ResourceModifier and TypeMethodDescriptionstatic voidJavaScriptModule.setupBaseModules(MappedConfiguration<String, Object> configuration, Resource underscoreShim, Resource jqueryShim, Resource typeahead, Resource moment, Resource transition, Resource bootstrapUtil, Compatibility compatibility) static voidJavaScriptModule.setupFoundationFramework(MappedConfiguration<String, Object> configuration, String provider, Resource domPrototype, Resource domJQuery) static voidAssetsModule.setupGlobalMessageCatalog(AssetSource assetSource, Resource applicationCatalog, OrderedConfiguration<Resource> configuration) Contributes: ClientLocalization A virtual resource of formatting symbols for decimal numbers Core Built in messages used by Tapestry's default validators and components AppCatalog The Resource defined bySymbolConstants.APPLICATION_CATALOGMethod parameters in org.apache.tapestry5.modules with type arguments of type ResourceModifier and TypeMethodDescriptionstatic voidAssetsModule.setupGlobalMessageCatalog(AssetSource assetSource, Resource applicationCatalog, OrderedConfiguration<Resource> configuration) Contributes: ClientLocalization A virtual resource of formatting symbols for decimal numbers Core Built in messages used by Tapestry's default validators and components AppCatalog The Resource defined bySymbolConstants.APPLICATION_CATALOG -
Uses of Resource in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services that return ResourceModifier and TypeMethodDescriptionAssetNotFoundException.getResource()The resource which wasn't found.AssetFactory.getRootResource()Returns the Resource representing the root folder of the domain this factory is responsible for.AssetSource.resourceForPath(String path) Finds the asset, either on the classpath or (if prefixed), within the indicated domain.Methods in org.apache.tapestry5.services with parameters of type ResourceModifier and TypeMethodDescriptionAssetFactory.createAsset(Resource resource) Creates an instance of an asset.ClasspathAssetAliasManager.extractAssetAlias(Resource resource) Deprecated.Takes a classpath resource and determines the proper alias for it based on the mappings contributed to the service.Finds the asset.Constructors in org.apache.tapestry5.services with parameters of type ResourceModifierConstructorDescriptionAssetNotFoundException(String message, Resource resource) Constructs an exception with message and aResource. -
Uses of Resource in org.apache.tapestry5.services.assets
Methods in org.apache.tapestry5.services.assets with parameters of type ResourceModifier and TypeMethodDescriptionvoidResourceDependencies.addDependency(Resource dependency) Marks the dependency as an additional resource.AssetChecksumGenerator.generateChecksum(Resource resource) Given a raw resource, generates an MD5 checksum of the resource's contents.ContentTypeAnalyzer.getContentType(Resource resource) Analyze the resource to determine its content type.StreamableResourceSource.getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies) Converts a Resource (which must be non-null and exist) into a streamable resource, along with some additional optional behaviors.ResourceTransformer.transform(Resource source, ResourceDependencies dependencies) Read the source input stream and provide a new input stream of the transformed content. -
Uses of Resource in org.apache.tapestry5.services.dynamic
Methods in org.apache.tapestry5.services.dynamic with parameters of type ResourceModifier and TypeMethodDescriptionDynamicTemplateParser.parseTemplate(Resource resource) Given a Resource, parse the XML file into a template. -
Uses of Resource in org.apache.tapestry5.services.javascript
Fields in org.apache.tapestry5.services.javascript declared as ResourceModifier and TypeFieldDescriptionfinal ResourceJavaScriptModuleConfiguration.resourceThe resource for this shim module.Methods in org.apache.tapestry5.services.javascript that return ResourceModifier and TypeMethodDescriptionModuleManager.findResourceForModule(String moduleName) Given a module name (which may be a path of names separated by slashes), locates the correspondingResource.Methods in org.apache.tapestry5.services.javascript with parameters of type ResourceModifier and TypeMethodDescriptionJavaScriptStackSource.findStackForJavaScriptLibrary(Resource resource) Attempts to find the stack containing the indicated JavaScript library.Constructors in org.apache.tapestry5.services.javascript with parameters of type ResourceModifierConstructorDescriptionAMDWrapper(Resource resource) JavaScriptModuleConfiguration(Resource resource) -
Uses of Resource in org.apache.tapestry5.services.messages
Methods in org.apache.tapestry5.services.messages with parameters of type ResourceModifier and TypeMethodDescriptionPropertiesFileParser.parsePropertiesFile(Resource resource) Read the contents of the file (which is expected to exist) and return it as a Map of string keys and values (asCaseInsensitiveMapshould be used. -
Uses of Resource in org.apache.tapestry5.services.pageload
Methods in org.apache.tapestry5.services.pageload that return ResourceModifier and TypeMethodDescriptionComponentResourceLocator.locateTemplate(ComponentModel model, ComponentResourceSelector selector) Locates the template for a component (including pages and base classes).Methods in org.apache.tapestry5.services.pageload that return types with arguments of type ResourceModifier and TypeMethodDescriptionComponentResourceLocator.locateMessageCatalog(Resource baseResource, ComponentResourceSelector selector) Locates the properties files that make up the message catalog for a specific component.Methods in org.apache.tapestry5.services.pageload with parameters of type ResourceModifier and TypeMethodDescriptionComponentResourceLocator.locateMessageCatalog(Resource baseResource, ComponentResourceSelector selector) Locates the properties files that make up the message catalog for a specific component. -
Uses of Resource in org.apache.tapestry5.services.templates
Methods in org.apache.tapestry5.services.templates that return ResourceModifier and TypeMethodDescriptionComponentTemplateLocator.locateTemplate(ComponentModel model, Locale locale) Deprecated.Locates the template for the given model as aResource. -
Uses of Resource in org.apache.tapestry5.test
Methods in org.apache.tapestry5.test with parameters of type ResourceModifier and TypeMethodDescriptionprotected final voidTapestryTestCase.train_createAsset(AssetFactory factory, Resource resource, Asset asset) protected final voidTapestryTestCase.train_getAsset(AssetSource source, Resource root, String path, Locale locale, Asset asset) protected final voidTapestryTestCase.train_getBaseResource(ComponentModel model, Resource resource) final voidTapestryTestCase.train_getResource(Location location, Resource resource) protected final voidTapestryTestCase.train_getRootResource(AssetFactory factory, Resource rootResource)