Package org.swisspush.gateleen.core.http
Class LocalHttpServerResponse
- java.lang.Object
-
- org.swisspush.gateleen.core.http.BufferBridge
-
- org.swisspush.gateleen.core.http.LocalHttpServerResponse
-
- 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 LocalHttpServerResponse extends BufferBridge implements FastFailHttpServerResponse
Bridges the reponses of a LocalHttpClientRequest.- Author:
- https://github.com/lbovet [Laurent Bovet]
-
-
Field Summary
-
Fields inherited from interface org.swisspush.gateleen.core.http.FastFailHttpServerResponse
msg
-
-
Constructor Summary
Constructors Constructor Description LocalHttpServerResponse(io.vertx.core.Vertx vertx, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanclosed()io.vertx.core.http.HttpServerResponsecloseHandler(io.vertx.core.Handler<java.lang.Void> handler)voidend()voidend(io.vertx.core.buffer.Buffer chunk)voidend(java.lang.String chunk)voidend(java.lang.String chunk, java.lang.String enc)booleanended()io.vertx.core.http.HttpServerResponseexceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)intgetStatusCode()java.lang.StringgetStatusMessage()io.vertx.core.MultiMapheaders()booleanheadWritten()booleanisChunked()io.vertx.core.http.HttpServerResponseputHeader(java.lang.CharSequence name, java.lang.CharSequence value)io.vertx.core.http.HttpServerResponseputHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> values)io.vertx.core.http.HttpServerResponseputHeader(java.lang.String name, java.lang.Iterable<java.lang.String> values)io.vertx.core.http.HttpServerResponseputHeader(java.lang.String name, java.lang.String value)io.vertx.core.http.HttpServerResponsesetChunked(boolean chunked)io.vertx.core.http.HttpServerResponsesetStatusCode(int statusCode)io.vertx.core.http.HttpServerResponsesetStatusMessage(java.lang.String statusMessage)io.vertx.core.http.HttpServerResponsesetWriteQueueMaxSize(int maxSize)io.vertx.core.http.HttpServerResponsewrite(io.vertx.core.buffer.Buffer chunk)io.vertx.core.http.HttpServerResponsewrite(java.lang.String chunk)io.vertx.core.http.HttpServerResponsewrite(java.lang.String chunk, java.lang.String enc)booleanwriteQueueFull()-
Methods inherited from class org.swisspush.gateleen.core.http.BufferBridge
doEnd, doWrite, pump, setDataHandler, setEndHandler, setExceptionHandler
-
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
bodyEndHandler, bytesWritten, drainHandler, endHandler, headersEndHandler, push, push, push, push, putTrailer, putTrailer, putTrailer, putTrailer, reset, sendFile, sendFile, streamId, trailers, writeContinue, writeCustomFrame
-
-
-
-
Method Detail
-
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 java.lang.String getStatusMessage()
- Specified by:
getStatusMessagein interfaceFastFailHttpServerResponse- Specified by:
getStatusMessagein interfaceio.vertx.core.http.HttpServerResponse
-
setStatusMessage
public io.vertx.core.http.HttpServerResponse setStatusMessage(java.lang.String statusMessage)
- Specified by:
setStatusMessagein interfaceFastFailHttpServerResponse- Specified by:
setStatusMessagein interfaceio.vertx.core.http.HttpServerResponse
-
setChunked
public io.vertx.core.http.HttpServerResponse setChunked(boolean chunked)
- Specified by:
setChunkedin interfaceFastFailHttpServerResponse- Specified by:
setChunkedin interfaceio.vertx.core.http.HttpServerResponse
-
isChunked
public boolean isChunked()
- Specified by:
isChunkedin interfaceFastFailHttpServerResponse- Specified by:
isChunkedin 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(java.lang.String name, java.lang.String value)- Specified by:
putHeaderin interfaceFastFailHttpServerResponse- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
public io.vertx.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.CharSequence value)- Specified by:
putHeaderin interfaceFastFailHttpServerResponse- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
public io.vertx.core.http.HttpServerResponse putHeader(java.lang.String name, java.lang.Iterable<java.lang.String> values)- Specified by:
putHeaderin interfaceFastFailHttpServerResponse- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
public io.vertx.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> values)- Specified by:
putHeaderin interfaceFastFailHttpServerResponse- Specified by:
putHeaderin interfaceio.vertx.core.http.HttpServerResponse
-
closeHandler
public io.vertx.core.http.HttpServerResponse closeHandler(io.vertx.core.Handler<java.lang.Void> handler)
- Specified by:
closeHandlerin interfaceFastFailHttpServerResponse- Specified by:
closeHandlerin interfaceio.vertx.core.http.HttpServerResponse
-
write
public io.vertx.core.http.HttpServerResponse write(io.vertx.core.buffer.Buffer chunk)
- Specified by:
writein interfaceFastFailHttpServerResponse- Specified by:
writein interfaceio.vertx.core.http.HttpServerResponse- Specified by:
writein interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
write
public io.vertx.core.http.HttpServerResponse write(java.lang.String chunk, java.lang.String enc)- Specified by:
writein interfaceFastFailHttpServerResponse- Specified by:
writein interfaceio.vertx.core.http.HttpServerResponse
-
write
public io.vertx.core.http.HttpServerResponse write(java.lang.String chunk)
- Specified by:
writein interfaceFastFailHttpServerResponse- Specified by:
writein interfaceio.vertx.core.http.HttpServerResponse
-
end
public void end(java.lang.String chunk)
- Specified by:
endin interfaceFastFailHttpServerResponse- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse
-
end
public void end(java.lang.String chunk, java.lang.String enc)- Specified by:
endin interfaceFastFailHttpServerResponse- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse
-
end
public void end(io.vertx.core.buffer.Buffer chunk)
- Specified by:
endin interfaceFastFailHttpServerResponse- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse- Specified by:
endin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
end
public void end()
- Specified by:
endin interfaceFastFailHttpServerResponse- Specified by:
endin interfaceio.vertx.core.http.HttpServerResponse- Specified by:
endin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
close
public void close()
- Specified by:
closein interfaceFastFailHttpServerResponse- Specified by:
closein interfaceio.vertx.core.http.HttpServerResponse
-
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
-
headWritten
public boolean headWritten()
- Specified by:
headWrittenin interfaceFastFailHttpServerResponse- Specified by:
headWrittenin interfaceio.vertx.core.http.HttpServerResponse
-
setWriteQueueMaxSize
public io.vertx.core.http.HttpServerResponse setWriteQueueMaxSize(int maxSize)
- Specified by:
setWriteQueueMaxSizein interfaceFastFailHttpServerResponse- Specified by:
setWriteQueueMaxSizein interfaceio.vertx.core.http.HttpServerResponse- Specified by:
setWriteQueueMaxSizein interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
writeQueueFull
public boolean writeQueueFull()
- Specified by:
writeQueueFullin interfaceFastFailHttpServerResponse- Specified by:
writeQueueFullin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
exceptionHandler
public io.vertx.core.http.HttpServerResponse exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)
- Specified by:
exceptionHandlerin interfaceFastFailHttpServerResponse- 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>
-
-