Class FrameGenerator
- java.lang.Object
-
- org.eclipse.jetty.http2.generator.FrameGenerator
-
- Direct Known Subclasses:
GoAwayGenerator
,HeadersGenerator
,NoOpGenerator
,PingGenerator
,PrefaceGenerator
,PriorityGenerator
,PushPromiseGenerator
,ResetGenerator
,SettingsGenerator
,WindowUpdateGenerator
public abstract class FrameGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FrameGenerator(HeaderGenerator headerGenerator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.nio.ByteBuffer
encode(HpackEncoder encoder, ByteBufferPool.Lease lease, MetaData metaData, int maxFrameSize)
abstract int
generate(ByteBufferPool.Lease lease, Frame frame)
protected java.nio.ByteBuffer
generateHeader(ByteBufferPool.Lease lease, FrameType frameType, int length, int flags, int streamId)
int
getMaxFrameSize()
-
-
-
Constructor Detail
-
FrameGenerator
protected FrameGenerator(HeaderGenerator headerGenerator)
-
-
Method Detail
-
generate
public abstract int generate(ByteBufferPool.Lease lease, Frame frame) throws HpackException
- Throws:
HpackException
-
generateHeader
protected java.nio.ByteBuffer generateHeader(ByteBufferPool.Lease lease, FrameType frameType, int length, int flags, int streamId)
-
getMaxFrameSize
public int getMaxFrameSize()
-
encode
protected java.nio.ByteBuffer encode(HpackEncoder encoder, ByteBufferPool.Lease lease, MetaData metaData, int maxFrameSize) throws HpackException
- Throws:
HpackException
-
-