1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.astrogrid.filemanager.resolver ;
25
26 import java.net.URL ;
27 import java.net.MalformedURLException ;
28
29 import org.astrogrid.store.Ivorn ;
30 import org.astrogrid.registry.RegistryException;
31 import org.astrogrid.registry.client.RegistryDelegateFactory ;
32 import org.astrogrid.registry.client.query.RegistryService ;
33
34 import org.astrogrid.filemanager.common.ivorn.FileManagerIvornParser ;
35 import org.astrogrid.filemanager.common.ivorn.FileManagerIvornFactory ;
36
37 /***
38 * Public interface for a helper class to resolve an Ivron into a service endpoint.
39 *
40 */
41 public interface FileManagerEndpointResolver
42 {
43
44 /***
45 * Resolve an Ivorn into a service endpoint.
46 * @param ivorn An Ivorn containing a filemanager identifier.
47 * @return The endpoint address for the service.
48 * @throws FileManagerResolverException If unable to resolve the identifier.
49 *
50 */
51 public URL resolve(Ivorn ivorn)
52 throws FileManagerResolverException ;
53
54 /***
55 * Resolve an Ivorn parser into a service endpoint.
56 * @param parser A FileManagerIvornParser containing the Filestore identifier.
57 * @return The endpoint address for the service.
58 * @throws FileManagerResolverException If unable to resolve the identifier.
59 *
60 public URL resolve(FileManagerIvornParser parser)
61 throws FileManagerResolverException ;
62 */
63
64 }
65