edu.wisc.trace.uch.resource.uploadmanager.local
Class LocalUploadManager

java.lang.Object
  extended by edu.wisc.trace.uch.resource.uploadmanager.local.LocalUploadManager

public class LocalUploadManager
extends Object

Provide methods to upload resources locally

Version:
$Revision: 1.1 $
Author:
Parikshit Thakur & Team, Trace R&D Center

Constructor Summary
LocalUploadManager(ResourceManager resourceManager, String localResourceDirURI)
          Constructor.
 
Method Summary
 Map<String,String> uploadResource(Map<String,List<String>> props, String resourceUri)
          Upload the Specified Resource to Local Resource Manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalUploadManager

public LocalUploadManager(ResourceManager resourceManager,
                          String localResourceDirURI)
Constructor. Provide the reference of ResourceManager to local variable. Create a directory for store uploaded resource under local resource directory.

Parameters:
resourceManager - an object of ResourceManager
localResourceDirURI - a String value of local resource directory path URI
Method Detail

uploadResource

public Map<String,String> uploadResource(Map<String,List<String>> props,
                                         String resourceUri)
Upload the Specified Resource to Local Resource Manager.

Parameters:
props - an object of Map<String, List<String>> specifies resource properties
resourceUri - a String value of Resource URI
Returns:
an object of Map<String, String> specified upload response


Copyright © 2006-2008 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.