Uses of Class
org.eclipse.jetty.util.resource.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
Modifier and TypeFieldDescriptionprotected final Resource
AnnotationConfiguration.ParserTask._resource
Modifier and TypeFieldDescriptionAnnotationParser._parsedClassNames
Map of classnames scanned and the first location from which scan occurredModifier and TypeMethodDescriptionAnnotationParser.ClassInfo.getContainingResource()
AnnotationConfiguration.getJarFor
(javax.servlet.ServletContainerInitializer service) AnnotationConfiguration.ParserTask.getResource()
Modifier 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 classModifierConstructorDescriptionClassInfo
(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
Modifier and TypeMethodDescriptionvoid
DeploymentManager.scope
(XmlConfiguration xmlc, Resource webapp) -
Uses of Resource in org.eclipse.jetty.deploy.providers
Modifier and TypeMethodDescriptionvoid
ScanningAppProvider.setMonitoredDirResource
(Resource resource) Modifier and TypeMethodDescriptionvoid
ScanningAppProvider.setMonitoredResources
(List<Resource> resources) -
Uses of Resource in org.eclipse.jetty.http
Modifier and TypeMethodDescriptionHttpContent.getResource()
PrecompressedHttpContent.getResource()
ResourceHttpContent.getResource()
ModifierConstructorDescriptionResourceHttpContent
(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
Modifier 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.Modifier and TypeMethodDescriptionprotected org.osgi.framework.Bundle
ModifierConstructorDescriptionBundleParserTask
(AnnotationParser parser, Set<? extends AnnotationParser.Handler> handlers, Resource resource) -
Uses of Resource in org.eclipse.jetty.osgi.boot
Modifier 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) Modifier and TypeMethodDescriptionOSGiMetaInfConfiguration.findJars
(WebAppContext context) Consider the fragment bundles associated with the bundle of the webapp being deployed.Modifier and TypeMethodDescriptionprotected void
AbstractWebAppProvider.OSGiApp.applyMetaInfContextXml
(Resource rootResource, String overrideBundleInstallLocation) -
Uses of Resource in org.eclipse.jetty.osgi.boot.internal.serverfactory
-
Uses of Resource in org.eclipse.jetty.plus.webapp
-
Uses of Resource in org.eclipse.jetty.quickstart
Modifier and TypeFieldDescriptionprotected Resource
QuickStartGeneratorConfiguration._quickStartWebXml
Modifier and TypeMethodDescriptionQuickStartConfiguration.getQuickStartWebXml
(WebAppContext context) Get the quickstart-web.xml file as a Resource.QuickStartGeneratorConfiguration.getQuickStartWebXml()
Modifier and TypeMethodDescriptionstatic void
PreconfigureQuickStartWar.preconfigure
(Resource war, Resource dir, Resource xml) void
QuickStartGeneratorConfiguration.setQuickStartWebXml
(Resource quickStartWebXml) void
QuickStartDescriptorProcessor.visitMetaInfResource
(WebAppContext context, Resource dir) -
Uses of Resource in org.eclipse.jetty.runner
-
Uses of Resource in org.eclipse.jetty.security
-
Uses of Resource in org.eclipse.jetty.server
Modifier 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) 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()
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.Modifier 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
Modifier and TypeMethodDescriptionServletTester.getBaseResource()
DefaultServlet.getResource
(String pathInContext) get Resource to serve. -
Uses of Resource in org.eclipse.jetty.util
-
Uses of Resource in org.eclipse.jetty.util.resource
Modifier 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.Modifier 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.Modifier 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.Modifier 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.Modifier and TypeMethodDescriptionvoid
ResourceCollection.setResources
(List<Resource> res) Sets the resource collection's resources.ModifierConstructorDescriptionResourceCollection
(Resource... resources) Instantiates a new resource collection.ModifierConstructorDescriptionResourceCollection
(Collection<Resource> resources) Instantiates a new resource collection. -
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.webapp
Modifier and TypeFieldDescriptionprotected Resource
WebInfConfiguration._preUnpackBaseResource
protected Resource
DiscoveredAnnotation._resource
protected Resource
Descriptor._xml
static final Resource
MetaData.NON_FRAG_RESOURCE
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) 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) 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
.Modifier 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) ModifierConstructorDescriptionDescriptor
(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
Modifier 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.uriModifierConstructorDescriptionXmlConfiguration
(Resource resource) Reads and parses the XML configuration file.