Package org.swisspush.gateleen.core.http
Class BufferBridge
- java.lang.Object
-
- org.swisspush.gateleen.core.http.BufferBridge
-
- Direct Known Subclasses:
LocalHttpClientRequest,LocalHttpServerResponse
public class BufferBridge extends Object
Support class bridging a buffer writer and dataHandler / endHandler pair.- Author:
- https://github.com/lbovet [Laurent Bovet]
-
-
Constructor Summary
Constructors Constructor Description BufferBridge(io.vertx.core.Vertx vertx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.vertx.core.Future<Void>doEnd()protected voiddoWrite(io.vertx.core.buffer.Buffer chunk)protected voidpump()voidsetBodyHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> bodyHandler)voidsetDataHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> dataHandler)voidsetEndHandler(io.vertx.core.Handler<Void> endHandler)voidsetExceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
-
-
-
Method Detail
-
pump
protected void pump()
-
doWrite
protected void doWrite(io.vertx.core.buffer.Buffer chunk)
-
doEnd
protected io.vertx.core.Future<Void> doEnd()
-
setDataHandler
public void setDataHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> dataHandler)
-
setExceptionHandler
public void setExceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
-
setEndHandler
public void setEndHandler(io.vertx.core.Handler<Void> endHandler)
-
setBodyHandler
public void setBodyHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> bodyHandler)
-
-