Class NoopH2StreamHandler
- java.lang.Object
-
- org.apache.hc.core5.http2.impl.nio.NoopH2StreamHandler
-
- All Implemented Interfaces:
ResourceHolder,H2StreamHandler
final class NoopH2StreamHandler extends java.lang.Object implements H2StreamHandler
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static NoopH2StreamHandlerINSTANCE
-
Constructor Summary
Constructors Constructor Description NoopH2StreamHandler()
-
Method Summary
All Methods Instance Methods Concrete 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()voidreleaseResources()voidupdateInputCapacity()
-
-
-
Field Detail
-
INSTANCE
static final NoopH2StreamHandler INSTANCE
-
-
Method Detail
-
isOutputReady
public boolean isOutputReady()
- Specified by:
isOutputReadyin interfaceH2StreamHandler
-
produceOutput
public void produceOutput() throws HttpException, java.io.IOException- Specified by:
produceOutputin interfaceH2StreamHandler- Throws:
HttpExceptionjava.io.IOException
-
consumePromise
public void consumePromise(java.util.List<Header> headers) throws HttpException, java.io.IOException
- Specified by:
consumePromisein interfaceH2StreamHandler- Throws:
HttpExceptionjava.io.IOException
-
consumeHeader
public void consumeHeader(java.util.List<Header> headers, boolean endStream) throws HttpException, java.io.IOException
- Specified by:
consumeHeaderin interfaceH2StreamHandler- Throws:
HttpExceptionjava.io.IOException
-
updateInputCapacity
public void updateInputCapacity() throws java.io.IOException- Specified by:
updateInputCapacityin interfaceH2StreamHandler- Throws:
java.io.IOException
-
consumeData
public void consumeData(java.nio.ByteBuffer src, boolean endStream) throws HttpException, java.io.IOException- Specified by:
consumeDatain interfaceH2StreamHandler- Throws:
HttpExceptionjava.io.IOException
-
getPushHandlerFactory
public HandlerFactory<AsyncPushConsumer> getPushHandlerFactory()
- Specified by:
getPushHandlerFactoryin interfaceH2StreamHandler
-
failed
public void failed(java.lang.Exception cause)
- Specified by:
failedin interfaceH2StreamHandler
-
handle
public void handle(HttpException ex, boolean endStream) throws HttpException, java.io.IOException
- Specified by:
handlein interfaceH2StreamHandler- Throws:
HttpExceptionjava.io.IOException
-
releaseResources
public void releaseResources()
- Specified by:
releaseResourcesin interfaceResourceHolder
-
-