Interface H2StreamHandler
-
- All Superinterfaces:
ResourceHolder
- All Known Implementing Classes:
ClientH2StreamHandler,ClientPushH2StreamHandler,NoopH2StreamHandler,ServerH2StreamHandler,ServerPushH2StreamHandler
interface H2StreamHandler extends ResourceHolder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconsumeData(java.nio.ByteBuffer src, boolean endStream)voidconsumeHeader(java.util.List<Header> headers, boolean endStream)voidconsumePromise(java.util.List<Header> headers)voidfailed(java.lang.Exception cause)HandlerFactory<AsyncPushConsumer>getPushHandlerFactory()voidhandle(HttpException ex, boolean endStream)booleanisOutputReady()voidproduceOutput()voidupdateInputCapacity()-
Methods inherited from interface org.apache.hc.core5.http.nio.ResourceHolder
releaseResources
-
-
-
-
Method Detail
-
isOutputReady
boolean isOutputReady()
-
produceOutput
void produceOutput() throws HttpException, java.io.IOException- Throws:
HttpExceptionjava.io.IOException
-
consumePromise
void consumePromise(java.util.List<Header> headers) throws HttpException, java.io.IOException
- Throws:
HttpExceptionjava.io.IOException
-
consumeHeader
void consumeHeader(java.util.List<Header> headers, boolean endStream) throws HttpException, java.io.IOException
- Throws:
HttpExceptionjava.io.IOException
-
updateInputCapacity
void updateInputCapacity() throws java.io.IOException- Throws:
java.io.IOException
-
consumeData
void consumeData(java.nio.ByteBuffer src, boolean endStream) throws HttpException, java.io.IOException- Throws:
HttpExceptionjava.io.IOException
-
getPushHandlerFactory
HandlerFactory<AsyncPushConsumer> getPushHandlerFactory()
-
failed
void failed(java.lang.Exception cause)
-
handle
void handle(HttpException ex, boolean endStream) throws HttpException, java.io.IOException
- Throws:
HttpExceptionjava.io.IOException
-
-