8106c077e5e1deba5112458198a72635c4f142d8
[ccsdk/cds.git] /
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.ccsdk.apps.blueprintsprocessor.rest.service
18
19 import org.springframework.web.reactive.function.client.WebClient
20
21 interface BlueprintWebClientService {
22
23     fun webClient(): WebClient
24
25     fun <T> getResource(path: String, responseType: Class<T>): T
26
27     fun <T> getResource(path: String, headers: Map<String, String>?, responseType: Class<T>): T
28
29     fun <T> postResource(path: String, request: Any, responseType: Class<T>): T
30
31     fun <T> postResource(path: String, headers: Map<String, String>?, request: Any, responseType: Class<T>): T
32
33     fun <T> exchangeResource(methodType: String, path: String, request: Any, responseType: Class<T>): T
34
35 }
36