Uses of Class
org.eclipse.jetty.util.resource.Resource
Packages that use Resource
Package
Description
Jetty Annotations : Support for Servlet Annotations
Jetty Deploy : Webapp Deploy Management
Jetty Deploy : Webapp Deployment Providers
Jetty Http : Tools for Http processing
Jetty Plus : Limited Additional JEE Webapp Support
Jetty Runner : Embedded Jetty Tool for running webapps directly
Jetty Security : Modular Support for Security in Jetty
Jetty Server : Core Server API
Jetty Server : Core Handler API
Jetty Server : Modular Servlet Integration
Jetty Util : Common Utility Classes
Jetty Util : Common Resource Utilities
Jetty Util : Common Security Utilities
Jetty Util : Common SSL Utility Classes
Jetty Util : Modular Web Application Support
Jetty Xml : IoC Mechanism for Jetty Configuration
-
Uses of Resource in org.eclipse.jetty.annotations
Fields in org.eclipse.jetty.annotations declared as ResourceModifier and TypeFieldDescriptionprotected final ResourceAnnotationConfiguration.ParserTask._resourceFields in org.eclipse.jetty.annotations with type parameters of type ResourceModifier and TypeFieldDescriptionAnnotationParser._parsedClassNamesMap of classnames scanned and the first location from which scan occurredMethods in org.eclipse.jetty.annotations that return ResourceModifier and TypeMethodDescriptionAnnotationParser.ClassInfo.getContainingResource()AnnotationConfiguration.getJarFor(jakarta.servlet.ServletContainerInitializer service) AnnotationConfiguration.ParserTask.getResource()Methods in org.eclipse.jetty.annotations with parameters of type ResourceModifier and TypeMethodDescriptionvoidAnnotationParser.addParsedClass(String classname, Resource location) Add a class as having been parsed.booleanAnnotationConfiguration.isFromExcludedJar(WebAppContext context, jakarta.servlet.ServletContainerInitializer sci, Resource sciResource) Check to see if the ServletContainerIntializer loaded via the ServiceLoader came from a jar that is excluded by the fragment ordering.booleanAnnotationConfiguration.isFromWebInfClasses(WebAppContext context, Resource sci) Test if the ServletContainerInitializer is from WEB-INF/classesvoidAnnotationParser.parse(Set<? extends AnnotationParser.Handler> handlers, Resource r) Parse a resourceprotected voidAnnotationParser.parseDir(Set<? extends AnnotationParser.Handler> handlers, Resource root) Parse all classes in a directoryprotected voidAnnotationParser.parseJar(Set<? extends AnnotationParser.Handler> handlers, Resource jarResource) Parse a resource that is a jar file.protected voidAnnotationParser.parseJarEntry(Set<? extends AnnotationParser.Handler> handlers, Resource jar, MultiReleaseJarFile.VersionedJarEntry entry) Parse a single entry in a jar fileprotected voidAnnotationParser.scanClass(Set<? extends AnnotationParser.Handler> handlers, Resource containingResource, InputStream is) Use ASM on a classConstructors in org.eclipse.jetty.annotations with parameters of type ResourceModifierConstructorDescriptionClassInfo(Resource resource, String className, int version, int access, String signature, String superName, String[] interfaces) MyClassVisitor(Set<? extends AnnotationParser.Handler> handlers, Resource containingResource, int asmVersion) ParserTask(AnnotationParser parser, Set<? extends AnnotationParser.Handler> handlers, Resource resource) WebFilterAnnotation(WebAppContext context, String className, Resource resource) WebListenerAnnotation(WebAppContext context, String className, Resource resource) WebServletAnnotation(WebAppContext context, String className, Resource resource) -
Uses of Resource in org.eclipse.jetty.deploy
Methods in org.eclipse.jetty.deploy with parameters of type ResourceModifier and TypeMethodDescriptionvoidDeploymentManager.scope(XmlConfiguration xmlc, Resource webapp) -
Uses of Resource in org.eclipse.jetty.deploy.providers
Methods in org.eclipse.jetty.deploy.providers that return ResourceMethods in org.eclipse.jetty.deploy.providers that return types with arguments of type ResourceMethods in org.eclipse.jetty.deploy.providers with parameters of type ResourceModifier and TypeMethodDescriptionvoidScanningAppProvider.setMonitoredDirResource(Resource resource) Method parameters in org.eclipse.jetty.deploy.providers with type arguments of type ResourceModifier and TypeMethodDescriptionvoidScanningAppProvider.setMonitoredResources(List<Resource> resources) -
Uses of Resource in org.eclipse.jetty.http
Methods in org.eclipse.jetty.http that return ResourceModifier and TypeMethodDescriptionHttpContent.getResource()PrecompressedHttpContent.getResource()ResourceHttpContent.getResource()Constructors in org.eclipse.jetty.http with parameters of type ResourceModifierConstructorDescriptionResourceHttpContent(Resource resource, String contentType) ResourceHttpContent(Resource resource, String contentType, int maxBuffer) ResourceHttpContent(Resource resource, String contentType, int maxBuffer, Map<CompressedContentFormat, HttpContent> precompressedContents) -
Uses of Resource in org.eclipse.jetty.osgi.annotations
Methods in org.eclipse.jetty.osgi.annotations that return ResourceModifier and TypeMethodDescriptionAnnotationConfiguration.getJarFor(jakarta.servlet.ServletContainerInitializer service) protected ResourceAnnotationParser.getResource(org.osgi.framework.Bundle bundle) AnnotationParser.indexBundle(org.osgi.framework.Bundle bundle) Keep track of a jetty URI Resource and its associated OSGi bundle.Methods in org.eclipse.jetty.osgi.annotations with parameters of type ResourceModifier and TypeMethodDescriptionprotected org.osgi.framework.BundleConstructors in org.eclipse.jetty.osgi.annotations with parameters of type ResourceModifierConstructorDescriptionBundleParserTask(AnnotationParser parser, Set<? extends AnnotationParser.Handler> handlers, Resource resource) -
Uses of Resource in org.eclipse.jetty.osgi.boot
Methods in org.eclipse.jetty.osgi.boot that return ResourceModifier and TypeMethodDescriptionprotected ResourceAbstractOSGiApp.findFile(String fileName, String jettyHome, String bundleOverrideLocation, org.osgi.framework.Bundle containingBundle) protected ResourceAbstractOSGiApp.getFileAsResource(String file) protected ResourceAbstractOSGiApp.getFileAsResource(String dir, String file) Methods in org.eclipse.jetty.osgi.boot that return types with arguments of type ResourceModifier and TypeMethodDescriptionOSGiMetaInfConfiguration.findJars(WebAppContext context) Consider the fragment bundles associated with the bundle of the webapp being deployed.Methods in org.eclipse.jetty.osgi.boot with parameters of type ResourceModifier and TypeMethodDescriptionprotected voidAbstractWebAppProvider.OSGiApp.applyMetaInfContextXml(Resource rootResource, String overrideBundleInstallLocation) -
Uses of Resource in org.eclipse.jetty.osgi.boot.internal.serverfactory
Methods in org.eclipse.jetty.osgi.boot.internal.serverfactory that return Resource -
Uses of Resource in org.eclipse.jetty.plus.webapp
Methods in org.eclipse.jetty.plus.webapp with parameters of type Resource -
Uses of Resource in org.eclipse.jetty.quickstart
Fields in org.eclipse.jetty.quickstart declared as ResourceModifier and TypeFieldDescriptionprotected ResourceQuickStartGeneratorConfiguration._quickStartWebXmlMethods in org.eclipse.jetty.quickstart that return ResourceModifier and TypeMethodDescriptionQuickStartConfiguration.getQuickStartWebXml(WebAppContext context) Get the quickstart-web.xml file as a Resource.QuickStartGeneratorConfiguration.getQuickStartWebXml()Methods in org.eclipse.jetty.quickstart with parameters of type ResourceModifier and TypeMethodDescriptionstatic voidPreconfigureQuickStartWar.preconfigure(Resource war, Resource dir, Resource xml) voidQuickStartGeneratorConfiguration.setQuickStartWebXml(Resource quickStartWebXml) voidQuickStartDescriptorProcessor.visitMetaInfResource(WebAppContext context, Resource dir) Constructors in org.eclipse.jetty.quickstart with parameters of type Resource -
Uses of Resource in org.eclipse.jetty.runner
Methods in org.eclipse.jetty.runner with parameters of type Resource -
Uses of Resource in org.eclipse.jetty.security
Methods in org.eclipse.jetty.security that return Resource -
Uses of Resource in org.eclipse.jetty.server
Methods in org.eclipse.jetty.server that return ResourceMethods in org.eclipse.jetty.server with parameters of type ResourceModifier and TypeMethodDescriptionbooleanbooleanDeprecated.protected ByteBufferCachedContentFactory.getDirectBuffer(Resource resource) protected ByteBufferCachedContentFactory.getIndirectBuffer(Resource resource) protected ByteBufferCachedContentFactory.getMappedBuffer(Resource resource) protected Pathprotected booleanCachedContentFactory.isCacheable(Resource resource) protected voidResourceService.sendDirectory(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Resource resource, String pathInContext) Constructors in org.eclipse.jetty.server with parameters of type ResourceModifierConstructorDescriptionAllowedResourceAliasChecker(ContextHandler contextHandler, Resource baseResource) SymlinkAllowedResourceAliasChecker(ContextHandler contextHandler, Resource baseResource) Constructor parameters in org.eclipse.jetty.server with type arguments of type ResourceModifierConstructorDescriptionAllowedResourceAliasChecker(ContextHandler contextHandler, Supplier<Resource> resourceBaseSupplier) -
Uses of Resource in org.eclipse.jetty.server.handler
Methods in org.eclipse.jetty.server.handler that return ResourceModifier and TypeMethodDescriptionContextHandler.getBaseResource()ResourceHandler.getBaseResource()static ResourceResourceHandler.getDefaultStylesheet()ContextHandler.getResource(String pathInContext) Attempt to get a Resource from the Context.ResourceHandler.getResource(String path) ResourceHandler.getStylesheet()ContextHandler.newResource(String urlOrPath) Convert a URL or path to a Resource.ContextHandler.newResource(URI uri) Convert URL to Resource wrapper fornewResource(URL)enables extensions to provide alternate resource implementations.ContextHandler.newResource(URL url) Convert URL to Resource wrapper fornewResource(URL)enables extensions to provide alternate resource implementations.Methods in org.eclipse.jetty.server.handler with parameters of type ResourceModifier and TypeMethodDescriptionbooleanDeprecated.booleanCheck an aliasbooleanDeprecated.booleanDeprecated.booleanContextHandler.checkAlias(String path, Resource resource) voidContextHandler.setBaseResource(Resource base) Set the base resource for this context.voidResourceHandler.setBaseResource(Resource base) -
Uses of Resource in org.eclipse.jetty.servlet
Methods in org.eclipse.jetty.servlet that return ResourceModifier and TypeMethodDescriptionServletTester.getBaseResource()DefaultServlet.getResource(String pathInContext) get Resource to serve.Methods in org.eclipse.jetty.servlet with parameters of type Resource -
Uses of Resource in org.eclipse.jetty.util
Methods in org.eclipse.jetty.util with parameters of type Resource -
Uses of Resource in org.eclipse.jetty.util.resource
Subclasses of Resource in org.eclipse.jetty.util.resourceModifier and TypeClassDescriptionclassEmptyResource Represents a resource that does does not refer to any file, url, jar etc.classclassclassJava NIO Path Resource.classA collection of resources (dirs).classURL resource class.Fields in org.eclipse.jetty.util.resource declared as ResourceMethods in org.eclipse.jetty.util.resource that return ResourceModifier and TypeMethodDescriptionabstract ResourceReturns the resource contained inside the current resource with the given name, which may or may not exist.Add a path to the resource collection.Returns the resource contained inside the current resource with the given nameResource.getResource(String path) Get a resource from within this resource.ResourceFactory.getResource(String path) Get a Resource from a provided String.static ResourceResource.newClassPathResource(String resource) Find a classpath resource.static ResourceResource.newClassPathResource(String name, boolean useCaches, boolean checkParents) Find a classpath resource.static ResourceJarResource.newJarResource(Resource resource) static ResourceResource.newResource(File file) static ResourceResource.newResource(String resource) Construct a resource from a string.static ResourceResource.newResource(String resource, boolean useCaches) Construct a resource from a string.static ResourceResource.newResource(URI uri) Construct a resource from a uri.static ResourceResource.newResource(URL url) Construct a resource from a url.static ResourceResource.newResource(Path path) Construct a Resource from provided pathstatic ResourceResource.newSystemResource(String resource) Construct a system resource from a string.static ResourceResource.resolveAlias(Resource resource) Attempt to resolve the real path of a Resource to potentially remove any symlinks causing the Resource to be an alias.Methods in org.eclipse.jetty.util.resource that return types with arguments of type ResourceModifier and TypeMethodDescriptionstatic Comparator<? super Resource>ResourceCollators.byLastModified(boolean sortOrderAscending) static Comparator<? super Resource>ResourceCollators.byName(boolean sortOrderAscending) static Comparator<? super Resource>ResourceCollators.bySize(boolean sortOrderAscending) Parse a list of String delimited resources and return the List of Resources instances it represents.Resource.fromList(String resources, boolean globDirs, ResourceFactory resourceFactory) Parse a delimited String of resource references and return the List of Resources instances it represents.Resource.getAllResources()ResourceCollection.getResources()Retrieves the resource collection's resources.Methods in org.eclipse.jetty.util.resource with parameters of type ResourceModifier and TypeMethodDescriptionbooleanEmptyResource.isContainedIn(Resource r) booleanJarFileResource.isContainedIn(Resource resource) Check if this jar:file: resource is contained in the named resource.booleanPathResource.isContainedIn(Resource r) abstract booleanResource.isContainedIn(Resource r) static booleanResource.isContainedIn(Resource r, Resource containingResource) booleanResourceCollection.isContainedIn(Resource r) booleanURLResource.isContainedIn(Resource containingResource) booleanbooleanReturn true if the passed Resource represents the same resource as the Resource.static ResourceJarResource.newJarResource(Resource resource) booleanbooleanabstract booleanRename the given resourcebooleanbooleanRename the given resourcestatic ResourceResource.resolveAlias(Resource resource) Attempt to resolve the real path of a Resource to potentially remove any symlinks causing the Resource to be an alias.voidResourceCollection.setResources(Resource[] resources) Sets the resource collection's resources.Method parameters in org.eclipse.jetty.util.resource with type arguments of type ResourceModifier and TypeMethodDescriptionvoidResourceCollection.setResources(List<Resource> res) Sets the resource collection's resources.Constructors in org.eclipse.jetty.util.resource with parameters of type ResourceModifierConstructorDescriptionResourceCollection(Resource... resources) Instantiates a new resource collection.Constructor parameters in org.eclipse.jetty.util.resource with type arguments of type ResourceModifierConstructorDescriptionResourceCollection(Collection<Resource> resources) Instantiates a new resource collection. -
Uses of Resource in org.eclipse.jetty.util.security
Methods in org.eclipse.jetty.util.security with parameters of type Resource -
Uses of Resource in org.eclipse.jetty.util.ssl
Methods in org.eclipse.jetty.util.ssl that return ResourceModifier and TypeMethodDescriptionSslContextFactory.getKeyStoreResource()SslContextFactory.getTrustStoreResource()Methods in org.eclipse.jetty.util.ssl with parameters of type ResourceModifier and TypeMethodDescriptionprotected KeyStoreSslContextFactory.loadKeyStore(Resource resource) Override this method to provide alternate way to load a keystore.protected KeyStoreSslContextFactory.loadTrustStore(Resource resource) Override this method to provide alternate way to load a truststore.voidSslContextFactory.setKeyStoreResource(Resource resource) Set the key store resource.voidSslContextFactory.setTrustStoreResource(Resource resource) Set the trust store resource. -
Uses of Resource in org.eclipse.jetty.webapp
Fields in org.eclipse.jetty.webapp declared as ResourceModifier and TypeFieldDescriptionprotected ResourceWebInfConfiguration._preUnpackBaseResourceprotected ResourceDiscoveredAnnotation._resourceprotected ResourceDescriptor._xmlstatic final ResourceMetaData.NON_FRAG_RESOURCEFields in org.eclipse.jetty.webapp with type parameters of type ResourceModifier and TypeFieldDescriptionprotected final Map<Resource,List<DiscoveredAnnotation>> MetaData._annotationsMetaData._orderedContainerResourcesMetaData._orderedWebInfResourcesprotected final Map<Resource,FragmentDescriptor> MetaData._webFragmentResourceMapMetaData._webInfClassesMetaData._webInfJarsMethods in org.eclipse.jetty.webapp that return ResourceModifier and TypeMethodDescriptionprotected ResourceMetaInfConfiguration.findWebInfClassesDir(WebAppContext context) GetWEB-INF/classesdirprotected ResourceWebXmlConfiguration.findWebXml(WebAppContext context) MetaData.getJarForFragmentName(String name) Descriptor.getResource()DiscoveredAnnotation.getResource()WebAppContext.getResource(String pathInContext) WebAppContext.getWebInf()WebAppClassLoader.Context.newResource(String urlOrPath) Convert a URL or path to a Resource.Methods in org.eclipse.jetty.webapp that return types with arguments of type ResourceModifier and TypeMethodDescriptionMetaInfConfiguration.findClassDirs(WebAppContext context) MetaInfConfiguration.findExtraClasspathDirs(WebAppContext context) Get class dirs from WebAppContext.getExtraClasspath as resourcesMetaInfConfiguration.findExtraClasspathJars(WebAppContext context) Get jars from WebAppContext.getExtraClasspath as resourcesMetaInfConfiguration.findJars(WebAppContext context) Look for jars that should be treated as if they are in WEB-INF/libMetaInfConfiguration.findWebInfLibJars(WebAppContext context) Look for jars inWEB-INF/libMetaData.getContainerResources()WebAppClassLoader.Context.getExtraClasspath()WebAppContext.getExtraClasspath()MetaData.getWebInfClassesResources()MetaData.getWebInfResources(boolean withOrdering) Methods in org.eclipse.jetty.webapp with parameters of type ResourceModifier and TypeMethodDescriptionvoidWebAppClassLoader.addClassPath(Resource resource) voidMetaData.addContainerResource(Resource jar) voidMetaData.addFragmentDescriptor(Resource jarResource, FragmentDescriptor descriptor) Add a web-fragment.xml, and the jar it is contained in.voidAdd elements to the class path for the context from the jar and zip files found in the specified resource.voidMetaData.addWebInfResource(Resource newResource) MetaData.getFragmentDescriptor(Resource descriptorResource) MetaData.getFragmentDescriptorForJar(Resource jar) Get the web-fragment.xml related to a jarprotected static StringWebInfConfiguration.getResourceBaseName(Resource resource) voidMetaInfConfiguration.scanForFragment(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given jar.voidMetaInfConfiguration.scanForResources(WebAppContext context, Resource target, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given jar.voidMetaInfConfiguration.scanForTlds(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Collection<URL>> cache) Discover META-INF/*.tld files in the given jarvoidWebAppContext.setWarResource(Resource war) Set the war of the webapp as aResource.Method parameters in org.eclipse.jetty.webapp with type arguments of type ResourceModifier and TypeMethodDescriptionvoidMetaInfConfiguration.scanForFragment(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given jar.voidMetaInfConfiguration.scanForFragment(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given jar.voidMetaInfConfiguration.scanForResources(WebAppContext context, Resource target, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given jar.voidMetaInfConfiguration.scanForResources(WebAppContext context, Resource target, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given jar.voidMetaInfConfiguration.scanForTlds(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Collection<URL>> cache) Discover META-INF/*.tld files in the given jarvoidMetaInfConfiguration.scanJars(WebAppContext context, Collection<Resource> jars, boolean useCaches) For backwards compatibility.voidMetaInfConfiguration.scanJars(WebAppContext context, Collection<Resource> jars, boolean useCaches, List<String> scanTypes) Look into the jars to discover info in META-INF.voidWebAppContext.setExtraClasspath(List<Resource> extraClasspath) voidMetaData.setWebInfClassesResources(List<Resource> dirs) Constructors in org.eclipse.jetty.webapp with parameters of type ResourceModifierConstructorDescriptionDescriptor(Resource xml) DiscoveredAnnotation(WebAppContext context, String className, Resource resource) WebAppContext(HandlerContainer parent, Resource webApp, String contextPath) WebAppContext(Resource webApp, String contextPath) WebDescriptor(Resource xml) -
Uses of Resource in org.eclipse.jetty.xml
Methods in org.eclipse.jetty.xml with parameters of type ResourceModifier and TypeMethodDescriptionvoidConfigurationProcessor.init(Resource resource, XmlParser.Node root, XmlConfiguration configuration) Initialize a ConfigurationProcessor from provided Resource and XMLvoidXmlConfiguration.setJettyStandardIdsAndProperties(Object server, Resource webapp) Set the standard IDs and properties expected in a jetty XML file: RefId Server Property jetty.home Property jetty.home.uri Property jetty.base Property jetty.base.uri Property jetty.webapps Property jetty.webapps.uriConstructors in org.eclipse.jetty.xml with parameters of type ResourceModifierConstructorDescriptionXmlConfiguration(Resource resource) Reads and parses the XML configuration file.