org.onap migration
[vid.git] / vid-app-common / src / main / java / org / onap / vid / mso / rest / RestInterface.java
1 package org.onap.vid.mso.rest;
2
3 import org.onap.vid.mso.RestObject;
4
5 import javax.ws.rs.core.MultivaluedHashMap;
6
7 /**
8  * Created by pickjonathan on 26/06/2017.
9  */
10 public interface RestInterface {
11
12     /**
13      * Inits the rest client.
14      */
15     MultivaluedHashMap<String, Object> initMsoClient();
16
17     /**
18      * Gets the.
19      *
20      * @param <T> the generic type
21      * @param t the t
22      * @param sourceId the source id
23      * @param path the path
24      * @param restObject the rest object
25      * @throws Exception the exception
26      */
27     <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;
28
29     /**
30      * Delete.
31      *
32      * @param <T> the generic type
33      * @param t the t
34      * @param r the r
35      * @param sourceID the source ID
36      * @param path the path
37      * @param restObject the rest object
38      * @throws Exception the exception
39      */
40     <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
41
42     /**
43      * Post.
44      *
45      * @param <T> the generic type
46      * @param t the t
47      * @param r the r
48      * @param sourceID the source ID
49      * @param path the path
50      * @param restObject the rest object
51      * @throws Exception the exception
52      */
53     <T> void Post(T t, Object r, String sourceID, String path, RestObject<T> restObject) throws Exception;
54
55     /**
56      * Put.
57      *
58      * @param <T> the generic type
59      * @param t the t
60      * @param r the r
61      * @param sourceID the source ID
62      * @param path the path
63      * @param restObject the rest object
64      * @throws Exception the exception
65      */
66     <T> void Put(T t, org.onap.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception;
67
68 }