Uses of Class
org.eclipse.jetty.util.resource.Resource
Packages that use Resource
Package
Description
Jetty Http : Tools for Http processing
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.http
Fields in org.eclipse.jetty.http declared as ResourceMethods 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.security
Methods in org.eclipse.jetty.security that return ResourceModifier and TypeMethodDescriptionHashLoginService.getConfigResource()
Deprecated.PropertyUserStore.getConfigResource()
-
Uses of Resource in org.eclipse.jetty.server
Fields in org.eclipse.jetty.server declared as ResourceModifier and TypeFieldDescriptionprivate final Resource
CachedContentFactory.CachedHttpContent._resource
Methods in org.eclipse.jetty.server that return ResourceMethods in org.eclipse.jetty.server with parameters of type ResourceModifier and TypeMethodDescriptionboolean
protected ByteBuffer
CachedContentFactory.getDirectBuffer
(Resource resource) protected ByteBuffer
CachedContentFactory.getIndirectBuffer
(Resource resource) protected ByteBuffer
CachedContentFactory.getMappedBuffer
(Resource resource) protected boolean
CachedContentFactory.isCacheable
(Resource resource) private HttpContent
private HttpContent
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 ResourceModifierConstructorDescription(package private)
CachedHttpContent
(String pathInContext, Resource resource, Map<CompressedContentFormat, CachedContentFactory.CachedHttpContent> precompressedResources) -
Uses of Resource in org.eclipse.jetty.server.handler
Fields in org.eclipse.jetty.server.handler declared as ResourceModifier and TypeFieldDescriptionprivate Resource
ContextHandler._baseResource
(package private) Resource
ResourceHandler._baseResource
(package private) Resource
ResourceHandler._defaultStylesheet
(package private) Resource
ResourceHandler._stylesheet
Methods in org.eclipse.jetty.server.handler that return ResourceModifier and TypeMethodDescriptionContextHandler.getBaseResource()
ResourceHandler.getBaseResource()
static Resource
ResourceHandler.getDefaultStylesheet()
ContextHandler.getResource
(String path) 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
boolean
Check an aliasboolean
boolean
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
Fields in org.eclipse.jetty.servlet declared as ResourceModifier and TypeFieldDescriptionprivate Resource
DefaultServlet._resourceBase
private Resource
DefaultServlet._stylesheet
Methods in org.eclipse.jetty.servlet that return ResourceModifier and TypeMethodDescriptionDefaultServlet.getResource
(String pathInContext) get Resource to serve. -
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 TypeClassDescription(package private) class
Bad Resource.class
EmptyResource Represents a resource that does does not refer to any file, url, jar etc.class
Deprecated.class
class
class
Java NIO Path equivalent of FileResource.class
A collection of resources (dirs).class
URL resource class.Fields in org.eclipse.jetty.util.resource declared as ResourceModifier and TypeFieldDescriptionprivate Resource[]
ResourceCollection._resources
static final Resource
EmptyResource.INSTANCE
Fields in org.eclipse.jetty.util.resource with type parameters of type ResourceModifier and TypeFieldDescriptionprivate static Comparator<? super Resource>
ResourceCollators.BY_LAST_MODIFIED_ASCENDING
private static Comparator<? super Resource>
ResourceCollators.BY_LAST_MODIFIED_DESCENDING
private static Comparator<? super Resource>
ResourceCollators.BY_NAME_ASCENDING
private static Comparator<? super Resource>
ResourceCollators.BY_NAME_DESCENDING
private static Comparator<? super Resource>
ResourceCollators.BY_SIZE_ASCENDING
private static Comparator<? super Resource>
ResourceCollators.BY_SIZE_DESCENDING
Methods in org.eclipse.jetty.util.resource that return ResourceModifier and TypeMethodDescriptionDeprecated.abstract Resource
Returns the resource contained inside the current resource with the given name.Returns the resource contained inside the current resource with the given namestatic Resource
JarFileResource.getNonCachingResource
(Resource resource) Take a Resource that possibly might use URLConnection caching and turn it into one that doesn't.Resource.getResource
(String path) Get a resource from within this resource.ResourceFactory.getResource
(String path) Get a resource for a path.Resource[]
ResourceCollection.getResources()
Retrieves the resource collection's resources.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.(package private) static Resource
Resource.newResource
(URL url, boolean useCaches) 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.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) Resource.getAllResources()
Methods in org.eclipse.jetty.util.resource with parameters of type ResourceModifier and TypeMethodDescriptionprivate void
ResourceCollection.assertResourceValid
(Resource resource) static Resource
JarFileResource.getNonCachingResource
(Resource resource) Take a Resource that possibly might use URLConnection caching and turn it into one that doesn't.boolean
EmptyResource.isContainedIn
(Resource r) boolean
FileResource.isContainedIn
(Resource r) Deprecated.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
Deprecated.boolean
boolean
Return true if the passed Resource represents the same resource as the Resource.static Resource
JarResource.newJarResource
(Resource resource) boolean
boolean
boolean
Deprecated.Rename the given resourceboolean
abstract boolean
Rename the given resourceboolean
boolean
Rename the given resourcevoid
ResourceCollection.setResources
(Resource[] resources) 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. -
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
Fields in org.eclipse.jetty.util.ssl declared as ResourceModifier and TypeFieldDescriptionprivate Resource
SslContextFactory._keyStoreResource
private Resource
SslContextFactory._trustStoreResource
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
WebInfConfiguration.findWebInfClassesDir
(WebAppContext context) GetWEB-INF/classes
dirprotected Resource
WebXmlConfiguration.findWebXml
(WebAppContext context) MetaData.getJarForFragment
(String name) Descriptor.getResource()
DiscoveredAnnotation.getResource()
WebAppContext.getResource
(String uriInContext) 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 TypeMethodDescriptionWebInfConfiguration.findClassDirs
(WebAppContext context) WebInfConfiguration.findExtraClasspathDirs
(WebAppContext context) Get class dirs from WebAppContext.getExtraClasspath as resourcesWebInfConfiguration.findExtraClasspathJars
(WebAppContext context) Get jars from WebAppContext.getExtraClasspath as resourcesWebInfConfiguration.findJars
(WebAppContext context) Look for jars that should be treated as if they are in WEB-INF/libWebInfConfiguration.findWebInfLibJars
(WebAppContext context) Look for jars inWEB-INF/lib
MetaData.getContainerResources()
MetaData.getOrderedWebInfJars()
MetaData.getWebInfClassesDirs()
MetaData.getWebInfJars()
Methods in org.eclipse.jetty.webapp with parameters of type ResourceModifier and TypeMethodDescriptionvoid
WebAppClassLoader.addClassPath
(Resource resource) void
MetaData.addContainerResource
(Resource jar) void
MetaData.addFragment
(Resource jarResource, Resource xmlResource) Add a web-fragment.xmlvoid
Add elements to the class path for the context from the jar and zip files found in the specified resource.void
MetaData.addOverride
(Resource override) void
MetaData.addWebInfJar
(Resource newResource) MetaData.getFragment
(Resource jar) protected static String
WebInfConfiguration.getResourceBaseName
(Resource resource) private boolean
WebInfConfiguration.isFileSupported
(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
MetaData.setDefaults
(Resource webDefaults) private void
JettyWebXmlConfiguration.setupXmlConfiguration
(WebAppContext context, XmlConfiguration jettyConfig, Resource webInf) Configures some well-known properties before the XmlConfiguration reads the configuration.void
WebAppContext.setWarResource
(Resource war) Set the war of the webapp as aResource
.void
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
MetaData.setWebInfClassesDirs
(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
Fields in org.eclipse.jetty.xml declared as ResourceMethods in org.eclipse.jetty.xml with parameters of type ResourceModifier and TypeMethodDescriptiondefault void
ConfigurationProcessor.init
(Resource resource, XmlParser.Node root, XmlConfiguration configuration) Initialize a ConfigurationProcessor from provided Resource and XMLvoid
XmlConfiguration.JettyXmlConfiguration.init
(Resource resource, XmlParser.Node root, XmlConfiguration configuration) void
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.
PathResource