edu.wisc.trace.urcsdk.client.resources
Class FileRetriever
java.lang.Object
edu.wisc.trace.urcsdk.client.resources.FileRetriever
public class FileRetriever
- extends java.lang.Object
FileRetriever is a utility class that can retrieve files from multiple sources
and return URC compliant resources.
Created on: Sep 10, 2004
Known bugs: None
Thread Safe: Yes
- Version:
- $Revision: 1.21 $
- Author:
- Andrew Martin, Trace R&D Center
|
Method Summary |
static IResource |
retrieveResource(java.net.URI resURI,
ElementRef elementRef,
java.lang.String valueRef,
java.lang.String opRef,
Constants.ResourceRole role,
java.util.List<java.lang.String> langs)
retriveResource takes its parameters and retrieves the file that is most
closely associated with those parameters and then converts it into the correct resource
type to work with. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileRetriever
public FileRetriever()
retrieveResource
public static IResource retrieveResource(java.net.URI resURI,
ElementRef elementRef,
java.lang.String valueRef,
java.lang.String opRef,
Constants.ResourceRole role,
java.util.List<java.lang.String> langs)
retriveResource takes its parameters and retrieves the file that is most
closely associated with those parameters and then converts it into the correct resource
type to work with.
- Parameters:
resURI - The resource URI. Must be well-formed or retrieveResource will return null.elementRef - The element reference that this resource is associated with.valueRef - The value reference that this resource is associated with.opRef - The operation Ref that this resource is associated with.role - The role of this resource.langs - The languages supported by this resource.
- Returns:
- Either returns a valid IResource or null on error.
Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.