Uses of Class
org.eclipse.jetty.util.resource.Resource
-
Packages that use Resource Package Description org.eclipse.jetty.http Jetty Http : Tools for Http processingorg.eclipse.jetty.security Jetty Security : Modular Support for Security in Jettyorg.eclipse.jetty.server Jetty Server : Core Server APIorg.eclipse.jetty.server.handler Jetty Server : Core Handler APIorg.eclipse.jetty.servlet Jetty Server : Modular Servlet Integrationorg.eclipse.jetty.util Jetty Util : Common Utility Classesorg.eclipse.jetty.util.resource Jetty Util : Common Resource Utilitiesorg.eclipse.jetty.util.security Jetty Util : Common Security Utilitiesorg.eclipse.jetty.util.ssl Jetty Util : Common SSL Utility Classesorg.eclipse.jetty.webapp Jetty Util : Modular Web Application Supportorg.eclipse.jetty.xml Jetty Xml : IoC Mechanism for Jetty Configuration -
-
Uses of Resource in org.eclipse.jetty.http
Fields in org.eclipse.jetty.http declared as Resource Modifier and Type Field Description (package private) Resource
ResourceHttpContent. _resource
Methods in org.eclipse.jetty.http that return Resource Modifier and Type Method Description Resource
HttpContent. getResource()
Resource
PrecompressedHttpContent. getResource()
Resource
ResourceHttpContent. getResource()
Constructors in org.eclipse.jetty.http with parameters of type Resource Constructor Description ResourceHttpContent(Resource resource, java.lang.String contentType)
ResourceHttpContent(Resource resource, java.lang.String contentType, int maxBuffer)
ResourceHttpContent(Resource resource, java.lang.String contentType, int maxBuffer, java.util.Map<CompressedContentFormat,HttpContent> precompressedContents)
-
Uses of Resource in org.eclipse.jetty.security
Methods in org.eclipse.jetty.security that return Resource Modifier and Type Method Description Resource
HashLoginService. getConfigResource()
Deprecated.Resource
PropertyUserStore. getConfigResource()
-
Uses of Resource in org.eclipse.jetty.server
Fields in org.eclipse.jetty.server declared as Resource Modifier and Type Field Description private Resource
CachedContentFactory.CachedHttpContent. _resource
Methods in org.eclipse.jetty.server that return Resource Modifier and Type Method Description Resource
CachedContentFactory.CachedHttpContent. getResource()
Methods in org.eclipse.jetty.server with parameters of type Resource Modifier and Type Method Description boolean
SameFileAliasChecker. check(java.lang.String uri, Resource resource)
protected java.nio.ByteBuffer
CachedContentFactory. getDirectBuffer(Resource resource)
protected java.nio.ByteBuffer
CachedContentFactory. getIndirectBuffer(Resource resource)
protected java.nio.ByteBuffer
CachedContentFactory. getMappedBuffer(Resource resource)
protected boolean
CachedContentFactory. isCacheable(Resource resource)
private HttpContent
CachedContentFactory. load(java.lang.String pathInContext, Resource resource, int maxBufferSize)
private HttpContent
ResourceContentFactory. load(java.lang.String pathInContext, Resource resource, int maxBufferSize)
protected void
ResourceService. sendDirectory(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Resource resource, java.lang.String pathInContext)
Constructors in org.eclipse.jetty.server with parameters of type Resource Constructor Description CachedHttpContent(java.lang.String pathInContext, Resource resource, java.util.Map<CompressedContentFormat,CachedContentFactory.CachedHttpContent> precompressedResources)
-
Uses of Resource in org.eclipse.jetty.server.handler
Fields in org.eclipse.jetty.server.handler declared as Resource Modifier and Type Field Description private 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 Resource Modifier and Type Method Description Resource
ContextHandler. getBaseResource()
Resource
ResourceHandler. getBaseResource()
static Resource
ResourceHandler. getDefaultStylesheet()
Resource
ContextHandler. getResource(java.lang.String path)
Resource
ResourceHandler. getResource(java.lang.String path)
Resource
ResourceHandler. getStylesheet()
Resource
ContextHandler. newResource(java.lang.String urlOrPath)
Convert a URL or path to a Resource.Resource
ContextHandler. newResource(java.net.URI uri)
Convert URL to Resource wrapper fornewResource(URL)
enables extensions to provide alternate resource implementations.Resource
ContextHandler. newResource(java.net.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 Resource Modifier and Type Method Description boolean
AllowSymLinkAliasChecker. check(java.lang.String uri, Resource resource)
boolean
ContextHandler.AliasCheck. check(java.lang.String path, Resource resource)
Check an aliasboolean
ContextHandler.ApproveAliases. check(java.lang.String path, Resource resource)
boolean
ContextHandler.ApproveNonExistentDirectoryAliases. check(java.lang.String path, Resource resource)
boolean
ContextHandler. checkAlias(java.lang.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 Resource Modifier and Type Field Description private Resource
DefaultServlet. _resourceBase
private Resource
DefaultServlet. _stylesheet
Methods in org.eclipse.jetty.servlet that return Resource Modifier and Type Method Description Resource
DefaultServlet. getResource(java.lang.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 Modifier and Type Method Description static java.nio.ByteBuffer
BufferUtil. toBuffer(Resource resource, boolean direct)
-
Uses of Resource in org.eclipse.jetty.util.resource
Subclasses of Resource in org.eclipse.jetty.util.resource Modifier and Type Class Description (package private) class
BadResource
Bad Resource.class
EmptyResource
EmptyResource Represents a resource that does does not refer to any file, url, jar etc.class
FileResource
Deprecated.UsePathResource
class
JarFileResource
class
JarResource
class
PathResource
Java NIO Path equivalent of FileResource.class
ResourceCollection
A collection of resources (dirs).class
URLResource
URL resource class.Fields in org.eclipse.jetty.util.resource declared as Resource Modifier and Type Field Description private Resource[]
ResourceCollection. _resources
static Resource
EmptyResource. INSTANCE
Fields in org.eclipse.jetty.util.resource with type parameters of type Resource Modifier and Type Field Description private static java.util.Comparator<? super Resource>
ResourceCollators. BY_LAST_MODIFIED_ASCENDING
private static java.util.Comparator<? super Resource>
ResourceCollators. BY_LAST_MODIFIED_DESCENDING
private static java.util.Comparator<? super Resource>
ResourceCollators. BY_NAME_ASCENDING
private static java.util.Comparator<? super Resource>
ResourceCollators. BY_NAME_DESCENDING
private static java.util.Comparator<? super Resource>
ResourceCollators. BY_SIZE_ASCENDING
private static java.util.Comparator<? super Resource>
ResourceCollators. BY_SIZE_DESCENDING
Methods in org.eclipse.jetty.util.resource that return Resource Modifier and Type Method Description Resource
EmptyResource. addPath(java.lang.String path)
Resource
FileResource. addPath(java.lang.String path)
Deprecated.Resource
PathResource. addPath(java.lang.String subPath)
abstract Resource
Resource. addPath(java.lang.String path)
Returns the resource contained inside the current resource with the given name.Resource
ResourceCollection. addPath(java.lang.String path)
Resource
URLResource. addPath(java.lang.String path)
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
Resource. getResource(java.lang.String path)
Get a resource from within this resource.Resource
ResourceFactory. getResource(java.lang.String path)
Get a resource for a path.Resource[]
ResourceCollection. getResources()
Retrieves the resource collection's resources.static Resource
Resource. newClassPathResource(java.lang.String resource)
Find a classpath resource.static Resource
Resource. newClassPathResource(java.lang.String name, boolean useCaches, boolean checkParents)
Find a classpath resource.static Resource
JarResource. newJarResource(Resource resource)
static Resource
Resource. newResource(java.io.File file)
static Resource
Resource. newResource(java.lang.String resource)
Construct a resource from a string.static Resource
Resource. newResource(java.lang.String resource, boolean useCaches)
Construct a resource from a string.static Resource
Resource. newResource(java.net.URI uri)
Construct a resource from a uri.static Resource
Resource. newResource(java.net.URL url)
Construct a resource from a url.(package private) static Resource
Resource. newResource(java.net.URL url, boolean useCaches)
Construct a resource from a url.static Resource
Resource. newResource(java.nio.file.Path path)
Construct a Resource from provided pathstatic Resource
Resource. newSystemResource(java.lang.String resource)
Construct a system resource from a string.Methods in org.eclipse.jetty.util.resource that return types with arguments of type Resource Modifier and Type Method Description static java.util.Comparator<? super Resource>
ResourceCollators. byLastModified(boolean sortOrderAscending)
static java.util.Comparator<? super Resource>
ResourceCollators. byName(boolean sortOrderAscending)
static java.util.Comparator<? super Resource>
ResourceCollators. bySize(boolean sortOrderAscending)
java.util.Collection<Resource>
Resource. getAllResources()
Methods in org.eclipse.jetty.util.resource with parameters of type Resource Modifier and Type Method Description private 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
FileResource. isSame(Resource resource)
Deprecated.boolean
PathResource. isSame(Resource resource)
boolean
Resource. isSame(Resource resource)
Return true if the passed Resource represents the same resource as the Resource.static Resource
JarResource. newJarResource(Resource resource)
boolean
BadResource. renameTo(Resource dest)
boolean
EmptyResource. renameTo(Resource dest)
boolean
FileResource. renameTo(Resource dest)
Deprecated.Rename the given resourceboolean
PathResource. renameTo(Resource dest)
abstract boolean
Resource. renameTo(Resource dest)
Rename the given resourceboolean
ResourceCollection. renameTo(Resource dest)
boolean
URLResource. renameTo(Resource dest)
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 Resource Constructor Description ResourceCollection(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 Modifier and Type Method Description static java.security.KeyStore
CertificateUtils. getKeyStore(Resource store, java.lang.String storeType, java.lang.String storeProvider, java.lang.String storePassword)
-
Uses of Resource in org.eclipse.jetty.util.ssl
Fields in org.eclipse.jetty.util.ssl declared as Resource Modifier and Type Field Description private Resource
SslContextFactory. _keyStoreResource
private Resource
SslContextFactory. _trustStoreResource
Methods in org.eclipse.jetty.util.ssl that return Resource Modifier and Type Method Description Resource
SslContextFactory. getKeyStoreResource()
Resource
SslContextFactory. getTrustStoreResource()
Methods in org.eclipse.jetty.util.ssl with parameters of type Resource Modifier and Type Method Description protected java.security.KeyStore
SslContextFactory. loadKeyStore(Resource resource)
Override this method to provide alternate way to load a keystore.protected java.security.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 Resource Modifier and Type Field Description protected Resource
WebInfConfiguration. _preUnpackBaseResource
protected Resource
DiscoveredAnnotation. _resource
protected Resource
Descriptor. _xml
static Resource
MetaData. NON_FRAG_RESOURCE
Fields in org.eclipse.jetty.webapp with type parameters of type Resource Modifier and Type Field Description protected java.util.Map<Resource,java.util.List<DiscoveredAnnotation>>
MetaData. _annotations
protected java.util.List<Resource>
MetaData. _orderedContainerResources
protected java.util.List<Resource>
MetaData. _orderedWebInfResources
protected java.util.Map<Resource,FragmentDescriptor>
MetaData. _webFragmentResourceMap
protected java.util.List<Resource>
MetaData. _webInfClasses
protected java.util.List<Resource>
MetaData. _webInfJars
Methods in org.eclipse.jetty.webapp that return Resource Modifier and Type Method Description protected Resource
WebInfConfiguration. findWebInfClassesDir(WebAppContext context)
GetWEB-INF/classes
dirprotected Resource
WebXmlConfiguration. findWebXml(WebAppContext context)
Resource
MetaData. getJarForFragment(java.lang.String name)
Resource
Descriptor. getResource()
Resource
DiscoveredAnnotation. getResource()
Resource
WebAppContext. getResource(java.lang.String uriInContext)
Resource
WebAppContext. getWebInf()
Resource
WebAppClassLoader.Context. newResource(java.lang.String urlOrPath)
Convert a URL or path to a Resource.Methods in org.eclipse.jetty.webapp that return types with arguments of type Resource Modifier and Type Method Description protected java.util.List<Resource>
WebInfConfiguration. findClassDirs(WebAppContext context)
protected java.util.List<Resource>
WebInfConfiguration. findExtraClasspathDirs(WebAppContext context)
Get class dirs from WebAppContext.getExtraClasspath as resourcesprotected java.util.List<Resource>
WebInfConfiguration. findExtraClasspathJars(WebAppContext context)
Get jars from WebAppContext.getExtraClasspath as resourcesprotected java.util.List<Resource>
WebInfConfiguration. findJars(WebAppContext context)
Look for jars that should be treated as if they are in WEB-INF/libprotected java.util.List<Resource>
WebInfConfiguration. findWebInfLibJars(WebAppContext context)
Look for jars inWEB-INF/lib
java.util.List<Resource>
MetaData. getContainerResources()
java.util.List<Resource>
MetaData. getOrderedWebInfJars()
java.util.List<Resource>
MetaData. getWebInfClassesDirs()
java.util.List<Resource>
MetaData. getWebInfJars()
java.util.List<Resource>
AbsoluteOrdering. order(java.util.List<Resource> jars)
java.util.List<Resource>
Ordering. order(java.util.List<Resource> fragments)
java.util.List<Resource>
RelativeOrdering. order(java.util.List<Resource> jars)
Methods in org.eclipse.jetty.webapp with parameters of type Resource Modifier and Type Method Description void
WebAppClassLoader. addClassPath(Resource resource)
void
MetaData. addContainerResource(Resource jar)
void
MetaData. addFragment(Resource jarResource, Resource xmlResource)
Add a web-fragment.xmlvoid
WebAppClassLoader. addJars(Resource lib)
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)
FragmentDescriptor
MetaData. getFragment(Resource jar)
protected static java.lang.String
WebInfConfiguration. getResourceBaseName(Resource resource)
private boolean
WebInfConfiguration. isFileSupported(Resource resource)
void
MetaInfConfiguration. scanForFragment(WebAppContext context, Resource jar, java.util.concurrent.ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/web-fragment.xml file in the given jar.void
MetaInfConfiguration. scanForResources(WebAppContext context, Resource target, java.util.concurrent.ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/resources dir in the given jar.void
MetaInfConfiguration. scanForTlds(WebAppContext context, Resource jar, java.util.concurrent.ConcurrentHashMap<Resource,java.util.Collection<java.net.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
MetaData. setWebXml(Resource webXml)
Method parameters in org.eclipse.jetty.webapp with type arguments of type Resource Modifier and Type Method Description java.util.List<Resource>
AbsoluteOrdering. order(java.util.List<Resource> jars)
java.util.List<Resource>
Ordering. order(java.util.List<Resource> fragments)
java.util.List<Resource>
RelativeOrdering. order(java.util.List<Resource> jars)
void
MetaInfConfiguration. scanForFragment(WebAppContext context, Resource jar, java.util.concurrent.ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/web-fragment.xml file in the given jar.void
MetaInfConfiguration. scanForFragment(WebAppContext context, Resource jar, java.util.concurrent.ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/web-fragment.xml file in the given jar.void
MetaInfConfiguration. scanForResources(WebAppContext context, Resource target, java.util.concurrent.ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/resources dir in the given jar.void
MetaInfConfiguration. scanForResources(WebAppContext context, Resource target, java.util.concurrent.ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/resources dir in the given jar.void
MetaInfConfiguration. scanForTlds(WebAppContext context, Resource jar, java.util.concurrent.ConcurrentHashMap<Resource,java.util.Collection<java.net.URL>> cache)
Discover META-INF/*.tld files in the given jarvoid
MetaInfConfiguration. scanJars(WebAppContext context, java.util.Collection<Resource> jars, boolean useCaches)
For backwards compatibility.void
MetaInfConfiguration. scanJars(WebAppContext context, java.util.Collection<Resource> jars, boolean useCaches, java.util.List<java.lang.String> scanTypes)
Look into the jars to discover info in META-INF.void
MetaData. setWebInfClassesDirs(java.util.List<Resource> dirs)
Constructors in org.eclipse.jetty.webapp with parameters of type Resource Constructor Description DefaultsDescriptor(Resource xml)
Descriptor(Resource xml)
DiscoveredAnnotation(WebAppContext context, java.lang.String className, Resource resource)
FragmentDescriptor(Resource xml)
OverrideDescriptor(Resource xml)
WebAppContext(HandlerContainer parent, Resource webApp, java.lang.String contextPath)
WebAppContext(Resource webApp, java.lang.String contextPath)
WebDescriptor(Resource xml)
-
Uses of Resource in org.eclipse.jetty.xml
Fields in org.eclipse.jetty.xml declared as Resource Modifier and Type Field Description private Resource
XmlConfiguration. _location
Methods in org.eclipse.jetty.xml with parameters of type Resource Modifier and Type Method Description default 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(java.lang.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 Resource Constructor Description XmlConfiguration(Resource resource)
Reads and parses the XML configuration file.
-