diff options
author | Stanislav Marszalek <s.marszalek2@partner.samsung.com> | 2021-08-26 08:28:33 +0200 |
---|---|---|
committer | Stanislav Marszalek <s.marszalek2@partner.samsung.com> | 2021-08-26 08:28:33 +0200 |
commit | f176c991d7ea04b10503ef79c98c9adc87e91fb6 (patch) | |
tree | 85c0af740887e44e8099704a979bf3a8295669dd /src/main/java/org/onap/a1pesimulator/service/a1/RanA1ServiceLocalStoreImpl.java | |
parent | deabb9bd3f5ba86cafa978954356e5d4ba8a4ab3 (diff) |
Adding copyright to A1 PE Simulator new files
Issue-ID: INT-1963
Signed-off-by: Stanislav Marszalek <s.marszalek2@partner.samsung.com>
Change-Id: I02d3684c98d563d7f386de2fdf032e935ac47b3f
Diffstat (limited to 'src/main/java/org/onap/a1pesimulator/service/a1/RanA1ServiceLocalStoreImpl.java')
-rw-r--r-- | src/main/java/org/onap/a1pesimulator/service/a1/RanA1ServiceLocalStoreImpl.java | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/main/java/org/onap/a1pesimulator/service/a1/RanA1ServiceLocalStoreImpl.java b/src/main/java/org/onap/a1pesimulator/service/a1/RanA1ServiceLocalStoreImpl.java index feb481d..de451cf 100644 --- a/src/main/java/org/onap/a1pesimulator/service/a1/RanA1ServiceLocalStoreImpl.java +++ b/src/main/java/org/onap/a1pesimulator/service/a1/RanA1ServiceLocalStoreImpl.java @@ -1,11 +1,23 @@ +/* + * Copyright (C) 2021 Samsung Electronics + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License + */ + package org.onap.a1pesimulator.service.a1; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; @@ -14,6 +26,9 @@ import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import org.springframework.web.client.RestClientException; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; + /** * A1 Service implementation which uses in-memory policy data store. */ @@ -94,7 +109,7 @@ public class RanA1ServiceLocalStoreImpl implements A1Service { throws RestClientException { if (policyTypesMap.containsKey(policyTypeId) && policyTypesMap.get(policyTypeId).containsKey(policyId)) { return ResponseEntity.ok().contentType(MediaType.APPLICATION_JSON) - .body(policyTypesMap.get(policyTypeId).get(policyId)); + .body(policyTypesMap.get(policyTypeId).get(policyId)); } else { return ResponseEntity.notFound().build(); } |