org.w3c.tools.resources.indexer
Class GhostResourceIndexer

java.lang.Object
  extended by org.w3c.tools.resources.AttributeHolder
      extended by org.w3c.tools.resources.Resource
          extended by org.w3c.tools.resources.indexer.SampleResourceIndexer
              extended by org.w3c.tools.resources.indexer.GhostResourceIndexer
All Implemented Interfaces:
java.lang.Cloneable, ContainerInterface, ResourceIndexer

public class GhostResourceIndexer
extends SampleResourceIndexer


Field Summary
 
Fields inherited from class org.w3c.tools.resources.indexer.SampleResourceIndexer
ATTR_NOT_INDEXED, ATTR_SUPER_INDEXER, contentTypes, defname, directories, extCaseSensitive, extensions, isWinPlatform
 
Fields inherited from class org.w3c.tools.resources.Resource
ATTR_CONTEXT, ATTR_HELP_URL, ATTR_IDENTIFIER, ATTR_LAST_MODIFIED, ATTR_PARENT, ATTR_RESOURCE_FRAMES, ATTR_STORE_ENTRY, ATTR_URL, co, id
 
Fields inherited from class org.w3c.tools.resources.AttributeHolder
attributes, values
 
Constructor Summary
GhostResourceIndexer()
           
 
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.
 
Methods inherited from class org.w3c.tools.resources.indexer.SampleResourceIndexer
createDirectoryResource, createFileResource, createVirtualResource, delete, delete, enumerateResourceIdentifiers, getDirectories, getExtensions, getFileExtensions, getIndexedDirName, getIndexedFileName, getIndexedName, getSuperIndexer, getTemplateFor, lastModified, loadDirectory, loadExtension, lookup, mergeDefaultAttributes, mergeFrameAttributes, registerResource
 
Methods inherited from class org.w3c.tools.resources.Resource
acceptUnload, checkMultipleLock, collectFrames, getClone, getContext, getFrame, getFrames, getHelpURL, getHelpURL, getIdentifier, getLastModified, getParent, getResourceReference, getServer, getSpace, getSpaceEntry, getStoreEntry, getURLPath, getValue, getValue, initialize, initialize, isInitialized, isUnloaded, markModified, notifyUnload, pickleValues, registerFrame, setContext, setContext, setValue, setValue, unregisterFrame, unsafeGetContext, unsafeGetFrame, unsafeGetFrames, unsafeGetIdentifier, unsafeGetResourceReference, unsafeGetURLPath, unsafeGetValue, updateAttributes
 
Methods inherited from class org.w3c.tools.resources.AttributeHolder
definesAttribute, definesAttribute, getAttributes, getBoolean, getChar, getClone, getClone, getDouble, getFloat, getInt, getLong, getString, getValue, lookupAttribute, print, setBoolean, setChar, setDouble, setFloat, setInt, setLong, setString, setValue, unsafeDefinesAttribute, unsafeGetDouble, unsafeGetString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GhostResourceIndexer

public GhostResourceIndexer()
Method Detail

createResource

public 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. This method makes its best efforts to try to build a default resource out of a file.

Specified by:
createResource in interface ResourceIndexer
Overrides:
createResource in class SampleResourceIndexer
Parameters:
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.
container - The container making the call.
request - The HTTP request that triggered the call to the indexer (may be null).
Returns:
A Resource instance, or null if the given file can't be truned into a resource given our configuration database.