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 Resource
AnnotationConfiguration.ParserTask._resource
Fields in org.eclipse.jetty.annotations with type parameters of type ResourceModifier and TypeFieldDescriptionAnnotationParser._parsedClassNames
Map 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
(javax.servlet.ServletContainerInitializer service) AnnotationConfiguration.ParserTask.getResource()
Methods in org.eclipse.jetty.annotations with parameters of type ResourceModifier and TypeMethodDescriptionvoid
AnnotationParser.addParsedClass
(String classname, Resource location) Add a class as having been parsed.boolean
AnnotationConfiguration.isFromExcludedJar
(WebAppContext context, javax.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.parseDir
(Set<? extends AnnotationParser.Handler> handlers, Resource root) Parse all classes in a directoryprotected void
AnnotationParser.parseJar
(Set<? extends AnnotationParser.Handler> handlers, Resource jarResource) Parse a resource that is a jar file.protected void
AnnotationParser.parseJarEntry
(Set<? extends AnnotationParser.Handler> handlers, Resource jar, MultiReleaseJarFile.VersionedJarEntry entry) Parse a single entry in a jar fileprotected void
AnnotationParser.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 TypeMethodDescriptionvoid
DeploymentManager.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 TypeMethodDescriptionvoid
ScanningAppProvider.setMonitoredDirResource
(Resource resource) Method parameters in org.eclipse.jetty.deploy.providers with type arguments of type ResourceModifier and TypeMethodDescriptionvoid
ScanningAppProvider.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
(javax.servlet.ServletContainerInitializer service) protected Resource
AnnotationParser.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.Bundle
Constructors 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 Resource
AbstractOSGiApp.findFile
(String fileName, String jettyHome, String bundleOverrideLocation, org.osgi.framework.Bundle containingBundle) protected Resource
AbstractOSGiApp.getFileAsResource
(String file) protected Resource
AbstractOSGiApp.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 void
AbstractWebAppProvider.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 Resource
QuickStartGeneratorConfiguration._quickStartWebXml
Methods 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 void
PreconfigureQuickStartWar.preconfigure
(Resource war, Resource dir, Resource xml) void
QuickStartGeneratorConfiguration.setQuickStartWebXml
(Resource quickStartWebXml) void
QuickStartDescriptorProcessor.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 TypeMethodDescriptionboolean
boolean
Deprecated.protected ByteBuffer
CachedContentFactory.getDirectBuffer
(Resource resource) protected ByteBuffer
CachedContentFactory.getIndirectBuffer
(Resource resource) protected ByteBuffer
CachedContentFactory.getMappedBuffer
(Resource resource) protected Path
protected boolean
CachedContentFactory.isCacheable
(Resource resource) protected void
ResourceService.sendDirectory
(javax.servlet.http.HttpServletRequest request, javax.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 Resource
ResourceHandler.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 TypeMethodDescriptionboolean
Deprecated.boolean
Check an aliasboolean
Deprecated.boolean
Deprecated.boolean
ContextHandler.checkAlias
(String path, Resource resource) void
ContextHandler.setBaseResource
(Resource base) Set the base resource for this context.void
ResourceHandler.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 TypeClassDescriptionclass
EmptyResource Represents a resource that does does not refer to any file, url, jar etc.class
class
class
Java NIO Path Resource.class
A collection of resources (dirs).class
URL resource class.Fields in org.eclipse.jetty.util.resource declared as ResourceMethods in org.eclipse.jetty.util.resource that return ResourceModifier and TypeMethodDescriptionabstract Resource
Returns 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 Resource
Resource.newClassPathResource
(String resource) Find a classpath resource.static Resource
Resource.newClassPathResource
(String name, boolean useCaches, boolean checkParents) Find a classpath resource.static Resource
JarResource.newJarResource
(Resource resource) static Resource
Resource.newResource
(File file) static Resource
Resource.newResource
(String resource) Construct a resource from a string.static Resource
Resource.newResource
(String resource, boolean useCaches) Construct a resource from a string.static Resource
Resource.newResource
(URI uri) Construct a resource from a uri.static Resource
Resource.newResource
(URL url) Construct a resource from a url.static Resource
Resource.newResource
(Path path) Construct a Resource from provided pathstatic Resource
Resource.newSystemResource
(String resource) Construct a system resource from a string.static Resource
Resource.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 TypeMethodDescriptionboolean
EmptyResource.isContainedIn
(Resource r) boolean
JarFileResource.isContainedIn
(Resource resource) Check if this jar:file: resource is contained in the named resource.boolean
PathResource.isContainedIn
(Resource r) abstract boolean
Resource.isContainedIn
(Resource r) static boolean
Resource.isContainedIn
(Resource r, Resource containingResource) boolean
ResourceCollection.isContainedIn
(Resource r) boolean
URLResource.isContainedIn
(Resource containingResource) boolean
boolean
Return true if the passed Resource represents the same resource as the Resource.static Resource
JarResource.newJarResource
(Resource resource) boolean
boolean
abstract boolean
Rename the given resourceboolean
boolean
Rename the given resourcestatic Resource
Resource.resolveAlias
(Resource resource) Attempt to resolve the real path of a Resource to potentially remove any symlinks causing the Resource to be an alias.void
ResourceCollection.setResources
(Resource[] resources) Sets the resource collection's resources.Method parameters in org.eclipse.jetty.util.resource with type arguments of type ResourceModifier and TypeMethodDescriptionvoid
ResourceCollection.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 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.webapp
Fields in org.eclipse.jetty.webapp declared as ResourceModifier and TypeFieldDescriptionprotected Resource
WebInfConfiguration._preUnpackBaseResource
protected Resource
DiscoveredAnnotation._resource
protected Resource
Descriptor._xml
static final Resource
MetaData.NON_FRAG_RESOURCE
Fields in org.eclipse.jetty.webapp with type parameters of type ResourceModifier and TypeFieldDescriptionprotected final Map<Resource,
List<DiscoveredAnnotation>> MetaData._annotations
MetaData._orderedContainerResources
MetaData._orderedWebInfResources
protected final Map<Resource,
FragmentDescriptor> MetaData._webFragmentResourceMap
MetaData._webInfClasses
MetaData._webInfJars
Methods in org.eclipse.jetty.webapp that return ResourceModifier 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) 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/lib
MetaData.getContainerResources()
WebAppClassLoader.Context.getExtraClasspath()
WebAppContext.getExtraClasspath()
MetaData.getWebInfClassesResources()
MetaData.getWebInfResources
(boolean withOrdering) Methods in org.eclipse.jetty.webapp with parameters of type ResourceModifier 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) void
MetaInfConfiguration.scanForFragment
(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given jar.void
MetaInfConfiguration.scanForResources
(WebAppContext context, Resource target, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given jar.void
MetaInfConfiguration.scanForTlds
(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Collection<URL>> cache) Discover META-INF/*.tld files in the given jarvoid
WebAppContext.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 TypeMethodDescriptionvoid
MetaInfConfiguration.scanForFragment
(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given jar.void
MetaInfConfiguration.scanForFragment
(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given jar.void
MetaInfConfiguration.scanForResources
(WebAppContext context, Resource target, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given jar.void
MetaInfConfiguration.scanForResources
(WebAppContext context, Resource target, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given jar.void
MetaInfConfiguration.scanForTlds
(WebAppContext context, Resource jar, ConcurrentHashMap<Resource, Collection<URL>> cache) Discover META-INF/*.tld files in the given jarvoid
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) 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 TypeMethodDescriptionvoid
ConfigurationProcessor.init
(Resource resource, XmlParser.Node root, XmlConfiguration configuration) Initialize a ConfigurationProcessor from provided Resource and XMLvoid
XmlConfiguration.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.