public class URIContentManager
extends java.lang.Object
Constructor and Description |
---|
URIContentManager() |
Modifier and Type | Method and Description |
---|---|
URIContentHandler |
getHandler(java.io.File file)
Get or create a content handler for a given file
|
URIContentHandler |
getHandler(java.io.File file,
java.lang.String contentType)
Get the content handler for a file
|
URIContentHandler |
getHandler(java.lang.String tool,
java.lang.String uri)
Given a content URI and optional tool name, create or obtain a content handler
|
java.util.List<URIContentHandler> |
getHandlers(java.io.File file)
Get all content handlers for a given file
|
static URIContentManager |
getInstance()
Static accessor method for the URI content manager
|
java.util.List<URIContentProvider> |
getProviders()
Get all content providers
|
java.util.List<URIContentProvider> |
getProviders(java.lang.String requestTool)
Get all content providers which support a given tool
|
java.util.List<URIContentHandler> |
getRegisteredHandlers()
Get a list of all registered content handlers
|
java.util.List<URIContentResolver> |
getResolvers()
Get all registered content resolvers
|
java.util.List<URIContentSender> |
getSenders()
Get all content send methods
|
java.util.List<URIContentSender> |
getSenders(java.lang.String contentURI)
Get all content send methods which support a given URI
|
void |
notifyContentChanged(URIContentHandler handler)
Notify manager and listeners that content has been changed
|
void |
notifyContentDeleted(URIContentHandler handler)
Notify manager and listeners that content has finished being deleted
|
void |
notifyContentImported(URIContentHandler handler)
Notify manager and listeners that content has finished being imported
|
java.util.List<URIContentHandler> |
query(URIQueryParameters params)
Query all content handlers using specific parameters
|
void |
registerListener(URIContentListener listener)
Register a content listener
|
void |
registerProvider(URIContentProvider provider)
Register a content provider
|
void |
registerResolver(URIContentResolver res)
Register a content resolver
|
void |
registerSender(URIContentSender sender)
Register a content send method
|
void |
unregisterListener(URIContentListener listener)
Unregister a content listener
|
void |
unregisterProvider(URIContentProvider provider)
Unregister a content provider
|
void |
unregisterResolver(URIContentResolver res)
Unregister a content resolver
|
void |
unregisterSender(URIContentSender sender)
Unregister a content send method
|
public static URIContentManager getInstance()
public void registerResolver(URIContentResolver res)
res
- URI content resolverpublic void unregisterResolver(URIContentResolver res)
res
- URI content resolverpublic java.util.List<URIContentResolver> getResolvers()
public URIContentHandler getHandler(java.lang.String tool, java.lang.String uri)
tool
- Tool name (may be null if N/A)uri
- Content URIpublic URIContentHandler getHandler(java.io.File file)
file
- Filepublic URIContentHandler getHandler(java.io.File file, java.lang.String contentType)
file
- FilecontentType
- Content type of the filepublic java.util.List<URIContentHandler> getHandlers(java.io.File file)
file
- Filepublic java.util.List<URIContentHandler> query(URIQueryParameters params)
params
- Query parameterspublic void registerListener(URIContentListener listener)
listener
- URI content listenerpublic void unregisterListener(URIContentListener listener)
listener
- URI content listenerpublic void notifyContentImported(URIContentHandler handler)
handler
- URI content handlerpublic void notifyContentDeleted(URIContentHandler handler)
handler
- URI content handlerpublic void notifyContentChanged(URIContentHandler handler)
handler
- URI content handlerpublic java.util.List<URIContentHandler> getRegisteredHandlers()
public void registerProvider(URIContentProvider provider)
provider
- URI content providerpublic void unregisterProvider(URIContentProvider provider)
provider
- URI content providerpublic java.util.List<URIContentProvider> getProviders()
public java.util.List<URIContentProvider> getProviders(java.lang.String requestTool)
requestTool
- Request tool stringpublic void registerSender(URIContentSender sender)
sender
- URI content senderpublic void unregisterSender(URIContentSender sender)
sender
- URI content senderpublic java.util.List<URIContentSender> getSenders()
public java.util.List<URIContentSender> getSenders(java.lang.String contentURI)
contentURI
- Content URI