Package | Description |
---|---|
org.eclipse.jetty.http |
Jetty Http : Tools for Http processing
|
org.eclipse.jetty.security |
Jetty Security : Modular Support for Security in Jetty
|
org.eclipse.jetty.server |
Jetty Server : Core Server API
|
org.eclipse.jetty.server.handler |
Jetty Server : Core Handler API
|
org.eclipse.jetty.servlet |
Jetty Server : Modular Servlet Integration
|
org.eclipse.jetty.util |
Jetty Util : Common Utility Classes
|
org.eclipse.jetty.util.resource |
Jetty Util : Common Resource Utilities
|
org.eclipse.jetty.util.security |
Jetty Util : Common Security Utilities
|
org.eclipse.jetty.util.ssl |
Jetty Util : Common SSL Utility Classes
|
org.eclipse.jetty.webapp |
Jetty Util : Modular Web Application Support
|
org.eclipse.jetty.xml |
Jetty Xml : IoC Mechanism for Jetty Configuration
|
Modifier and Type | Field and Description |
---|---|
(package private) Resource |
ResourceHttpContent._resource |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceHttpContent.getResource() |
Resource |
HttpContent.getResource() |
Resource |
PrecompressedHttpContent.getResource() |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
Resource |
PropertyUserStore.getConfigResource() |
Resource |
HashLoginService.getConfigResource()
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private Resource |
CachedContentFactory.CachedHttpContent._resource |
Modifier and Type | Method and Description |
---|---|
Resource |
CachedContentFactory.CachedHttpContent.getResource() |
Modifier and Type | Method and Description |
---|---|
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 |
ResourceContentFactory.load(java.lang.String pathInContext,
Resource resource,
int maxBufferSize) |
private HttpContent |
CachedContentFactory.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) |
Constructor and Description |
---|
CachedHttpContent(java.lang.String pathInContext,
Resource resource,
java.util.Map<CompressedContentFormat,CachedContentFactory.CachedHttpContent> precompressedResources) |
Modifier and Type | Field and Description |
---|---|
private Resource |
ContextHandler._baseResource |
(package private) Resource |
ResourceHandler._baseResource |
(package private) Resource |
ResourceHandler._defaultStylesheet |
(package private) Resource |
ResourceHandler._stylesheet |
Modifier and Type | Method and Description |
---|---|
Resource |
ContextHandler.getBaseResource() |
Resource |
ResourceHandler.getBaseResource() |
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 for
newResource(URL) enables extensions to provide alternate resource implementations. |
Resource |
ContextHandler.newResource(java.net.URL url)
Convert URL to Resource wrapper for
newResource(URL) enables extensions to provide alternate resource implementations. |
Modifier and Type | Method and Description |
---|---|
boolean |
ContextHandler.AliasCheck.check(java.lang.String path,
Resource resource)
Check an alias
|
boolean |
ContextHandler.ApproveAliases.check(java.lang.String path,
Resource resource) |
boolean |
ContextHandler.ApproveNonExistentDirectoryAliases.check(java.lang.String path,
Resource resource) |
boolean |
AllowSymLinkAliasChecker.check(java.lang.String uri,
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) |
Modifier and Type | Field and Description |
---|---|
private Resource |
DefaultServlet._resourceBase |
private Resource |
DefaultServlet._stylesheet |
Modifier and Type | Method and Description |
---|---|
Resource |
DefaultServlet.getResource(java.lang.String pathInContext)
get Resource to serve.
|
Modifier and Type | Method and Description |
---|---|
static java.nio.ByteBuffer |
BufferUtil.toBuffer(Resource resource,
boolean direct) |
Modifier and Type | Class and 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.
Use
PathResource |
class |
JarFileResource |
class |
JarResource |
class |
PathResource
Java NIO Path equivalent of FileResource.
|
class |
ResourceCollection
A collection of resources (dirs).
|
class |
URLResource
URL resource class.
|
Modifier and Type | Field and Description |
---|---|
private Resource[] |
ResourceCollection._resources |
static Resource |
EmptyResource.INSTANCE |
Modifier and Type | Field and 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 |
Modifier and Type | Method and Description |
---|---|
Resource |
FileResource.addPath(java.lang.String path)
Deprecated.
|
Resource |
URLResource.addPath(java.lang.String path)
Returns the resource contained inside the current resource with the
given name
|
abstract Resource |
Resource.addPath(java.lang.String path)
Returns the resource contained inside the current resource with the
given name.
|
Resource |
PathResource.addPath(java.lang.String subpath) |
Resource |
ResourceCollection.addPath(java.lang.String path) |
Resource |
EmptyResource.addPath(java.lang.String path) |
static 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.nio.file.Path path)
Construct a Resource from provided path
|
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.newSystemResource(java.lang.String resource)
Construct a system resource from a string.
|
Modifier and Type | Method and 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() |
Modifier and Type | Method and 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 |
FileResource.isContainedIn(Resource r)
Deprecated.
|
boolean |
URLResource.isContainedIn(Resource containingResource) |
boolean |
JarFileResource.isContainedIn(Resource resource)
Check if this jar:file: resource is contained in the
named resource.
|
abstract boolean |
Resource.isContainedIn(Resource r) |
boolean |
PathResource.isContainedIn(Resource r) |
boolean |
ResourceCollection.isContainedIn(Resource r) |
boolean |
EmptyResource.isContainedIn(Resource r) |
static boolean |
Resource.isContainedIn(Resource r,
Resource containingResource) |
static Resource |
JarResource.newJarResource(Resource resource) |
boolean |
FileResource.renameTo(Resource dest)
Deprecated.
Rename the given resource
|
boolean |
URLResource.renameTo(Resource dest)
Rename the given resource
|
abstract boolean |
Resource.renameTo(Resource dest)
Rename the given resource
|
boolean |
PathResource.renameTo(Resource dest) |
boolean |
ResourceCollection.renameTo(Resource dest) |
boolean |
BadResource.renameTo(Resource dest) |
boolean |
EmptyResource.renameTo(Resource dest) |
void |
ResourceCollection.setResources(Resource[] resources)
Sets the resource collection's resources.
|
Constructor and Description |
---|
ResourceCollection(Resource... resources)
Instantiates a new resource collection.
|
Modifier and Type | Method and Description |
---|---|
static java.security.KeyStore |
CertificateUtils.getKeyStore(Resource store,
java.lang.String storeType,
java.lang.String storeProvider,
java.lang.String storePassword) |
Modifier and Type | Field and Description |
---|---|
private Resource |
SslContextFactory._keyStoreResource |
private Resource |
SslContextFactory._trustStoreResource |
Modifier and Type | Method and Description |
---|---|
Resource |
SslContextFactory.getKeyStoreResource() |
Resource |
SslContextFactory.getTrustStoreResource() |
Modifier and Type | Method and 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.
|
Modifier and Type | Field and Description |
---|---|
protected Resource |
WebInfConfiguration._preUnpackBaseResource |
protected Resource |
DiscoveredAnnotation._resource |
protected Resource |
Descriptor._xml |
static Resource |
MetaData.NON_FRAG_RESOURCE |
Modifier and Type | Field and 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 |
Modifier and Type | Method and Description |
---|---|
protected Resource |
WebInfConfiguration.findWebInfClassesDir(WebAppContext context)
Get
WEB-INF/classes dir |
protected 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.
|
Modifier and Type | Method and 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 resources
|
protected java.util.List<Resource> |
WebInfConfiguration.findExtraClasspathJars(WebAppContext context)
Get jars from WebAppContext.getExtraClasspath as resources
|
protected java.util.List<Resource> |
WebInfConfiguration.findJars(WebAppContext context)
Look for jars that should be treated as if they are in WEB-INF/lib
|
protected java.util.List<Resource> |
WebInfConfiguration.findWebInfLibJars(WebAppContext context)
Look for jars in
WEB-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> |
RelativeOrdering.order(java.util.List<Resource> jars) |
java.util.List<Resource> |
AbsoluteOrdering.order(java.util.List<Resource> jars) |
java.util.List<Resource> |
Ordering.order(java.util.List<Resource> fragments) |
Modifier and Type | Method and Description |
---|---|
void |
WebAppClassLoader.addClassPath(Resource resource) |
void |
MetaData.addContainerResource(Resource jar) |
void |
MetaData.addFragment(Resource jarResource,
Resource xmlResource)
Add a web-fragment.xml
|
void |
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) |
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 jar
|
void |
MetaData.setDefaults(Resource webDefaults) |
private void |
JettyWebXmlConfiguration.setupXmlConfiguration(WebAppContext context,
XmlConfiguration jetty_config,
Resource web_inf)
Configures some well-known properties before the XmlConfiguration reads
the configuration.
|
void |
WebAppContext.setWarResource(Resource war)
Set the war of the webapp as a
Resource . |
void |
MetaData.setWebXml(Resource webXml) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Resource> |
RelativeOrdering.order(java.util.List<Resource> jars) |
java.util.List<Resource> |
AbsoluteOrdering.order(java.util.List<Resource> jars) |
java.util.List<Resource> |
Ordering.order(java.util.List<Resource> fragments) |
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 jar
|
void |
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) |
Constructor and 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) |
Modifier and Type | Field and Description |
---|---|
private Resource |
XmlConfiguration._location |
Modifier and Type | Method and Description |
---|---|
default void |
ConfigurationProcessor.init(Resource resource,
XmlParser.Node root,
XmlConfiguration configuration)
Initialize a ConfigurationProcessor from provided Resource and XML
|
void |
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.uri
|
Constructor and Description |
---|
XmlConfiguration(Resource resource)
Reads and parses the XML configuration file.
|