|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.util.retrievalmanager.RetrievalManager
public class RetrievalManager
Provide Method to Query and Retrieve Resources from Resource Server. Also cache the Resources and its properties and provides methods to clear resources.
| Constructor Summary | |
|---|---|
RetrievalManager(String resServerUrl,
String cacheDir,
String userName,
String password)
Instantiate the Object of HttpRequestResponseUtil. |
|
| Method Summary | |
|---|---|
List<String> |
clearCache()
Try to delete all files in cache directory and return those fileUri which can't be deleted because they are used by other resource. |
List<String> |
clearCache(String resourceType)
Clear specified type or resources from cache and return deleted resource paths. |
List<String> |
clearResourceSheetCache()
Clear Resource Sheet Cache and return deleted resource paths. |
List<String> |
clearUipmClientCache()
Clear UIPM Client Cache and return deleted resource paths. |
Map<String,List<String>> |
getResource(Map<String,List<String>> resPropMap)
Get Specified Resource from Resource Server. |
List<List<Map<String,List<String>>>> |
getResources(List<Map<String,List<String>>> resPropList)
Get Specified Resources from Resource Server. |
Map<String,List<String>> |
retrieveResource(String retrievalUri)
Retrieve the specified Resource from Resource Server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RetrievalManager(String resServerUrl,
String cacheDir,
String userName,
String password)
resServerUrl - a String value of Resource Server URLcacheDir - a String value of Cache directory pathuserName - a String value of userNamepassword - a String value of password| Method Detail |
|---|
public List<List<Map<String,List<String>>>> getResources(List<Map<String,List<String>>> resPropList)
resPropList - an Object of List<Map<String, String>>
public Map<String,List<String>> getResource(Map<String,List<String>> resPropMap)
resPropMap - an Object of Map<String, String>
public Map<String,List<String>> retrieveResource(String retrievalUri)
retrievalUri - a String value of Resource Retrieval URI
public List<String> clearCache()
public List<String> clearResourceSheetCache()
public List<String> clearUipmClientCache()
public List<String> clearCache(String resourceType)
resourceType - a String value of Resource Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||