Changeset 7150 for SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/Institution.java
- Timestamp:
- 09/28/17 09:09:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/Institution.java
r5957 r7150 28 28 endpoints.add(new Endpoint(endpointUrl, FCSProtocolVersion.LEGACY)); 29 29 return endpointUrl; 30 } 31 32 public String addEndpoint(String endpointUrl, FCSProtocolVersion version) { 33 if (version.equals(FCSProtocolVersion.VERSION_2)) { 34 endpoints.add(new Endpoint(endpointUrl, FCSProtocolVersion.VERSION_2)); 35 } else if (version.equals(FCSProtocolVersion.VERSION_1)) { 36 endpoints.add(new Endpoint(endpointUrl, FCSProtocolVersion.VERSION_1)); 37 } else if (version.equals(FCSProtocolVersion.LEGACY)) { 38 endpoints.add(new Endpoint(endpointUrl, FCSProtocolVersion.LEGACY)); 39 } else { 40 endpoints.add(new Endpoint(endpointUrl, FCSProtocolVersion.LEGACY)); 41 } 42 return endpointUrl; 30 43 } 31 44
Note: See TracChangeset
for help on using the changeset viewer.