类 DnjsonClient
java.lang.Object
com.agentsflex.core.model.client.impl.DnjsonClient
- 所有已实现的接口:
StreamClient,okhttp3.Callback
-
字段概要
字段修饰符和类型字段说明private ChatConfigprivate booleanprivate static final okhttp3.MediaTypeprivate StreamClientListenerprivate static final org.slf4j.Loggerprivate okhttp3.OkHttpClient -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明okhttp3.OkHttpClientprivate voidvoidonFailure(okhttp3.Call call, IOException e) voidonResponse(okhttp3.Call call, okhttp3.Response response) voidsetOkHttpClient(okhttp3.OkHttpClient okHttpClient) voidstart(String url, Map<String, String> headers, String payload, StreamClientListener listener, ChatConfig config) voidstop()
-
字段详细资料
-
log
-
JSON_TYPE
-
okHttpClient
-
listener
-
config
-
isStop
-
-
构造器详细资料
-
DnjsonClient
public DnjsonClient() -
DnjsonClient
-
-
方法详细资料
-
getOkHttpClient
-
setOkHttpClient
-
start
public void start(String url, Map<String, String> headers, String payload, StreamClientListener listener, ChatConfig config) - 指定者:
start在接口中StreamClient
-
stop
- 指定者:
stop在接口中StreamClient
-
onFailure
- 指定者:
onFailure在接口中okhttp3.Callback
-
onResponse
public void onResponse(@NotNull okhttp3.Call call, @NotNull okhttp3.Response response) throws IOException - 指定者:
onResponse在接口中okhttp3.Callback- 抛出:
IOException
-
markAsStopped
-