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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringmsg
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default io.vertx.core.http.HttpServerResponsebodyEndHandler(io.vertx.core.Handler<java.lang.Void> handler)default longbytesWritten()default voidclose()default booleanclosed()default io.vertx.core.http.HttpServerResponsecloseHandler(io.vertx.core.Handler<java.lang.Void> handler)default io.vertx.core.http.HttpServerResponsedrainHandler(io.vertx.core.Handler<java.lang.Void> handler)default voidend()default voidend(io.vertx.core.buffer.Buffer chunk)default voidend(java.lang.String chunk)default voidend(java.lang.String chunk, java.lang.String enc)default booleanended()default io.vertx.core.http.HttpServerResponseendHandler(io.vertx.core.Handler<java.lang.Void> handler)default io.vertx.core.http.HttpServerResponseexceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)default intgetStatusCode()default java.lang.StringgetStatusMessage()default io.vertx.core.MultiMapheaders()default io.vertx.core.http.HttpServerResponseheadersEndHandler(io.vertx.core.Handler<java.lang.Void> handler)default booleanheadWritten()default booleanisChunked()default io.vertx.core.http.HttpServerResponsepush(io.vertx.core.http.HttpMethod method, java.lang.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, java.lang.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, java.lang.String host, java.lang.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, java.lang.String host, java.lang.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(java.lang.CharSequence name, java.lang.CharSequence value)default io.vertx.core.http.HttpServerResponseputHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> values)default io.vertx.core.http.HttpServerResponseputHeader(java.lang.String name, java.lang.Iterable<java.lang.String> values)default io.vertx.core.http.HttpServerResponseputHeader(java.lang.String name, java.lang.String value)default io.vertx.core.http.HttpServerResponseputTrailer(java.lang.CharSequence name, java.lang.CharSequence value)default io.vertx.core.http.HttpServerResponseputTrailer(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> value)default io.vertx.core.http.HttpServerResponseputTrailer(java.lang.String name, java.lang.Iterable<java.lang.String> values)default io.vertx.core.http.HttpServerResponseputTrailer(java.lang.String name, java.lang.String value)default voidreset(long code)default io.vertx.core.http.HttpServerResponsesendFile(java.lang.String filename, long offset, long length)default io.vertx.core.http.HttpServerResponsesendFile(java.lang.String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)default io.vertx.core.http.HttpServerResponsesetChunked(boolean chunked)default io.vertx.core.http.HttpServerResponsesetStatusCode(int statusCode)default io.vertx.core.http.HttpServerResponsesetStatusMessage(java.lang.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(java.lang.String chunk)default io.vertx.core.http.HttpServerResponsewrite(java.lang.String chunk, java.lang.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 java.lang.String msg
- See Also:
- Constant Field Values
-
-
Method Detail
-
exceptionHandler
default io.vertx.core.http.HttpServerResponse exceptionHandler(io.vertx.core.Handler<java.lang.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<java.lang.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 java.lang.String getStatusMessage()
- Specified by:
getStatusMessagein interfaceio.vertx.core.http.HttpServerResponse
-
setStatusMessage
default io.vertx.core.http.HttpServerResponse setStatusMessage(java.lang.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(java.lang.String name, java.lang.String value)- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
default io.vertx.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.CharSequence value)- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
default io.vertx.core.http.HttpServerResponse putHeader(java.lang.String name, java.lang.Iterable<java.lang.String> values)- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
default io.vertx.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.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(java.lang.String name, java.lang.String value)- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
default io.vertx.core.http.HttpServerResponse putTrailer(java.lang.CharSequence name, java.lang.CharSequence value)- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
default io.vertx.core.http.HttpServerResponse putTrailer(java.lang.String name, java.lang.Iterable<java.lang.String> values)- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
default io.vertx.core.http.HttpServerResponse putTrailer(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> value)- Specified by:
putTrailerin interfaceio.vertx.core.http.HttpServerResponse
-
closeHandler
default io.vertx.core.http.HttpServerResponse closeHandler(io.vertx.core.Handler<java.lang.Void> handler)
- Specified by:
closeHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
endHandler
default io.vertx.core.http.HttpServerResponse endHandler(io.vertx.core.Handler<java.lang.Void> handler)
- Specified by:
endHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
write
default io.vertx.core.http.HttpServerResponse write(java.lang.String chunk, java.lang.String enc)- Specified by:
writein interfaceio.vertx.core.http.HttpServerResponse
-
write
default io.vertx.core.http.HttpServerResponse write(java.lang.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(java.lang.String chunk)
- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse
-
end
default void end(java.lang.String chunk, java.lang.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(java.lang.String filename, long offset, long length)- Specified by:
sendFilein interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
default io.vertx.core.http.HttpServerResponse sendFile(java.lang.String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.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<java.lang.Void> handler)
- Specified by:
headersEndHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
bodyEndHandler
default io.vertx.core.http.HttpServerResponse bodyEndHandler(io.vertx.core.Handler<java.lang.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, java.lang.String host, java.lang.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, java.lang.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, java.lang.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, java.lang.String host, java.lang.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
-
-