/*- * ============LICENSE_START======================================================= * VID * ================================================================================ * Copyright (C) 2018 - 2019 Nokia. All rights reserved. * ================================================================================ * 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. * ============LICENSE_END========================================================= */ package org.onap.vid.client; import io.joshworks.restclient.http.HttpResponse; import io.joshworks.restclient.http.JsonNode; import java.io.InputStream; import java.util.Map; public interface SyncRestClientInterface { class HEADERS { public static final String CONTENT_TYPE = "Content-Type"; public static final String AUTHORIZATION = "Authorization"; public static final String X_ECOMP_INSTANCE_ID = "X-ECOMP-InstanceID"; } HttpResponse post(String url, Map headers, Object body); HttpResponse post(String url, Map headers, Object body, Class aClass); HttpResponse get(String url, Map headers, Map routeParams); HttpResponse get(String url, Map headers, Map routeParams, Class aClass); HttpResponse getStream(String url, Map headers, Map routeParams); HttpResponse put(String url, Map headers, Object body); HttpResponse put(String url, Map headers, Object body, Class aClass); HttpResponse delete(String url, Map headers, Object body, Class aClass); HttpResponse delete(String url, Map headers, Class aClass); HttpResponse delete(String url, Map headers); void destroy(); }