Package org.swisspush.gateleen.core.http
Interface FastFailHttpServerResponse
-
- All Superinterfaces:
io.vertx.core.http.HttpServerResponse,io.vertx.core.streams.StreamBase,io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
- All Known Implementing Classes:
DummyHttpServerResponse,LocalHttpServerResponse
public interface FastFailHttpServerResponse extends io.vertx.core.http.HttpServerResponseAHttpServerRequestthrowing 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.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default io.vertx.core.http.HttpServerResponsebodyEndHandler(io.vertx.core.Handler<Void> handler)default longbytesWritten()default voidclose()default booleanclosed()default io.vertx.core.http.HttpServerResponsecloseHandler(io.vertx.core.Handler<Void> handler)default io.vertx.core.http.HttpServerResponsedrainHandler(io.vertx.core.Handler<Void> handler)default voidend()default voidend(io.vertx.core.buffer.Buffer chunk)default voidend(String chunk)default voidend(String chunk, String enc)default booleanended()default io.vertx.core.http.HttpServerResponseendHandler(io.vertx.core.Handler<Void> handler)default io.vertx.core.http.HttpServerResponseexceptionHandler(io.vertx.core.Handler<Throwable> handler)default intgetStatusCode()default StringgetStatusMessage()default io.vertx.core.MultiMapheaders()default io.vertx.core.http.HttpServerResponseheadersEndHandler(io.vertx.core.Handler<Void> handler)default booleanheadWritten()default booleanisChunked()default io.vertx.core.http.HttpServerResponsepush(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.HttpServerResponsepush(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.HttpServerResponsepush(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.HttpServerResponsepush(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.HttpServerResponseputHeader(CharSequence name, CharSequence value)default io.vertx.core.http.HttpServerResponseputHeader(CharSequence name, Iterable<CharSequence> values)default io.vertx.core.http.HttpServerResponseputHeader(String name, Iterable<String> values)default io.vertx.core.http.HttpServerResponseputHeader(String name, String value)default io.vertx.core.http.HttpServerResponseputTrailer(CharSequence name, CharSequence value)default io.vertx.core.http.HttpServerResponseputTrailer(CharSequence name, Iterable<CharSequence> value)default io.vertx.core.http.HttpServerResponseputTrailer(String name, Iterable<String> values)default io.vertx.core.http.HttpServerResponseputTrailer(String name, String value)default voidreset(long code)default io.vertx.core.http.HttpServerResponsesendFile(String filename, long offset, long length)default io.vertx.core.http.HttpServerResponsesendFile(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)default io.vertx.core.http.HttpServerResponsesetChunked(boolean chunked)default io.vertx.core.http.HttpServerResponsesetStatusCode(int statusCode)default io.vertx.core.http.HttpServerResponsesetStatusMessage(String statusMessage)default io.vertx.core.http.HttpServerResponsesetWriteQueueMaxSize(int maxSize)default intstreamId()default io.vertx.core.MultiMaptrailers()default io.vertx.core.http.HttpServerResponsewrite(io.vertx.core.buffer.Buffer data)default io.vertx.core.http.HttpServerResponsewrite(String chunk)default io.vertx.core.http.HttpServerResponsewrite(String chunk, String enc)default io.vertx.core.http.HttpServerResponsewriteContinue()default io.vertx.core.http.HttpServerResponsewriteCustomFrame(int type, int flags, io.vertx.core.buffer.Buffer payload)default booleanwriteQueueFull()
-
-
-
Field Detail
-
msg
static final String msg
- See Also:
- Constant Field Values
-
-
Method Detail
-
exceptionHandler
default io.vertx.core.http.HttpServerResponse exceptionHandler(io.vertx.core.Handler<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceio.vertx.core.http.HttpServerResponse- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.StreamBase- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
write
default io.vertx.core.http.HttpServerResponse write(io.vertx.core.buffer.Buffer data)
- Specified by:
writein interfaceio.vertx.core.http.HttpServerResponse- Specified by:
writein interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
setWriteQueueMaxSize
default io.vertx.core.http.HttpServerResponse setWriteQueueMaxSize(int maxSize)
- Specified by:
setWriteQueueMaxSizein interfaceio.vertx.core.http.HttpServerResponse- Specified by:
setWriteQueueMaxSizein interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
writeQueueFull
default boolean writeQueueFull()
- Specified by:
writeQueueFullin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
drainHandler
default io.vertx.core.http.HttpServerResponse drainHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
drainHandlerin interfaceio.vertx.core.http.HttpServerResponse- Specified by:
drainHandlerin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
getStatusCode
default int getStatusCode()
- Specified by:
getStatusCodein interfaceio.vertx.core.http.HttpServerResponse
-
setStatusCode
default io.vertx.core.http.HttpServerResponse setStatusCode(int statusCode)
- Specified by:
setStatusCodein interfaceio.vertx.core.http.HttpServerResponse
-
getStatusMessage
default String getStatusMessage()
- Specified by:
getStatusMessagein interfaceio.vertx.core.http.HttpServerResponse
-
setStatusMessage
default io.vertx.core.http.HttpServerResponse setStatusMessage(String statusMessage)
- Specified by:
setStatusMessagein interfaceio.vertx.core.http.HttpServerResponse
-
setChunked
default io.vertx.core.http.HttpServerResponse setChunked(boolean chunked)
- Specified by:
setChunkedin interfaceio.vertx.core.http.HttpServerResponse
-
isChunked
default boolean isChunked()
- Specified by:
isChunkedin interfaceio.vertx.core.http.HttpServerResponse
-
headers
default io.vertx.core.MultiMap headers()
- Specified by:
headersin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
default io.vertx.core.http.HttpServerResponse putHeader(String name, String value)
- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
default io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, CharSequence value)
- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
default io.vertx.core.http.HttpServerResponse putHeader(String name, Iterable<String> values)
- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
default io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, Iterable<CharSequence> values)
- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
trailers
default io.vertx.core.MultiMap trailers()
- Specified by:
trailersin interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
default io.vertx.core.http.HttpServerResponse putTrailer(String name, String value)
- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
default io.vertx.core.http.HttpServerResponse putTrailer(CharSequence name, CharSequence value)
- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
default io.vertx.core.http.HttpServerResponse putTrailer(String name, Iterable<String> values)
- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
default io.vertx.core.http.HttpServerResponse putTrailer(CharSequence name, Iterable<CharSequence> value)
- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
closeHandler
default io.vertx.core.http.HttpServerResponse closeHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
closeHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
endHandler
default io.vertx.core.http.HttpServerResponse endHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
endHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
write
default io.vertx.core.http.HttpServerResponse write(String chunk, String enc)
- Specified by:
writein interfaceio.vertx.core.http.HttpServerResponse
-
write
default io.vertx.core.http.HttpServerResponse write(String chunk)
- Specified by:
writein interfaceio.vertx.core.http.HttpServerResponse
-
writeContinue
default io.vertx.core.http.HttpServerResponse writeContinue()
- Specified by:
writeContinuein interfaceio.vertx.core.http.HttpServerResponse
-
end
default void end(String chunk)
- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse
-
end
default void end(String chunk, String enc)
- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse
-
end
default void end(io.vertx.core.buffer.Buffer chunk)
- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse- Specified by:
endin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
end
default void end()
- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse- Specified by:
endin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
sendFile
default io.vertx.core.http.HttpServerResponse sendFile(String filename, long offset, long length)
- Specified by:
sendFilein interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
default io.vertx.core.http.HttpServerResponse sendFile(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
- Specified by:
sendFilein interfaceio.vertx.core.http.HttpServerResponse
-
close
default void close()
- Specified by:
closein interfaceio.vertx.core.http.HttpServerResponse
-
ended
default boolean ended()
- Specified by:
endedin interfaceio.vertx.core.http.HttpServerResponse
-
closed
default boolean closed()
- Specified by:
closedin interfaceio.vertx.core.http.HttpServerResponse
-
headWritten
default boolean headWritten()
- Specified by:
headWrittenin interfaceio.vertx.core.http.HttpServerResponse
-
headersEndHandler
default io.vertx.core.http.HttpServerResponse headersEndHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
headersEndHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
bodyEndHandler
default io.vertx.core.http.HttpServerResponse bodyEndHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
bodyEndHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
bytesWritten
default long bytesWritten()
- Specified by:
bytesWrittenin interfaceio.vertx.core.http.HttpServerResponse
-
streamId
default int streamId()
- Specified by:
streamIdin interfaceio.vertx.core.http.HttpServerResponse
-
push
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)- Specified by:
pushin interfaceio.vertx.core.http.HttpServerResponse
-
push
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)- Specified by:
pushin interfaceio.vertx.core.http.HttpServerResponse
-
push
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)- Specified by:
pushin interfaceio.vertx.core.http.HttpServerResponse
-
push
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)- Specified by:
pushin interfaceio.vertx.core.http.HttpServerResponse
-
reset
default void reset(long code)
- Specified by:
resetin interfaceio.vertx.core.http.HttpServerResponse
-
writeCustomFrame
default io.vertx.core.http.HttpServerResponse writeCustomFrame(int type, int flags, io.vertx.core.buffer.Buffer payload)- Specified by:
writeCustomFramein interfaceio.vertx.core.http.HttpServerResponse
-
-