1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.astrogrid.filestore.resolver ;
20
21 import java.net.URL ;
22
23 import org.astrogrid.store.Ivorn ;
24
25 import org.astrogrid.registry.client.query.RegistryService ;
26
27 import org.astrogrid.filestore.common.FileStore ;
28 import org.astrogrid.filestore.common.ivorn.FileStoreIvornParser ;
29 import org.astrogrid.filestore.client.FileStoreDelegate ;
30 import org.astrogrid.filestore.client.FileStoreSoapDelegate ;
31 import org.astrogrid.filestore.client.FileStoreMockDelegate ;
32 import org.astrogrid.filestore.common.exception.FileStoreIdentifierException ;
33
34 /***
35 * Public interface for a helper class to resolve an Ivron into a service delegate.
36 *
37 */
38 public interface FileStoreDelegateResolver
39 {
40
41 /***
42 * Resolve an Ivorn into a delegate.
43 * @param ivorn An Ivorn containing a filestore identifier.
44 * @return A FileStoreDelegate for the service.
45 * @throws FileStoreIdentifierException If the identifier is not valid.
46 * @throws FileStoreResolverException If unable to resolve the identifier.
47 *
48 */
49 public FileStoreDelegate resolve(Ivorn ivorn)
50 throws FileStoreIdentifierException, FileStoreResolverException ;
51 }
52