Class PushPromiseGenerator
- java.lang.Object
-
- org.eclipse.jetty.http2.generator.FrameGenerator
-
- org.eclipse.jetty.http2.generator.PushPromiseGenerator
-
public class PushPromiseGenerator extends FrameGenerator
-
-
Constructor Summary
Constructors Constructor Description PushPromiseGenerator(HeaderGenerator headerGenerator, HpackEncoder encoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
generate(ByteBufferPool.Lease lease, Frame frame)
int
generatePushPromise(ByteBufferPool.Lease lease, int streamId, int promisedStreamId, MetaData metaData)
-
Methods inherited from class org.eclipse.jetty.http2.generator.FrameGenerator
encode, generateHeader, getMaxFrameSize
-
-
-
-
Constructor Detail
-
PushPromiseGenerator
public PushPromiseGenerator(HeaderGenerator headerGenerator, HpackEncoder encoder)
-
-
Method Detail
-
generate
public int generate(ByteBufferPool.Lease lease, Frame frame) throws HpackException
- Specified by:
generate
in classFrameGenerator
- Throws:
HpackException
-
generatePushPromise
public int generatePushPromise(ByteBufferPool.Lease lease, int streamId, int promisedStreamId, MetaData metaData) throws HpackException
- Throws:
HpackException
-
-