Uses of Class
org.eclipse.jetty.util.resource.Resource
Package
Description
Jetty Deploy : Webapp Deployment Providers
Jetty Annotations : Support for Servlet Annotations
Jetty Runner : Embedded Jetty Tool for running webapps directly
Jetty Server : Modular Servlet Integration
Jetty Util : Modular Web Application Support
Jetty Http : Tools for Http processing
Jetty IO : Core classes for Jetty IO subsystem
Jetty Security : Modular Support for Security in Jetty
Jetty Server : Core Server API
Jetty Server : Core Handler API
Jetty Util : Common Utility Classes
Jetty Util : Resource Utilities
Jetty Util : Common Security Utilities
Jetty Util : Common SSL Utility Classes
Jetty Xml : IoC Mechanism for Jetty Configuration
-
Uses of Resource in org.eclipse.jetty.deploy.providers
Modifier and TypeMethodDescriptionvoid
ContextProvider.loadProperties
(Resource resource) void
ScanningAppProvider.setMonitoredDirResource
(Resource resource) Modifier and TypeMethodDescriptionvoid
ScanningAppProvider.setMonitoredResources
(List<Resource> resources) -
Uses of Resource in org.eclipse.jetty.ee10.annotations
Modifier and TypeFieldDescriptionprotected final Resource
AnnotationConfiguration.ParserTask._resource
Modifier and TypeMethodDescriptionAnnotationParser.ClassInfo.getContainingResource()
protected Resource
AnnotationConfiguration.getJarFor
(WebAppContext context, jakarta.servlet.ServletContainerInitializer service) AnnotationConfiguration.ParserTask.getResource()
Modifier and TypeMethodDescriptionboolean
AnnotationConfiguration.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.boolean
AnnotationConfiguration.isFromWebInfClasses
(WebAppContext context, Resource sci) Test if the ServletContainerInitializer is from WEB-INF/classesvoid
AnnotationParser.parse
(Set<? extends AnnotationParser.Handler> handlers, Resource r) Parse a resourceprotected void
AnnotationParser.parseClass
(Set<? extends AnnotationParser.Handler> handlers, Resource containingResource, Path classFile) Use ASM on a classprotected void
AnnotationParser.parseDir
(Set<? extends AnnotationParser.Handler> handlers, Resource dirResource) Parse all classes in a directoryprotected void
AnnotationParser.parseJar
(Set<? extends AnnotationParser.Handler> handlers, Resource jarResource) Parse a resource that is a jar file.ModifierConstructorDescriptionClassInfo
(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.ee10.osgi.annotations
Modifier and TypeMethodDescriptionprotected Resource
AnnotationConfiguration.getJarFor
(WebAppContext context, jakarta.servlet.ServletContainerInitializer service) protected Resource
AnnotationParser.getResource
(org.osgi.framework.Bundle bundle) AnnotationParser.indexBundle
(ResourceFactory resourceFactory, org.osgi.framework.Bundle bundle) Keep track of a jetty URI Resource and its associated OSGi bundle.Modifier and TypeMethodDescriptionprotected org.osgi.framework.Bundle
void
AnnotationParser.parse
(Set<? extends AnnotationParser.Handler> handlers, Resource r) ModifierConstructorDescriptionBundleParserTask
(AnnotationParser parser, Set<? extends AnnotationParser.Handler> handlers, Resource resource) -
Uses of Resource in org.eclipse.jetty.ee10.osgi.boot
Modifier and TypeMethodDescriptionOSGiMetaInfConfiguration.findJars
(WebAppContext context) Consider the fragment bundles associated with the bundle of the webapp being deployed. -
Uses of Resource in org.eclipse.jetty.ee10.quickstart
Modifier and TypeMethodDescriptionstatic void
PreconfigureQuickStartWar.preconfigure
(Resource war, Resource dir, Resource xml) void
QuickStartDescriptorProcessor.visitMetaInfResource
(WebAppContext context, Resource dir) -
Uses of Resource in org.eclipse.jetty.ee10.runner
-
Uses of Resource in org.eclipse.jetty.ee10.servlet
Modifier and TypeMethodDescriptionServletContextHandler.getResource
(String pathInContext) Attempt to get a Resource from the Context.Source.getResource()
Get the resource.ServletTester.getResourceBase()
ServletContextHandler.newResource
(String urlOrPath) Convert a URL or path to a Resource.ServletContextHandler.newResource
(URI uri) Convert URL to Resource wrapper forResourceFactory.newResource(URL)
enables extensions to provide alternate resource implementations.ServletContextHandler.newResource
(URL url) Convert URL to Resource wrapper forResourceFactory.newResource(URL)
enables extensions to provide alternate resource implementations. -
Uses of Resource in org.eclipse.jetty.ee10.webapp
Modifier and TypeFieldDescriptionprotected Resource
DiscoveredAnnotation._resource
protected Resource
Descriptor._xml
Modifier and TypeFieldDescriptionprotected final Map<Resource,
List<DiscoveredAnnotation>> MetaData._annotations
MetaData._orderedContainerResources
MetaData._orderedWebInfResources
protected final Map<Resource,
FragmentDescriptor> MetaData._webFragmentResourceMap
MetaData._webInfClasses
MetaData._webInfJars
Modifier and TypeMethodDescriptionprotected Resource
MetaInfConfiguration.findWebInfClassesDir
(WebAppContext context) GetWEB-INF/classes
dirprotected Resource
WebXmlConfiguration.findWebXml
(WebAppContext context) MetaData.getJarForFragmentName
(String name) Descriptor.getResource()
DiscoveredAnnotation.getResource()
WebAppContext.getResource
(String pathInContext) protected Resource
WebAppContext.getResourceForTempDirName()
If the webapp has no baseresource yet, use the war to make the temp directory name.WebAppContext.getWebInf()
WebAppClassLoader.Context.newResource
(String urlOrPath) Convert a URL or path to a Resource.Modifier 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/lib
MetaData.getContainerResources()
WebAppClassLoader.Context.getExtraClasspath()
WebAppContext.getExtraClasspath()
MetaData.getWebInfClassesResources()
MetaData.getWebInfResources
(boolean withOrdering) Modifier and TypeMethodDescriptionvoid
WebAppClassLoader.addClassPath
(Resource resource) void
MetaData.addContainerResource
(Resource jar) void
MetaData.addFragmentDescriptor
(Resource jarResource, FragmentDescriptor descriptor) Add a web-fragment.xml, and the jar it is contained in.void
Add elements to the class path for the context from the jar and zip files found in the specified resource.void
MetaData.addWebInfResource
(Resource newResource) MetaData.getFragmentDescriptor
(Resource descriptorResource) MetaData.getFragmentDescriptorForJar
(Resource jar) Get the web-fragment.xml related to a jarprotected static String
WebInfConfiguration.getResourceBaseName
(Resource resource) Deprecated, for removal: This API element is subject to removal in a future version.this method is no longer neededvoid
MetaInfConfiguration.scanForFragment
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given directory.void
MetaInfConfiguration.scanForResources
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given directory.void
MetaInfConfiguration.scanForTlds
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Collection<URL>> cache) Discover META-INF/*.tld files in the given directoryvoid
WebAppContext.setWarResource
(Resource war) Set the war of the webapp as aResource
.Modifier and TypeMethodDescriptionvoid
MetaInfConfiguration.scanForFragment
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given directory.void
MetaInfConfiguration.scanForFragment
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given directory.void
MetaInfConfiguration.scanForResources
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given directory.void
MetaInfConfiguration.scanForResources
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given directory.void
MetaInfConfiguration.scanForTlds
(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Collection<URL>> cache) Discover META-INF/*.tld files in the given directoryvoid
MetaInfConfiguration.scanJars
(WebAppContext context, Collection<Resource> jars, boolean useCaches) For backwards compatibility.void
MetaInfConfiguration.scanJars
(WebAppContext context, Collection<Resource> jars, boolean useCaches, List<String> scanTypes) Look into the jars to discover info in META-INF.void
WebAppContext.setExtraClasspath
(List<Resource> extraClasspath) void
MetaData.setWebInfClassesResources
(List<Resource> dirs) ModifierConstructorDescriptionDescriptor
(Resource resource) DiscoveredAnnotation
(WebAppContext context, String className, Resource resource) WebAppContext
(Resource webApp, String contextPath) WebDescriptor
(Resource xml) -
Uses of Resource in org.eclipse.jetty.http
Modifier and TypeMethodDescriptionstatic String
EtagUtils.computeWeakEtag
(Resource resource) Compute the weak etag for the providedResource
reference.static String
EtagUtils.computeWeakEtag
(Resource resource, String etagSuffix) Compute the weak etag for the providedResource
reference.static HttpField
EtagUtils.createWeakEtagField
(Resource resource) Create a newHttpField
HttpHeader.ETAG
field suitable to represent the provided Resource.static HttpField
EtagUtils.createWeakEtagField
(Resource resource, String etagSuffix) Create a newHttpField
HttpHeader.ETAG
field suitable to represent the provided Resource.ModifierConstructorDescriptionPart
(String contentType, Resource resource, ByteRange byteRange, long contentLength, ByteBufferPool bufferPool) Part
(HttpFields headers, Resource resource, ByteRange byteRange) Part
(HttpFields headers, Resource resource, ByteRange byteRange, ByteBufferPool bufferPool) -
Uses of Resource in org.eclipse.jetty.http.content
Modifier and TypeMethodDescriptionCachingHttpContentFactory.NotFoundHttpContent.getResource()
HttpContent.getResource()
HttpContent.Wrapper.getResource()
PreCompressedHttpContent.getResource()
ResourceHttpContent.getResource()
VirtualHttpContentFactory.getResource()
protected Resource
ModifierConstructorDescriptionResourceHttpContent
(Resource resource, String contentType) ResourceHttpContentFactory
(Resource baseResource, MimeTypes mimeTypes) VirtualHttpContentFactory
(HttpContent.Factory factory, Resource resource, String contentType) -
Uses of Resource in org.eclipse.jetty.io
Modifier and TypeMethodDescriptionstatic Content.Source
IOResources.asContentSource
(Resource resource, ByteBufferPool bufferPool, int bufferSize, boolean direct) Gets aContent.Source
with the contents of a resource.static Content.Source
IOResources.asContentSource
(Resource resource, ByteBufferPool bufferPool, int bufferSize, boolean direct, long first, long length) Gets aContent.Source
with a range of the contents of a resource.static InputStream
IOResources.asInputStream
(Resource resource) Gets anInputStream
with the contents of a resource.static void
IOResources.copy
(Resource resource, Content.Sink sink, ByteBufferPool bufferPool, int bufferSize, boolean direct, long first, long length, Callback callback) Performs an asynchronous copy of a subset of the contents of a resource to a sink, using the given buffer pool and buffer characteristics.static void
IOResources.copy
(Resource resource, Content.Sink sink, ByteBufferPool bufferPool, int bufferSize, boolean direct, Callback callback) Performs an asynchronous copy of the contents of a resource to a sink, using the given buffer pool and buffer characteristics.static RetainableByteBuffer
IOResources.toRetainableByteBuffer
(Resource resource, ByteBufferPool bufferPool, boolean direct) Reads the contents of a Resource into a RetainableByteBuffer. -
Uses of Resource in org.eclipse.jetty.osgi
-
Uses of Resource in org.eclipse.jetty.security
Modifier and TypeMethodDescriptionHashLoginService.getConfig()
PropertyUserStore.getConfig()
Get the config (as a string)PropertyUserStore.getConfigResource()
Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionvoid
Load users from properties file.void
Set the Config Path from a String reference to a file -
Uses of Resource in org.eclipse.jetty.server
Modifier and TypeMethodDescriptionAllowedResourceAliasChecker.getBaseResource()
Context.getBaseResource()
Server.getDefaultFavicon()
Get the default FaviconServer.getDefaultStyleSheet()
Get the Default CSSModifier and TypeMethodDescriptionprotected boolean
boolean
AliasCheck.checkAlias
(String pathInContext, Resource resource) Check if an alias is allowed to be served.boolean
AllowedResourceAliasChecker.checkAlias
(String pathInContext, Resource resource) boolean
TrailingSlashAliasChecker.checkAlias
(String pathInContext, Resource resource) static String
ResourceListing.getAsXHTML
(Resource resource, String base, boolean parent, String query) Convert the Resource directory into an XHTML directory listing.protected Path
Deprecated.ModifierConstructorDescriptionAllowedResourceAliasChecker
(ContextHandler contextHandler, Resource baseResource) SymlinkAllowedResourceAliasChecker
(ContextHandler contextHandler, Resource baseResource) ModifierConstructorDescriptionAllowedResourceAliasChecker
(ContextHandler contextHandler, Supplier<Resource> resourceBaseSupplier) -
Uses of Resource in org.eclipse.jetty.server.handler
Modifier and TypeMethodDescriptionContextHandler.getBaseResource()
ContextHandler.ScopedContext.getBaseResource()
ResourceHandler.getBaseResource()
protected Resource
ContextHandler.getResourceForTempDirName()
ResourceHandler.getStyleSheet()
Modifier and TypeMethodDescriptionboolean
ContextHandler.checkAlias
(String pathInContext, Resource resource) protected static String
ContextHandler.getBaseName
(Resource resource) void
ContextHandler.setBaseResource
(Resource resourceBase) Set the base resource to serve content from for this context, which must exist and be readable when the context is started.void
ResourceHandler.setBaseResource
(Resource base) void
ResourceHandler.setStyleSheet
(Resource styleSheet) -
Uses of Resource in org.eclipse.jetty.util
Modifier and TypeMethodDescriptionstatic ByteBuffer
static ByteBuffer
BufferUtil.toMappedBuffer
(Resource resource) static ByteBuffer
BufferUtil.toMappedBuffer
(Resource resource, long pos, long len) -
Uses of Resource in org.eclipse.jetty.util.resource
Modifier and TypeClassDescriptionclass
class
An in memory Resource created from aURL
class
Java NIO Path Resource with file system pooling.class
Java NIO Path Resource.Modifier and TypeMethodDescriptionstatic Resource
Make a directory Resource containing a collection of other directoryResource
sstatic Resource
Make a directory Resource containing a collection of directoryResource
sdefault Resource
ResourceFactory.newClassLoaderResource
(String resource) Construct a Resource from a search of ClassLoaders.default Resource
ResourceFactory.newClassLoaderResource
(String resource, boolean searchSystemClassLoader) Construct a Resource from a search of ClassLoaders.default Resource
ResourceFactory.newClassPathResource
(String resource) Deprecated, for removal: This API element is subject to removal in a future version.useResourceFactory.newClassLoaderResource(String, boolean)
instead, will be removed in Jetty 12.1.0default Resource
ResourceFactory.newJarFileResource
(URI uri) Construct aResource
from afile:
based URI that is mountable (eg: a jar file).default Resource
ResourceFactory.newMemoryResource
(URL url) Load a URL into a memory resource.protected Resource
MountedPathResource.newResource
(Path path, URI uri) MountedPathResourceFactory.newResource
(URI uri) protected Resource
PathResource.newResource
(Path path, URI uri) Internal override for creating a new PathResource.PathResourceFactory.newResource
(URI uri) default Resource
ResourceFactory.newResource
(String resource) Construct a resource from a string.ResourceFactory.newResource
(URI uri) Construct a resource from a uri.default Resource
ResourceFactory.newResource
(URL url) Construct aResource
from a provided URL.default Resource
ResourceFactory.newResource
(Path path) Construct a Resource from provided path.default Resource
ResourceFactory.newResource
(List<URI> uris) Construct a possible combinedResource
from a list of URIs.URLResourceFactory.newResource
(URI uri) default Resource
ResourceFactory.newSystemResource
(String resource) Deprecated, for removal: This API element is subject to removal in a future version.useResourceFactory.newClassLoaderResource(String)
orResourceFactory.newClassLoaderResource(String, boolean)
instead, will be removed in Jetty 12.1.0Resolves a path against the resource collection.abstract Resource
Resolve an existing Resource.FileSystemPool.Mount.root()
Modifier and TypeMethodDescriptionstatic Comparator<? super Resource>
ResourceCollators.byFileName
(boolean sortOrderAscending) static Comparator<? super Resource>
ResourceCollators.byLastModified
(boolean sortOrderAscending) static Comparator<? super Resource>
ResourceCollators.byName
(boolean sortOrderAscending) static Comparator<? super Resource>
ResourceCollators.bySize
(boolean sortOrderAscending) MemoryResource.getAllResources()
Resource.getAllResources()
Get a deep collection of contained resources.CombinedResource.getResources()
Retrieves the resource collection's resources.CombinedResource.iterator()
Resource.iterator()
Return an Iterator of all Resource's referenced in this Resource.CombinedResource.list()
MemoryResource.list()
PathResource.list()
Resource.list()
List of contents of a directoryResource
.Split a string of references by provided delims into a List ofResource
.Modifier and TypeMethodDescriptionstatic Resource
Make a directory Resource containing a collection of directoryResource
sboolean
boolean
boolean
Return true if this resource deeply contains the other Resource.static String
static boolean
True if the resource exists.Get the relative path from this Resource to a possibly contained resource.static boolean
Resources.isCombined
(Resource resource) True if the resource has been created bycombining
other resources.boolean
MemoryResource.isContainedIn
(Resource container) boolean
MountedPathResource.isContainedIn
(Resource container) boolean
Resource.isContainedIn
(Resource container) Return true if this resource is contained in the Resource r, either because r is a folder or a jar file or any form of resource capable of containing other resources.static boolean
Resources.isDirectory
(Resource resource) True if resource is a valid directory.static boolean
Resources.isReadable
(Resource resource) True if resource is readable.static boolean
Resources.isReadableDirectory
(Resource resource) True if resource is a valid directory that can be read from.static boolean
Resources.isReadableFile
(Resource resource) True if resource exists, is not a directory, is readable.static boolean
True if the resource is missing.static ResourceFactory
Deprecated, for removal: This API element is subject to removal in a future version.Useresolve(String)
boolean
-
Uses of Resource in org.eclipse.jetty.util.security
-
Uses of Resource in org.eclipse.jetty.util.ssl
Modifier and TypeMethodDescriptionSslContextFactory.getKeyStoreResource()
SslContextFactory.getTrustStoreResource()
Modifier and TypeMethodDescriptionprotected KeyStore
SslContextFactory.loadKeyStore
(Resource resource) Override this method to provide alternate way to load a keystore.protected KeyStore
SslContextFactory.loadTrustStore
(Resource resource) Override this method to provide alternate way to load a truststore.void
SslContextFactory.setKeyStoreResource
(Resource resource) Set the key store resource.void
SslContextFactory.setTrustStoreResource
(Resource resource) Set the trust store resource. -
Uses of Resource in org.eclipse.jetty.xml
Modifier and TypeMethodDescriptionvoid
ConfigurationProcessor.init
(Resource resource, XmlParser.Node root, XmlConfiguration configuration) Initialize a ConfigurationProcessor from provided Resource and XMLModifierConstructorDescriptionXmlConfiguration
(Resource resource) Reads and parses the XML configuration file.Reads and parses the XML configuration file.