|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.FileManager
com.limegroup.gnutella.xml.MetaFileManager
This class handles querying shared files with XML data and returning XML data in replies.
Field Summary |
Fields inherited from class com.limegroup.gnutella.FileManager |
BROWSE_QUERY, DELIMETERS, DIRECTORY_FILTER, INDEXING_QUERY, SHAREABLE_FILE_FILTER |
Constructor Summary | |
MetaFileManager()
|
Method Summary | |
FileDesc |
addFileIfShared(java.io.File file,
java.util.List metadata)
|
protected void |
addXMLToResponse(Response response,
FileDesc fd)
Adds XML to the response. |
FileDesc |
fileChanged(java.io.File f)
Notification that a file has changed. |
java.util.List |
getIndivisibleKeyWords()
|
java.util.List |
getKeyWords()
Returns a list of all the words in the annotations - leaves out numbers. |
protected void |
loadSettingsBlocking(boolean notifyOnClear)
This method overrides FileManager.loadSettingsBlocking(), though it calls the super method to load up the shared file DB. |
Response[] |
query(QueryRequest request)
Overrides FileManager.query. |
FileDesc |
removeFileIfShared(java.io.File f)
Removes the LimeXMLDocuments associated with the removed FileDesc from the various LimeXMLReplyCollections. |
protected boolean |
shouldIncludeXMLInResponse(QueryRequest qr)
Returns whether or not a response to this query should include XML. |
Methods inherited from class com.limegroup.gnutella.FileManager |
addFileIfShared, addIncompleteFile, debug, get, getAllSharedFileDescriptors, getFileDescForFile, getFileDescForUrn, getFilesRecursive, getIncompleteFileDescriptors, getNumFiles, getNumIncompleteFiles, getNumPendingFiles, getSharedFileDescriptors, getSize, isFileShareable, isValidIndex, loadSettings, loadThreadInterrupted, renameFileIfShared, repOk, search, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetaFileManager()
Method Detail |
public Response[] query(QueryRequest request)
query
in class FileManager
protected boolean shouldIncludeXMLInResponse(QueryRequest qr)
shouldIncludeXMLInResponse
in class FileManager
protected void addXMLToResponse(Response response, FileDesc fd)
addXMLToResponse
in class FileManager
response
- the Response instance that XML should be
added tofd
- the FileDesc that provides access to the
LimeXMLDocuments to add to the responsepublic FileDesc fileChanged(java.io.File f)
fileChanged
in class FileManager
public FileDesc removeFileIfShared(java.io.File f)
removeFileIfShared
in class FileManager
public FileDesc addFileIfShared(java.io.File file, java.util.List metadata)
addFileIfShared
in class FileManager
protected void loadSettingsBlocking(boolean notifyOnClear)
loadSettingsBlocking
in class FileManager
public java.util.List getKeyWords()
getKeyWords
in class FileManager
public java.util.List getIndivisibleKeyWords()
getIndivisibleKeyWords
in class FileManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |