public interface ResponseWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close connection
|
void |
flush()
flush response immediately
|
<T> void |
write(int code,
String contentType,
Map<String,Object> headers,
T data)
Write response data
|
<T> void |
write(int code,
String contentType,
Map<String,Object> headers,
T data,
boolean close)
Write response data
|
<T> void |
write(int code,
String contentType,
Map<String,Object> headers,
T data,
boolean close,
boolean flush)
Write response data
|
<T> void |
write(int code,
String contentType,
T data)
Write response data
|
<T> void |
write(int code,
String contentType,
T data,
boolean close)
Write response data
|
<T> void |
write(int code,
T data)
Write response data
|
<T> void |
writeAndClose(int code,
String contentType,
T data)
Write response data
|
<T> void write(int code,
T data)
T - data typecode - http codedata - data<T> void write(int code,
String contentType,
T data)
T - data typecode - http codecontentType - contentTypedata - data<T> void write(int code,
String contentType,
Map<String,Object> headers,
T data)
T - data typecode - http codecontentType - contentTypeheaders - responses headerdata - data<T> void write(int code,
String contentType,
T data,
boolean close)
T - data typecode - http codecontentType - contentTypedata - dataclose - close connection<T> void write(int code,
String contentType,
Map<String,Object> headers,
T data,
boolean close)
T - data typecode - http codecontentType - contentTypeheaders - responses headerdata - dataclose - close connection or not<T> void write(int code,
String contentType,
Map<String,Object> headers,
T data,
boolean close,
boolean flush)
T - data typecode - http codecontentType - contentTypeheaders - responses headerdata - dataclose - close connection or notflush - flush response immediately<T> void writeAndClose(int code,
String contentType,
T data)
T - data typecode - http codecontentType - contentTypedata - datavoid flush()
void close()
Copyright © 2024 flmelody. All rights reserved.