diff options
Diffstat (limited to 'src/main/java/org/onap/dcaegen2/services/pmmapper/model/ServerResource.java')
-rw-r--r-- | src/main/java/org/onap/dcaegen2/services/pmmapper/model/ServerResource.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/org/onap/dcaegen2/services/pmmapper/model/ServerResource.java b/src/main/java/org/onap/dcaegen2/services/pmmapper/model/ServerResource.java index 5c15280..ec71bdc 100644 --- a/src/main/java/org/onap/dcaegen2/services/pmmapper/model/ServerResource.java +++ b/src/main/java/org/onap/dcaegen2/services/pmmapper/model/ServerResource.java @@ -2,6 +2,7 @@ * - * * ============LICENSE_START======================================================= * * Copyright (C) 2019 Nordix Foundation. + * * 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. @@ -32,19 +33,21 @@ public abstract class ServerResource implements HttpHandler { /** * Creates a new server resource with a custom method and endpoint. + * * @param httpMethod Method that the resource should be accessible by. * @param endpointTemplate Endpoint that the resource should be accessible by. */ - public ServerResource(String httpMethod, String endpointTemplate) { + protected ServerResource(String httpMethod, String endpointTemplate) { this.httpMethod = httpMethod; this.endpointTemplate = endpointTemplate; } /** * Creates a new server resource with a custom endpoint and method 'get'. + * * @param endpointTemplate Endpoint that the resource should be accessible by. */ - public ServerResource(String endpointTemplate) { + protected ServerResource(String endpointTemplate) { this.httpMethod = GET_STRING; this.endpointTemplate = endpointTemplate; } |