public class LocalHttpServerResponse extends BufferBridge implements FastFailHttpServerResponse
msg| Constructor and Description |
|---|
LocalHttpServerResponse(io.vertx.core.Vertx vertx,
io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
closed() |
io.vertx.core.http.HttpServerResponse |
closeHandler(io.vertx.core.Handler<Void> handler) |
void |
end() |
void |
end(io.vertx.core.buffer.Buffer chunk) |
void |
end(String chunk) |
void |
end(String chunk,
String enc) |
boolean |
ended() |
io.vertx.core.http.HttpServerResponse |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
int |
getStatusCode() |
String |
getStatusMessage() |
io.vertx.core.MultiMap |
headers() |
boolean |
headWritten() |
boolean |
isChunked() |
io.vertx.core.http.HttpServerResponse |
putHeader(CharSequence name,
CharSequence value) |
io.vertx.core.http.HttpServerResponse |
putHeader(CharSequence name,
Iterable<CharSequence> values) |
io.vertx.core.http.HttpServerResponse |
putHeader(String name,
Iterable<String> values) |
io.vertx.core.http.HttpServerResponse |
putHeader(String name,
String value) |
io.vertx.core.http.HttpServerResponse |
setChunked(boolean chunked) |
io.vertx.core.http.HttpServerResponse |
setStatusCode(int statusCode) |
io.vertx.core.http.HttpServerResponse |
setStatusMessage(String statusMessage) |
io.vertx.core.http.HttpServerResponse |
setWriteQueueMaxSize(int maxSize) |
io.vertx.core.http.HttpServerResponse |
write(io.vertx.core.buffer.Buffer chunk) |
io.vertx.core.http.HttpServerResponse |
write(String chunk) |
io.vertx.core.http.HttpServerResponse |
write(String chunk,
String enc) |
boolean |
writeQueueFull() |
doEnd, doWrite, pump, setDataHandler, setEndHandler, setExceptionHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbodyEndHandler, bytesWritten, drainHandler, endHandler, headersEndHandler, push, push, push, push, putTrailer, putTrailer, putTrailer, putTrailer, reset, sendFile, sendFile, streamId, trailers, writeContinue, writeCustomFramepublic LocalHttpServerResponse(io.vertx.core.Vertx vertx,
io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler)
public int getStatusCode()
getStatusCode in interface io.vertx.core.http.HttpServerResponsegetStatusCode in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse setStatusCode(int statusCode)
setStatusCode in interface io.vertx.core.http.HttpServerResponsesetStatusCode in interface FastFailHttpServerResponsepublic String getStatusMessage()
getStatusMessage in interface io.vertx.core.http.HttpServerResponsegetStatusMessage in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse setStatusMessage(String statusMessage)
setStatusMessage in interface io.vertx.core.http.HttpServerResponsesetStatusMessage in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse setChunked(boolean chunked)
setChunked in interface io.vertx.core.http.HttpServerResponsesetChunked in interface FastFailHttpServerResponsepublic boolean isChunked()
isChunked in interface io.vertx.core.http.HttpServerResponseisChunked in interface FastFailHttpServerResponsepublic io.vertx.core.MultiMap headers()
headers in interface io.vertx.core.http.HttpServerResponseheaders in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse putHeader(String name, String value)
putHeader in interface io.vertx.core.http.HttpServerResponseputHeader in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, CharSequence value)
putHeader in interface io.vertx.core.http.HttpServerResponseputHeader in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse putHeader(String name, Iterable<String> values)
putHeader in interface io.vertx.core.http.HttpServerResponseputHeader in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, Iterable<CharSequence> values)
putHeader in interface io.vertx.core.http.HttpServerResponseputHeader in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse closeHandler(io.vertx.core.Handler<Void> handler)
closeHandler in interface io.vertx.core.http.HttpServerResponsecloseHandler in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse write(io.vertx.core.buffer.Buffer chunk)
write in interface io.vertx.core.http.HttpServerResponsewrite in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>write in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse write(String chunk, String enc)
write in interface io.vertx.core.http.HttpServerResponsewrite in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse write(String chunk)
write in interface io.vertx.core.http.HttpServerResponsewrite in interface FastFailHttpServerResponsepublic void end(String chunk)
end in interface io.vertx.core.http.HttpServerResponseend in interface FastFailHttpServerResponsepublic void end(String chunk, String enc)
end in interface io.vertx.core.http.HttpServerResponseend in interface FastFailHttpServerResponsepublic void end(io.vertx.core.buffer.Buffer chunk)
end in interface io.vertx.core.http.HttpServerResponseend in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>end in interface FastFailHttpServerResponsepublic void end()
end in interface io.vertx.core.http.HttpServerResponseend in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>end in interface FastFailHttpServerResponsepublic void close()
close in interface io.vertx.core.http.HttpServerResponseclose in interface FastFailHttpServerResponsepublic boolean ended()
ended in interface io.vertx.core.http.HttpServerResponseended in interface FastFailHttpServerResponsepublic boolean closed()
closed in interface io.vertx.core.http.HttpServerResponseclosed in interface FastFailHttpServerResponsepublic boolean headWritten()
headWritten in interface io.vertx.core.http.HttpServerResponseheadWritten in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize in interface io.vertx.core.http.HttpServerResponsesetWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>setWriteQueueMaxSize in interface FastFailHttpServerResponsepublic boolean writeQueueFull()
writeQueueFull in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>writeQueueFull in interface FastFailHttpServerResponsepublic io.vertx.core.http.HttpServerResponse exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface io.vertx.core.http.HttpServerResponseexceptionHandler in interface io.vertx.core.streams.StreamBaseexceptionHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>exceptionHandler in interface FastFailHttpServerResponseCopyright © 2016–2020. All rights reserved.