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, toJsonString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public abstract String getRequestId()
public abstract void setRequestId(String requestId)
public void setResponse(okhttp3.Response response)
public boolean isStream()
AbstractModel
isStream
in class AbstractModel
public 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)
AbstractModel
toMap
in class AbstractModel
map
- The map to populate with the model's parameters.prefix
- A string prefix for the keys.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2025. All rights reserved.