|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceIndexer
Jigsaw indexer. The indexer is an object that given some global configuration informations, tries to build default resources for files that the server doesn't know about. A ResourceIndexer must be a resource it is to be added permanently to the IndexersCatalog.
IndexersCatalog
Method Summary | |
---|---|
Resource |
createResource(ContainerResource container,
RequestInterface request,
java.io.File directory,
java.lang.String name,
java.util.Hashtable defs)
Try to create a resource for the given file. |
java.lang.String |
getIndexedName(java.io.File directory,
java.lang.String name)
Get the name of the resource relative to the given filename. |
long |
lastModified()
When was this indexer configuration last modified. |
Method Detail |
---|
long lastModified()
Resource createResource(ContainerResource container, RequestInterface request, java.io.File directory, java.lang.String name, java.util.Hashtable defs)
container
- The container making the call.request
- The HTTP request that triggered the call to the indexer
(may be null).directory
- The directory the file is in.name
- The name of the file.defs
- Any default attribute values that should be provided
to the created resource at initialization time.
java.lang.String getIndexedName(java.io.File directory, java.lang.String name)
name
- The name of the file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |