1
|
/**
|
2
|
* Copyright (C) 2014 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.remoting.source;
|
10
|
|
11
|
|
12
|
/**
|
13
|
* Class representing a CDM remote source
|
14
|
*
|
15
|
*/
|
16
|
public class CdmRemoteSource extends CdmRemoteSourceBase {
|
17
|
|
18
|
/**
|
19
|
* Creates a new instance of CdmRemoteSource
|
20
|
*
|
21
|
* @param name
|
22
|
* @param server
|
23
|
* @param port
|
24
|
* @param contextPath
|
25
|
* @param nomenclaturalCode
|
26
|
* @return
|
27
|
*/
|
28
|
public static CdmRemoteSource NewInstance() {
|
29
|
return new CdmRemoteSource(DEFAULT_NAME, DEFAULT_SERVER, DEFAULT_PORT, DEFAULT_CONTEXT_PATH);
|
30
|
}
|
31
|
|
32
|
/**
|
33
|
* Creates a new instance of CdmRemoteSource
|
34
|
*
|
35
|
* @param name
|
36
|
* @param server
|
37
|
* @param port
|
38
|
* @param contextPath
|
39
|
* @param nomenclaturalCode
|
40
|
* @return
|
41
|
*/
|
42
|
public static CdmRemoteSource NewInstance(String name, String server, int port, String contextPath) {
|
43
|
return new CdmRemoteSource(name, server, port, contextPath);
|
44
|
}
|
45
|
|
46
|
/**
|
47
|
* Creates a new CdmRemoteSource
|
48
|
*
|
49
|
* @param name
|
50
|
* @param server
|
51
|
* @param port
|
52
|
* @param contextPath
|
53
|
* @param nomenclaturalCode
|
54
|
*/
|
55
|
private CdmRemoteSource(String name, String server, int port, String contextPath) {
|
56
|
super(name, server, port, contextPath);
|
57
|
|
58
|
}
|
59
|
|
60
|
|
61
|
}
|