473cdca0f4d50494ecaf501320df57c353492de8
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / eu / etaxonomy / taxeditor / remoting / source / CdmRemoteSource.java
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 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
12
13 /**
14 * Class representing a CDM remote source
15 *
16 */
17 public class CdmRemoteSource extends CdmRemoteSourceBase {
18
19 /**
20 * Creates a new instance of CdmRemoteSource
21 *
22 * @param name
23 * @param server
24 * @param port
25 * @param contextPath
26 * @param nomenclaturalCode
27 * @return
28 */
29 public static CdmRemoteSource NewInstance() {
30 return new CdmRemoteSource(DEFAULT_NAME, DEFAULT_SERVER, DEFAULT_PORT, DEFAULT_CONTEXT_PATH, DEFAULT_NOMENCLATURAL_CODE);
31 }
32
33 /**
34 * Creates a new instance of CdmRemoteSource
35 *
36 * @param name
37 * @param server
38 * @param port
39 * @param contextPath
40 * @param nomenclaturalCode
41 * @return
42 */
43 public static CdmRemoteSource NewInstance(String name, String server, int port, String contextPath, NomenclaturalCode nomenclaturalCode) {
44 return new CdmRemoteSource(name, server, port, contextPath, nomenclaturalCode);
45 }
46
47 /**
48 * Creates a new CdmRemoteSource
49 *
50 * @param name
51 * @param server
52 * @param port
53 * @param contextPath
54 * @param nomenclaturalCode
55 */
56 private CdmRemoteSource(String name, String server, int port, String contextPath, NomenclaturalCode nomenclaturalCode) {
57 super(name, server, port, contextPath, nomenclaturalCode);
58
59 }
60
61
62 }