public class StreamHelper extends Object
| Constructor and Description |
|---|
StreamHelper() |
| Modifier and Type | Method and Description |
|---|---|
static PanguChatResp |
getAllRespFromChunk(List<PanguChatChunk> panguChatChunks) |
static org.apache.http.nio.client.methods.AsyncCharConsumer<org.apache.http.HttpResponse> |
getAsyncConsumer(StreamCallBack streamCallBack,
String callBackId,
List<PanguChatChunk> panguChatChunks) |
static org.apache.http.nio.client.methods.AsyncCharConsumer<org.apache.http.HttpResponse> |
getAsyncConsumer(StreamCallBack streamCallBack,
String callBackId,
List<PanguChatChunk> panguChatChunks,
List<String> eventChunks) |
static org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> |
getCallBack(StreamCallBack streamCallBack,
String callBackId,
org.apache.http.client.methods.HttpPost httpPost) |
public static org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> getCallBack(StreamCallBack streamCallBack, String callBackId, org.apache.http.client.methods.HttpPost httpPost)
public static PanguChatResp getAllRespFromChunk(List<PanguChatChunk> panguChatChunks)
public static org.apache.http.nio.client.methods.AsyncCharConsumer<org.apache.http.HttpResponse> getAsyncConsumer(StreamCallBack streamCallBack, String callBackId, List<PanguChatChunk> panguChatChunks)
public static org.apache.http.nio.client.methods.AsyncCharConsumer<org.apache.http.HttpResponse> getAsyncConsumer(StreamCallBack streamCallBack, String callBackId, List<PanguChatChunk> panguChatChunks, List<String> eventChunks)
Copyright © 2024. All rights reserved.