org.sdn.api.OpenClient Maven / Gradle / Ivy
package org.sdn.api;
import org.sdn.api.request.OpenRequest;
import org.sdn.api.response.OpenResponse;
/**
* api接口调用
* @author gaosong
* @date 2018/10/15
*/
public interface OpenClient {
/**
*
* @param request
* @return
* @throws OpenApiException
*/
T defaultExecute(OpenRequest request) throws OpenApiException;
/**
*
* @param
* @param request
* @param authToken
* @return
* @throws OpenApiException
*/
T defaultExecute(OpenRequest request, String authToken) throws OpenApiException;
/**
* 取消初始化
* @param serverUrl
* @param appKey
* @return
*/
boolean removeClient(String serverUrl,String appKey);
}