static ContinuationFrame create() { ContinuationFrame frame = ThreadCache.takeFromCache(CACHE_IDX); if (frame == null) { frame = new ContinuationFrame(); } return frame; }
public static ContinuationFrame fromBuffer(final int flags, final int streamId, final Buffer buffer) { final ContinuationFrame frame = create(); frame.setFlags(flags); frame.setStreamId(streamId); frame.compressedHeaders = buffer.split(buffer.position()); frame.setFrameBuffer(buffer); return frame; }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("ContinuationFrame {") .append(headerToString()) .append(", compressedHeaders=").append(compressedHeaders) .append('}'); return sb.toString(); }
static void log(final Context ctx, final Http2Session c, final ContinuationFrame frame) { validateParams(ctx, c, frame); if (isActive()) { LOGGER.log(LEVEL, CONTINUATION_FMT, new Object[]{ escape(c.getConnection().toString()), ctx.getPrefix() + CONTINUATION, frame.getStreamId(), frame.getLength()}); } }
@Override public Buffer toBuffer(final MemoryManager memoryManager) { final Buffer buffer = memoryManager.allocate( FRAME_HEADER_SIZE); serializeFrameHeader(buffer); buffer.trim(); final CompositeBuffer cb = CompositeBuffer.newBuffer(memoryManager, buffer, compressedHeaders); cb.allowBufferDispose(true); cb.allowInternalBuffersDispose(true); return cb; }
public ContinuationFrame build() { final ContinuationFrame frame = ContinuationFrame.create(); setHeaderValuesTo(frame); frame.compressedHeaders = compressedHeaders; return frame; }
return WindowUpdateFrame.fromBuffer(flags, streamId, buffer); case ContinuationFrame.TYPE: return ContinuationFrame.fromBuffer(flags, streamId, buffer); default: return new UnknownFrame(type, len);
ContinuationFrame.builder().streamId(streamId) .endHeaders(remainder == null) .compressedHeaders(buffer)
static void log(final Context ctx, final Http2Session c, final ContinuationFrame frame) { validateParams(ctx, c, frame); if (isActive()) { LOGGER.log(LEVEL, CONTINUATION_FMT, new Object[]{ escape(c.getConnection().toString()), ctx.getPrefix() + CONTINUATION, frame.getStreamId(), frame.getLength()}); } }
@Override public Buffer toBuffer(final MemoryManager memoryManager) { final Buffer buffer = memoryManager.allocate( FRAME_HEADER_SIZE); serializeFrameHeader(buffer); buffer.trim(); final CompositeBuffer cb = CompositeBuffer.newBuffer(memoryManager, buffer, compressedHeaders); cb.allowBufferDispose(true); cb.allowInternalBuffersDispose(true); return cb; }
public ContinuationFrame build() { final ContinuationFrame frame = ContinuationFrame.create(); setHeaderValuesTo(frame); frame.compressedHeaders = compressedHeaders; return frame; }
return WindowUpdateFrame.fromBuffer(flags, streamId, buffer); case ContinuationFrame.TYPE: return ContinuationFrame.fromBuffer(flags, streamId, buffer); default: return new UnknownFrame(type, len);
ContinuationFrame.builder().streamId(streamId) .endHeaders(remainder == null) .compressedHeaders(buffer)
public static ContinuationFrame fromBuffer(final int flags, final int streamId, final Buffer buffer) { final ContinuationFrame frame = create(); frame.setFlags(flags); frame.setStreamId(streamId); frame.compressedHeaders = buffer.split(buffer.position()); frame.setFrameBuffer(buffer); return frame; }
static void log(final Context ctx, final Http2Session c, final ContinuationFrame frame) { validateParams(ctx, c, frame); if (isActive()) { LOGGER.log(LEVEL, CONTINUATION_FMT, new Object[]{ escape(c.getConnection().toString()), ctx.getPrefix() + CONTINUATION, frame.getStreamId(), frame.getLength()}); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("ContinuationFrame {") .append(headerToString()) .append(", compressedHeaders=").append(compressedHeaders) .append('}'); return sb.toString(); }
@Override public Buffer toBuffer(final MemoryManager memoryManager) { final Buffer buffer = memoryManager.allocate( FRAME_HEADER_SIZE); serializeFrameHeader(buffer); buffer.trim(); final CompositeBuffer cb = CompositeBuffer.newBuffer(memoryManager, buffer, compressedHeaders); cb.allowBufferDispose(true); cb.allowInternalBuffersDispose(true); return cb; }
public ContinuationFrame build() { final ContinuationFrame frame = ContinuationFrame.create(); setHeaderValuesTo(frame); frame.compressedHeaders = compressedHeaders; return frame; }
static ContinuationFrame create() { ContinuationFrame frame = ThreadCache.takeFromCache(CACHE_IDX); if (frame == null) { frame = new ContinuationFrame(); } return frame; }
return WindowUpdateFrame.fromBuffer(flags, streamId, buffer); case ContinuationFrame.TYPE: return ContinuationFrame.fromBuffer(flags, streamId, buffer); default: return new UnknownFrame(type, len);