package org.onap.vid.policy; import org.json.simple.JSONObject; import org.onap.vid.policy.rest.RequestDetails; public interface PolicyRestInterfaceIfc { /** * Inits the rest client. */ public void initRestClient(); /** * Gets the. * * @param the generic type * @param t the t * @param sourceId the source id * @param path the path * @param restObject the rest object * @throws Exception the exception */ public void Get (T t, String sourceId, String path, RestObject restObject ); /** * Delete. * * @param the generic type * @param t the t * @param r the r * @param sourceID the source ID * @param path the path * @param restObject the rest object * @throws Exception the exception */ public void Delete(T t, RequestDetails r, String sourceID, String path, RestObject restObject); /** * Post. * * @param the generic type * @param t the t * @param r the r * @param sourceID the source ID * @param path the path * @param restObject the rest object * @throws Exception the exception */ public void Post(T t, JSONObject r, String sourceID, String path, RestObject restObject); /*** * Log request. * * @param r the r */ public void logRequest ( RequestDetails r ); }