Modifier and Type | Field and Description |
---|---|
protected Resource |
AbstractDiscoverableAnnotationHandler._resource |
Modifier and Type | Method and Description |
---|---|
Resource |
AbstractDiscoverableAnnotationHandler.getResource() |
Modifier and Type | Method and Description |
---|---|
FragmentDescriptor |
AnnotationConfiguration.getFragmentFromJar(Resource jar,
List<FragmentDescriptor> frags)
Get the web-fragment.xml from a jar
|
void |
AnnotationParser.parse(Resource dir,
ClassNameResolver resolver)
Parse all classes in a directory
|
void |
AbstractDiscoverableAnnotationHandler.setResource(Resource resource) |
Constructor and Description |
---|
WebFilterAnnotation(WebAppContext context,
String className,
Resource resource) |
WebListenerAnnotation(WebAppContext context,
String className,
Resource resource) |
WebServletAnnotation(WebAppContext context,
String className,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
ContextDeployer.getConfigurationDir()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
ContextDeployer.setConfigurationDir(Resource resource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ScanningAppProvider.getMonitoredDirResource() |
Modifier and Type | Method and Description |
---|---|
void |
ScanningAppProvider.setMonitoredDirResource(Resource contextsDir) |
Modifier and Type | Method and Description |
---|---|
Resource |
HttpContent.getResource() |
Resource |
HttpContent.ResourceAsHttpContent.getResource() |
Constructor and Description |
---|
HttpContent.ResourceAsHttpContent(Resource resource,
Buffer mimeType) |
HttpContent.ResourceAsHttpContent(Resource resource,
Buffer mimeType,
boolean etag) |
HttpContent.ResourceAsHttpContent(Resource resource,
Buffer mimeType,
int maxBuffer) |
HttpContent.ResourceAsHttpContent(Resource resource,
Buffer mimeType,
int maxBuffer,
boolean etag) |
Modifier and Type | Method and Description |
---|---|
Resource |
PropertyUserStore.getConfigResource()
returns the resource associated with the configured properties file, creating it if necessary
|
Resource |
HashLoginService.getConfigResource() |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceCache.Content.getResource() |
Modifier and Type | Method and Description |
---|---|
protected Buffer |
ResourceCache.getDirectBuffer(Resource resource) |
protected Buffer |
ResourceCache.getIndirectBuffer(Resource resource) |
protected boolean |
ResourceCache.isCacheable(Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
ContextHandler.getBaseResource() |
Resource |
ResourceHandler.getBaseResource() |
protected Resource |
ResourceHandler.getResource(javax.servlet.http.HttpServletRequest request) |
Resource |
ContextHandler.getResource(String path) |
Resource |
ResourceHandler.getResource(String path) |
Resource |
ResourceHandler.getStylesheet() |
protected Resource |
ResourceHandler.getWelcome(Resource directory) |
Resource |
ContextHandler.newResource(String urlOrPath)
Convert a URL or path to a Resource.
|
Resource |
ContextHandler.newResource(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(String path,
Resource resource)
Check an alias
|
boolean |
ContextHandler.ApproveSameSuffixAliases.check(String path,
Resource resource) |
boolean |
ContextHandler.ApprovePathPrefixAliases.check(String path,
Resource resource) |
boolean |
ContextHandler.ApproveNonExistentDirectoryAliases.check(String path,
Resource resource) |
protected void |
ResourceHandler.doDirectory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Resource resource) |
protected void |
ResourceHandler.doResponseHeaders(javax.servlet.http.HttpServletResponse response,
Resource resource,
String mimeType)
Set the response headers.
|
protected Resource |
ResourceHandler.getWelcome(Resource directory) |
void |
ContextHandler.setBaseResource(Resource base) |
void |
ResourceHandler.setBaseResource(Resource base) |
Modifier and Type | Method and Description |
---|---|
Resource |
DefaultServlet.getResource(String pathInContext)
get Resource to serve.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
DefaultServlet.passConditionalHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Resource resource,
HttpContent content) |
protected void |
DefaultServlet.sendData(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean include,
Resource resource,
HttpContent content,
Enumeration reqRanges) |
protected void |
DefaultServlet.sendDirectory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Resource resource,
String pathInContext) |
Modifier and Type | Class and Description |
---|---|
class |
FileResource
File Resource.
|
class |
JarResource |
class |
ResourceCollection
A collection of resources (dirs).
|
class |
URLResource
Abstract resource class.
|
Modifier and Type | Method and Description |
---|---|
abstract Resource |
Resource.addPath(String path)
Returns the resource contained inside the current resource with the
given name.
|
Resource |
URLResource.addPath(String path)
Returns the resource contained inside the current resource with the
given name
|
Resource |
FileResource.addPath(String path) |
Resource |
ResourceCollection.addPath(String path) |
Resource |
Resource.getResource(String path)
Get a resource from withing this resource.
|
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.
|
static Resource |
Resource.newSystemResource(String resource)
Construct a system resource from a string.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Resource.isContainedIn(Resource r) |
boolean |
URLResource.isContainedIn(Resource containingResource) |
boolean |
ResourceCollection.isContainedIn(Resource r) |
static boolean |
Resource.isContainedIn(Resource r,
Resource containingResource) |
static Resource |
JarResource.newJarResource(Resource resource) |
abstract boolean |
Resource.renameTo(Resource dest)
Rename the given resource
|
boolean |
URLResource.renameTo(Resource dest)
Rename the given resource
|
boolean |
FileResource.renameTo(Resource dest)
Rename the given resource
|
boolean |
ResourceCollection.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 |
---|---|
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 |
Modifier and Type | Field and Description |
---|---|
protected LinkedList<Resource> |
Ordering.RelativeOrdering._afterOthers |
protected LinkedList<Resource> |
Ordering.RelativeOrdering._beforeOthers |
protected LinkedList<Resource> |
Ordering.RelativeOrdering._noOthers |
protected List<Resource> |
MetaData._orderedContainerJars |
protected List<Resource> |
MetaData._orderedWebInfJars |
protected Map<Resource,List<DiscoveredAnnotation>> |
MetaData._webFragmentAnnotations |
protected Map<Resource,FragmentDescriptor> |
MetaData._webFragmentResourceMap |
protected List<Resource> |
MetaData._webInfJars |
Modifier and Type | Method and Description |
---|---|
protected Resource |
WebXmlConfiguration.findWebXml(WebAppContext context) |
Resource |
MetaData.getJarForFragment(String name) |
Resource |
Descriptor.getResource() |
Resource |
DiscoveredAnnotation.getResource() |
Resource |
WebAppContext.getResource(String uriInContext) |
Resource |
WebAppContext.getWebInf() |
Resource |
WebAppClassLoader.Context.newResource(String urlOrPath)
Convert a URL or path to a Resource.
|
Modifier and Type | Method and Description |
---|---|
protected List<Resource> |
WebInfConfiguration.findJars(WebAppContext context)
Look for jars in WEB-INF/lib
|
List<Resource> |
MetaData.getOrderedContainerJars() |
List<Resource> |
MetaData.getOrderedWebInfJars() |
List<Resource> |
MetaData.getWebInfJars() |
List<Resource> |
Ordering.order(List<Resource> fragments) |
List<Resource> |
Ordering.AbsoluteOrdering.order(List<Resource> jars)
Order the list of jars in WEB-INF/lib according to the ordering declarations in the descriptors
|
List<Resource> |
Ordering.RelativeOrdering.order(List<Resource> jars)
Order the list of jars according to the ordering declared
in the various web-fragment.xml files.
|
Modifier and Type | Method and Description |
---|---|
void |
Ordering.RelativeOrdering.addAfterOthers(Resource r) |
void |
Ordering.RelativeOrdering.addBeforeOthers(Resource r) |
void |
WebAppClassLoader.addClassPath(Resource resource) |
void |
MetaData.addContainerJar(Resource jar) |
void |
MetaData.addDiscoveredAnnotation(Resource resource,
DiscoveredAnnotation annotation) |
void |
MetaData.addDiscoveredAnnotations(Resource resource,
List<DiscoveredAnnotation> annotations) |
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 |
Ordering.RelativeOrdering.addNoOthers(Resource r) |
void |
MetaData.addOverride(Resource override) |
void |
MetaInfConfiguration.addResource(WebAppContext context,
String attribute,
Resource jar) |
void |
MetaData.addWebInfJar(Resource newResource) |
FragmentDescriptor |
MetaData.getFragment(Resource jar) |
protected void |
Ordering.RelativeOrdering.insert(List<Resource> list,
int index,
Resource resource) |
protected void |
Ordering.RelativeOrdering.remove(List<Resource> resources,
Resource r) |
void |
MetaData.setDefaults(Resource webDefaults) |
void |
MetaData.setWebXml(Resource webXml) |
Modifier and Type | Method and Description |
---|---|
protected int |
Ordering.RelativeOrdering.getIndexOf(List<Resource> resources,
String fragmentName) |
protected void |
Ordering.RelativeOrdering.insert(List<Resource> list,
int index,
Resource resource) |
protected void |
Ordering.RelativeOrdering.insert(List<Resource> list,
int index,
String fragName)
Insert the resource matching the fragName into the list of resources
at the location indicated by index.
|
protected boolean |
Ordering.RelativeOrdering.isAfter(List<Resource> list,
String fragNameA,
String fragNameB)
Is fragment name "a" after fragment name "b"?
|
protected boolean |
Ordering.RelativeOrdering.isBefore(List<Resource> list,
String fragNameA,
String fragNameB)
Is fragment with name a before fragment with name b?
|
List<Resource> |
Ordering.order(List<Resource> fragments) |
List<Resource> |
Ordering.AbsoluteOrdering.order(List<Resource> jars)
Order the list of jars in WEB-INF/lib according to the ordering declarations in the descriptors
|
List<Resource> |
Ordering.RelativeOrdering.order(List<Resource> jars)
Order the list of jars according to the ordering declared
in the various web-fragment.xml files.
|
protected boolean |
Ordering.RelativeOrdering.orderList(LinkedList<Resource> list) |
protected void |
Ordering.RelativeOrdering.remove(List<Resource> resources,
Resource r) |
Constructor and Description |
---|
DefaultsDescriptor(Resource xml) |
Descriptor(Resource xml) |
DiscoveredAnnotation(WebAppContext context,
String className,
Resource resource) |
FragmentDescriptor(Resource xml) |
OverrideDescriptor(Resource xml) |
TagLibConfiguration.TldDescriptor(Resource xml) |
WebDescriptor(Resource xml) |
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.