1 /*$Id: DefaultProtocolLibraryFactory.java,v 1.4 2005/03/13 07:13:39 clq2 Exp $
2 * Created on 22-Nov-2004
3 *
4 * Copyright (C) AstroGrid. All rights reserved.
5 *
6 * This software is published under the terms of the AstroGrid
7 * Software License version 1.2, a copy of which has been included
8 * with this distribution in the LICENSE.txt file.
9 *
10 **/
11 package org.astrogrid.applications.parameter.protocol;
12
13 /*** Factory object that will create a pre-configured DefaultProtocolLibrary, in which all known protocols are registered.
14 * <b>NB: when implementing a new standard protocol, add it to this factory too </b>
15 * @author Noel Winstanley nw@jb.man.ac.uk 22-Nov-2004
16 *
17 */
18 public class DefaultProtocolLibraryFactory {
19
20 /*** Construct a new DefaultProtocolLibraryFactory
21 *
22 */
23 public DefaultProtocolLibraryFactory() {
24 super();
25 }
26
27 public DefaultProtocolLibrary createLibrary() {
28 DefaultProtocolLibrary lib = new DefaultProtocolLibrary();
29 lib.addProtocol(new FileProtocol());
30 lib.addProtocol(new FtpProtocol());
31 lib.addProtocol(new HttpProtocol());
32 lib.addProtocol(new IvornProtocol());
33 return lib;
34 }
35
36 }
37
38
39 /*
40 $Log: DefaultProtocolLibraryFactory.java,v $
41 Revision 1.4 2005/03/13 07:13:39 clq2
42 merging jes-nww-686 common-nww-686 workflow-nww-996 scripting-nww-995 cea-nww-994
43
44 Revision 1.3.26.1 2005/03/11 11:20:58 nw
45 replaced VoSpaceClient with FileManagerClient
46
47 Revision 1.3 2004/11/29 20:00:56 clq2
48 nww-itn07-684
49
50 Revision 1.2.2.1 2004/11/26 15:14:21 nw
51 stuff brougt over from head
52
53 Revision 1.2 2004/11/22 18:26:37 clq2
54 nww-itn07-715a
55
56 Revision 1.1.2.1 2004/11/22 14:27:21 nw
57 added factory, and create-from-string-uri methods, to make
58 this package more accessible from other user's code / scripts.
59
60 */