public abstract class SSEResponseModel extends AbstractModel implements Iterable<SSEResponseModel.SSE>, Closeable
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SSEResponseModel.SSE  | 
header, skipSign| Constructor and Description | 
|---|
SSEResponseModel()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
abstract String | 
getRequestId()  | 
boolean | 
isStream()
Check if the model is a stream type. 
 | 
Iterator<SSEResponseModel.SSE> | 
iterator()  | 
abstract void | 
setRequestId(String requestId)  | 
void | 
setResponse(okhttp3.Response response)  | 
void | 
setToken(CircuitBreaker.Token token)  | 
protected void | 
toMap(HashMap<String,String> map,
     String prefix)
Abstract method to be implemented by subclasses. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic abstract String getRequestId()
public abstract void setRequestId(String requestId)
public void setResponse(okhttp3.Response response)
public boolean isStream()
AbstractModelisStream in class AbstractModelpublic void setToken(CircuitBreaker.Token token)
public Iterator<SSEResponseModel.SSE> iterator()
iterator in interface Iterable<SSEResponseModel.SSE>protected void toMap(HashMap<String,String> map, String prefix)
AbstractModeltoMap in class AbstractModelmap - The map to populate with the model's parameters.prefix - A string prefix for the keys.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2025. All rights reserved.