Add the "@Override" annotation.
[vid.git] / vid-app-common / src / main / java / org / onap / vid / mso / rest / RestInterface.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.mso.rest;
22
23 import org.onap.vid.changeManagement.RequestDetailsWrapper;
24 import org.onap.vid.mso.RestObject;
25 import org.onap.vid.mso.RestObjectWithRequestInfo;
26
27 /**
28  * Created by pickjonathan on 26/06/2017.
29  */
30 public interface RestInterface {
31
32     /**
33      * Gets the.
34      *
35      * @param <T> the generic type
36      * @param t the t
37      * @param path the path
38      * @param restObject the rest object
39      * @param warpException
40      * @throws Exception the exception
41      */
42     <T> RestObjectWithRequestInfo<T> Get(T t, String path, RestObject<T> restObject, boolean warpException);
43
44     /**
45      * Delete.
46      *
47      * @param <T> the generic type
48      * @param t the t
49      * @param r the r
50      * @param path the path
51      * @param restObject the rest object
52      * @throws Exception the exception
53      */
54     <T> void Delete(T t, Object r, String path, RestObject<T> restObject);
55
56     /**
57      * Post.
58      *
59      * @param t the t
60      * @param r the r
61      * @param path the path
62      * @param restObject the rest object
63      * @throws Exception the exception
64      */
65     void Post(String t, Object r, String path, RestObject<String> restObject);
66
67     /**
68      * Put.
69      *
70      * @param <T> the generic type
71      * @param t the t
72      * @param r the r
73      * @param path the path
74      * @param restObject the rest object
75      * @throws Exception the exception
76      */
77     <T> void Put(T t, RequestDetailsWrapper r, String path, RestObject<T> restObject);
78
79     <T> RestObject<T> GetForObject(String path, Class<T> clazz);
80
81 }