public interface FastFailHttpServerResponse
extends io.vertx.core.http.HttpServerResponse
HttpServerRequest throwing an exception no matter which method got
called.
This is useful for testing. For testing inherit from this and override the
methods you need to mock.| Modifier and Type | Method and Description |
|---|---|
default io.vertx.core.http.HttpServerResponse |
bodyEndHandler(io.vertx.core.Handler<Void> handler) |
default long |
bytesWritten() |
default void |
close() |
default boolean |
closed() |
default io.vertx.core.http.HttpServerResponse |
closeHandler(io.vertx.core.Handler<Void> handler) |
default io.vertx.core.http.HttpServerResponse |
drainHandler(io.vertx.core.Handler<Void> handler) |
default void |
end() |
default void |
end(io.vertx.core.buffer.Buffer chunk) |
default void |
end(String chunk) |
default void |
end(String chunk,
String enc) |
default boolean |
ended() |
default io.vertx.core.http.HttpServerResponse |
endHandler(io.vertx.core.Handler<Void> handler) |
default io.vertx.core.http.HttpServerResponse |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
default int |
getStatusCode() |
default String |
getStatusMessage() |
default io.vertx.core.MultiMap |
headers() |
default io.vertx.core.http.HttpServerResponse |
headersEndHandler(io.vertx.core.Handler<Void> handler) |
default boolean |
headWritten() |
default boolean |
isChunked() |
default io.vertx.core.http.HttpServerResponse |
push(io.vertx.core.http.HttpMethod method,
String path,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) |
default io.vertx.core.http.HttpServerResponse |
push(io.vertx.core.http.HttpMethod method,
String path,
io.vertx.core.MultiMap headers,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) |
default io.vertx.core.http.HttpServerResponse |
push(io.vertx.core.http.HttpMethod method,
String host,
String path,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) |
default io.vertx.core.http.HttpServerResponse |
push(io.vertx.core.http.HttpMethod method,
String host,
String path,
io.vertx.core.MultiMap headers,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) |
default io.vertx.core.http.HttpServerResponse |
putHeader(CharSequence name,
CharSequence value) |
default io.vertx.core.http.HttpServerResponse |
putHeader(CharSequence name,
Iterable<CharSequence> values) |
default io.vertx.core.http.HttpServerResponse |
putHeader(String name,
Iterable<String> values) |
default io.vertx.core.http.HttpServerResponse |
putHeader(String name,
String value) |
default io.vertx.core.http.HttpServerResponse |
putTrailer(CharSequence name,
CharSequence value) |
default io.vertx.core.http.HttpServerResponse |
putTrailer(CharSequence name,
Iterable<CharSequence> value) |
default io.vertx.core.http.HttpServerResponse |
putTrailer(String name,
Iterable<String> values) |
default io.vertx.core.http.HttpServerResponse |
putTrailer(String name,
String value) |
default void |
reset(long code) |
default io.vertx.core.http.HttpServerResponse |
sendFile(String filename,
long offset,
long length) |
default io.vertx.core.http.HttpServerResponse |
sendFile(String filename,
long offset,
long length,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) |
default io.vertx.core.http.HttpServerResponse |
setChunked(boolean chunked) |
default io.vertx.core.http.HttpServerResponse |
setStatusCode(int statusCode) |
default io.vertx.core.http.HttpServerResponse |
setStatusMessage(String statusMessage) |
default io.vertx.core.http.HttpServerResponse |
setWriteQueueMaxSize(int maxSize) |
default int |
streamId() |
default io.vertx.core.MultiMap |
trailers() |
default io.vertx.core.http.HttpServerResponse |
write(io.vertx.core.buffer.Buffer data) |
default io.vertx.core.http.HttpServerResponse |
write(String chunk) |
default io.vertx.core.http.HttpServerResponse |
write(String chunk,
String enc) |
default io.vertx.core.http.HttpServerResponse |
writeContinue() |
default io.vertx.core.http.HttpServerResponse |
writeCustomFrame(int type,
int flags,
io.vertx.core.buffer.Buffer payload) |
default boolean |
writeQueueFull() |
static final String msg
default 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>default io.vertx.core.http.HttpServerResponse write(io.vertx.core.buffer.Buffer data)
write in interface io.vertx.core.http.HttpServerResponsewrite in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>default 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>default boolean writeQueueFull()
writeQueueFull in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>default io.vertx.core.http.HttpServerResponse drainHandler(io.vertx.core.Handler<Void> handler)
drainHandler in interface io.vertx.core.http.HttpServerResponsedrainHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>default int getStatusCode()
getStatusCode in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse setStatusCode(int statusCode)
setStatusCode in interface io.vertx.core.http.HttpServerResponsedefault String getStatusMessage()
getStatusMessage in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse setStatusMessage(String statusMessage)
setStatusMessage in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse setChunked(boolean chunked)
setChunked in interface io.vertx.core.http.HttpServerResponsedefault boolean isChunked()
isChunked in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.MultiMap headers()
headers in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putHeader(String name, String value)
putHeader in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, CharSequence value)
putHeader in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putHeader(String name, Iterable<String> values)
putHeader in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, Iterable<CharSequence> values)
putHeader in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.MultiMap trailers()
trailers in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putTrailer(String name, String value)
putTrailer in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putTrailer(CharSequence name, CharSequence value)
putTrailer in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putTrailer(String name, Iterable<String> values)
putTrailer in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse putTrailer(CharSequence name, Iterable<CharSequence> value)
putTrailer in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse closeHandler(io.vertx.core.Handler<Void> handler)
closeHandler in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse endHandler(io.vertx.core.Handler<Void> handler)
endHandler in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse write(String chunk, String enc)
write in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse write(String chunk)
write in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse writeContinue()
writeContinue in interface io.vertx.core.http.HttpServerResponsedefault void end(String chunk)
end in interface io.vertx.core.http.HttpServerResponsedefault void end(String chunk, String enc)
end in interface io.vertx.core.http.HttpServerResponsedefault 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>default void end()
end in interface io.vertx.core.http.HttpServerResponseend in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>default io.vertx.core.http.HttpServerResponse sendFile(String filename, long offset, long length)
sendFile in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse sendFile(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
sendFile in interface io.vertx.core.http.HttpServerResponsedefault void close()
close in interface io.vertx.core.http.HttpServerResponsedefault boolean ended()
ended in interface io.vertx.core.http.HttpServerResponsedefault boolean closed()
closed in interface io.vertx.core.http.HttpServerResponsedefault boolean headWritten()
headWritten in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse headersEndHandler(io.vertx.core.Handler<Void> handler)
headersEndHandler in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse bodyEndHandler(io.vertx.core.Handler<Void> handler)
bodyEndHandler in interface io.vertx.core.http.HttpServerResponsedefault long bytesWritten()
bytesWritten in interface io.vertx.core.http.HttpServerResponsedefault int streamId()
streamId in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method,
String host,
String path,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler)
push in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method,
String path,
io.vertx.core.MultiMap headers,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler)
push in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method,
String path,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler)
push in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method,
String host,
String path,
io.vertx.core.MultiMap headers,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler)
push in interface io.vertx.core.http.HttpServerResponsedefault void reset(long code)
reset in interface io.vertx.core.http.HttpServerResponsedefault io.vertx.core.http.HttpServerResponse writeCustomFrame(int type,
int flags,
io.vertx.core.buffer.Buffer payload)
writeCustomFrame in interface io.vertx.core.http.HttpServerResponseCopyright © 2016–2020. All rights reserved.