2 package org.openecomp.portalapp.portal.scheduler.policy;
 
   4 import org.json.simple.JSONObject;
 
   5 import org.openecomp.portalapp.portal.scheduler.policy.rest.RequestDetails;
 
   7 public interface PolicyRestInterfaceIfc {       
 
   9          * Inits the rest client.
 
  11         public void initRestClient();
 
  16          * @param <T> the generic type
 
  18          * @param sourceId the source id
 
  19          * @param path the path
 
  20          * @param restObject the rest object
 
  21          * @throws Exception the exception
 
  23         public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;
 
  28          * @param <T> the generic type
 
  31          * @param sourceID the source ID
 
  32          * @param path the path
 
  33          * @param restObject the rest object
 
  34          * @throws Exception the exception
 
  36         public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
 
  41          * @param <T> the generic type
 
  44          * @param sourceID the source ID
 
  45          * @param path the path
 
  46          * @param restObject the rest object
 
  47          * @throws Exception the exception
 
  49         public <T> void Post(T t, JSONObject r, String sourceID, String path, RestObject<T> restObject) throws Exception;
 
  56         public void logRequest ( RequestDetails r  );