View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/filemanager/client/src/java/org/astrogrid/filemanager/resolver/FileManagerEndpointResolver.java,v $</cvs:source>
3    * <cvs:author>$Author: jdt $</cvs:author>
4    * <cvs:date>$Date: 2005/01/13 17:23:15 $</cvs:date>
5    * <cvs:version>$Revision: 1.3 $</cvs:version>
6    *
7    * <cvs:log>
8    *   $Log: FileManagerEndpointResolver.java,v $
9    *   Revision 1.3  2005/01/13 17:23:15  jdt
10   *   merges from dave-dev-200412201250
11   *
12   *   Revision 1.2.4.1  2004/12/22 07:38:36  dave
13   *   Started to move towards StoreClient API ...
14   *
15   *   Revision 1.2  2004/11/25 00:20:27  jdt
16   *   Merge from dave-dev-200410061224-200411221626
17   *
18   *   Revision 1.1.2.1  2004/11/18 16:06:11  dave
19   *   Added delegate resolver and tests ....
20   *
21   * </cvs:log>
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