2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.remote
;
11 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
14 * Class representing a CDM remote source
17 public class CdmRemoteSource
extends CdmRemoteSourceBase
{
20 * Creates a new instance of CdmRemoteSource
26 * @param nomenclaturalCode
29 public static CdmRemoteSource
NewInstance() {
30 return new CdmRemoteSource(DEFAULT_NAME
, DEFAULT_SERVER
, DEFAULT_PORT
, DEFAULT_CONTEXT_PATH
, DEFAULT_NOMENCLATURAL_CODE
);
34 * Creates a new instance of CdmRemoteSource
40 * @param nomenclaturalCode
43 public static CdmRemoteSource
NewInstance(String name
, String server
, int port
, String contextPath
, NomenclaturalCode nomenclaturalCode
) {
44 return new CdmRemoteSource(name
, server
, port
, contextPath
, nomenclaturalCode
);
48 * Creates a new CdmRemoteSource
54 * @param nomenclaturalCode
56 private CdmRemoteSource(String name
, String server
, int port
, String contextPath
, NomenclaturalCode nomenclaturalCode
) {
57 super(name
, server
, port
, contextPath
, nomenclaturalCode
);