2 * Copyright © 2017-2018 AT&T Intellectual Property.
\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
7 * http://www.apache.org/licenses/LICENSE-2.0
\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
15 package org.onap.ccsdk.config.rest.adaptor.service;
\r
17 import org.onap.ccsdk.config.rest.adaptor.ConfigRestAdaptorException;
\r
18 import org.onap.ccsdk.config.rest.adaptor.data.RestResponse;
\r
20 interface ConfigRestClientServiceAdapter {
\r
22 public <T> T getResource(String path, Class<T> responseType) throws ConfigRestAdaptorException;
\r
24 public <T> T postResource(String path, Object request, Class<T> responseType) throws ConfigRestAdaptorException;
\r
26 public <T> T exchangeResource(String path, Object request, Class<T> responseType, String method)
\r
27 throws ConfigRestAdaptorException;
\r
29 public RestResponse getResource(String path) throws ConfigRestAdaptorException;
\r
31 public RestResponse postResource(String path, Object request) throws ConfigRestAdaptorException;
\r
33 public RestResponse exchangeResource(String path, Object request, String method) throws ConfigRestAdaptorException;
\r