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 NoopH2StreamHandler
INSTANCE
-
Constructor Summary
Constructors Constructor Description NoopH2StreamHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeData(java.nio.ByteBuffer src, boolean endStream)
void
consumeHeader(java.util.List<Header> headers, boolean endStream)
void
consumePromise(java.util.List<Header> headers)
void
failed(java.lang.Exception cause)
HandlerFactory<AsyncPushConsumer>
getPushHandlerFactory()
void
handle(HttpException ex, boolean endStream)
boolean
isOutputReady()
void
produceOutput()
void
releaseResources()
void
updateInputCapacity()
-
-
-
Field Detail
-
INSTANCE
static final NoopH2StreamHandler INSTANCE
-
-
Method Detail
-
isOutputReady
public boolean isOutputReady()
- Specified by:
isOutputReady
in interfaceH2StreamHandler
-
produceOutput
public void produceOutput() throws HttpException, java.io.IOException
- Specified by:
produceOutput
in interfaceH2StreamHandler
- Throws:
HttpException
java.io.IOException
-
consumePromise
public void consumePromise(java.util.List<Header> headers) throws HttpException, java.io.IOException
- Specified by:
consumePromise
in interfaceH2StreamHandler
- Throws:
HttpException
java.io.IOException
-
consumeHeader
public void consumeHeader(java.util.List<Header> headers, boolean endStream) throws HttpException, java.io.IOException
- Specified by:
consumeHeader
in interfaceH2StreamHandler
- Throws:
HttpException
java.io.IOException
-
updateInputCapacity
public void updateInputCapacity() throws java.io.IOException
- Specified by:
updateInputCapacity
in interfaceH2StreamHandler
- Throws:
java.io.IOException
-
consumeData
public void consumeData(java.nio.ByteBuffer src, boolean endStream) throws HttpException, java.io.IOException
- Specified by:
consumeData
in interfaceH2StreamHandler
- Throws:
HttpException
java.io.IOException
-
getPushHandlerFactory
public HandlerFactory<AsyncPushConsumer> getPushHandlerFactory()
- Specified by:
getPushHandlerFactory
in interfaceH2StreamHandler
-
failed
public void failed(java.lang.Exception cause)
- Specified by:
failed
in interfaceH2StreamHandler
-
handle
public void handle(HttpException ex, boolean endStream) throws HttpException, java.io.IOException
- Specified by:
handle
in interfaceH2StreamHandler
- Throws:
HttpException
java.io.IOException
-
releaseResources
public void releaseResources()
- Specified by:
releaseResources
in interfaceResourceHolder
-
-