Package org.swisspush.gateleen.core.http
Class DummyHttpServerResponse
- java.lang.Object
-
- org.swisspush.gateleen.core.http.DummyHttpServerResponse
-
- All Implemented Interfaces:
io.vertx.core.http.HttpServerResponse,io.vertx.core.streams.StreamBase,io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>,FastFailHttpServerResponse
public class DummyHttpServerResponse extends Object implements FastFailHttpServerResponse
Dummy class implementingHttpServerResponse. Override this class for your needs.- Author:
- https://github.com/mcweba [Marc-Andre Weber]
-
-
Field Summary
-
Fields inherited from interface org.swisspush.gateleen.core.http.FastFailHttpServerResponse
msg
-
-
Constructor Summary
Constructors Constructor Description DummyHttpServerResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclosed()io.vertx.core.Future<Void>end()io.vertx.core.Future<Void>end(io.vertx.core.buffer.Buffer chunk)io.vertx.core.Future<Void>end(String chunk)booleanended()StringgetResultBuffer()intgetStatusCode()StringgetStatusMessage()io.vertx.core.MultiMapheaders()io.vertx.core.http.HttpServerResponseputHeader(CharSequence name, CharSequence value)io.vertx.core.http.HttpServerResponseputHeader(String name, String value)io.vertx.core.http.HttpServerResponsesetStatusCode(int statusCode)io.vertx.core.http.HttpServerResponsesetStatusMessage(String statusMessage)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.swisspush.gateleen.core.http.FastFailHttpServerResponse
addCookie, bodyEndHandler, bytesWritten, close, closeHandler, drainHandler, end, end, end, end, end, endHandler, exceptionHandler, headersEndHandler, headWritten, isChunked, push, push, push, push, push, putHeader, putHeader, putTrailer, putTrailer, putTrailer, putTrailer, removeCookie, removeCookie, removeCookies, reset, sendFile, sendFile, setChunked, setWriteQueueMaxSize, streamId, trailers, write, write, write, write, write, write, writeContinue, writeCustomFrame, writeQueueFull
-
-
-
-
Method Detail
-
getResultBuffer
public String getResultBuffer()
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCodein interfaceFastFailHttpServerResponse- Specified by:
getStatusCodein interfaceio.vertx.core.http.HttpServerResponse
-
setStatusCode
public io.vertx.core.http.HttpServerResponse setStatusCode(int statusCode)
- Specified by:
setStatusCodein interfaceFastFailHttpServerResponse- Specified by:
setStatusCodein interfaceio.vertx.core.http.HttpServerResponse
-
getStatusMessage
public String getStatusMessage()
- Specified by:
getStatusMessagein interfaceFastFailHttpServerResponse- Specified by:
getStatusMessagein interfaceio.vertx.core.http.HttpServerResponse
-
setStatusMessage
public io.vertx.core.http.HttpServerResponse setStatusMessage(String statusMessage)
- Specified by:
setStatusMessagein interfaceFastFailHttpServerResponse- Specified by:
setStatusMessagein interfaceio.vertx.core.http.HttpServerResponse
-
headers
public io.vertx.core.MultiMap headers()
- Specified by:
headersin interfaceFastFailHttpServerResponse- Specified by:
headersin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
public io.vertx.core.http.HttpServerResponse putHeader(String name, String value)
- Specified by:
putHeaderin interfaceFastFailHttpServerResponse- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
public io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, CharSequence value)
- Specified by:
putHeaderin interfaceFastFailHttpServerResponse- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
end
public io.vertx.core.Future<Void> end(String chunk)
- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse
-
end
public io.vertx.core.Future<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
public io.vertx.core.Future<Void> end()
- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse- Specified by:
endin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
ended
public boolean ended()
- Specified by:
endedin interfaceFastFailHttpServerResponse- Specified by:
endedin interfaceio.vertx.core.http.HttpServerResponse
-
closed
public boolean closed()
- Specified by:
closedin interfaceFastFailHttpServerResponse- Specified by:
closedin interfaceio.vertx.core.http.HttpServerResponse
-
-