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