Top Description Methods
io.netty.handler.codec.http2

public Interface Http2DataFrame

extends Http2StreamFrame, ByteBufHolder
Known Direct Implementers
io.netty.handler.codec.http2.DefaultHttp2DataFrame
Annotations
@UnstableApi
Imports
io.netty.buffer.ByteBuf, .ByteBufHolder, io.netty.util.internal.UnstableApi

HTTP/2 DATA frame.

Method Summary

Modifier and TypeMethod and Description
public ByteBuf
content()

Redeclares io.netty.buffer.ByteBufHolder.content.

Payload of DATA frame.
public Http2DataFrame
copy()

Redeclares io.netty.buffer.ByteBufHolder.copy.

Creates a deep copy of this ByteBufHolder.
public Http2DataFrame
public int
initialFlowControlledBytes()

Returns the number of bytes that are flow-controlled initially, so even if the content() is consumed this will not change.

public boolean
isEndStream()

Returns true if the END_STREAM flag is set.

public int
padding()

Frame padding to use.

public Http2DataFrame
replace(ByteBuf content)

Redeclares io.netty.buffer.ByteBufHolder.replace.

Returns a new ByteBufHolder which contains the specified content.
public Http2DataFrame
retain()

Redeclares io.netty.buffer.ByteBufHolder.retain.

Increases the reference count by 1.
public Http2DataFrame
retain(int increment)

Redeclares io.netty.buffer.ByteBufHolder.retain.

Increases the reference count by the specified increment.
public Http2DataFrame
public Http2DataFrame
touch()

Redeclares io.netty.buffer.ByteBufHolder.touch.

Records the current access location of this object for debugging purposes.
public Http2DataFrame
touch(Object hint)

Redeclares io.netty.buffer.ByteBufHolder.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty.handler.codec.http2.Http2StreamFrame:
streamstream

Method Detail

contentback to summary
public ByteBuf content()

Redeclares io.netty.buffer.ByteBufHolder.content.

Payload of DATA frame. Will not be null.

Annotations
@Override
copyback to summary
public Http2DataFrame copy()

Redeclares io.netty.buffer.ByteBufHolder.copy.

Doc from io.netty.buffer.ByteBufHolder.copy.

Creates a deep copy of this ByteBufHolder.

Annotations
@Override
duplicateback to summary
public Http2DataFrame duplicate()

Redeclares io.netty.buffer.ByteBufHolder.duplicate.

Doc from io.netty.buffer.ByteBufHolder.duplicate.

Duplicates this ByteBufHolder. Be aware that this will not automatically call retain().

Annotations
@Override
initialFlowControlledBytesback to summary
public int initialFlowControlledBytes()

Returns the number of bytes that are flow-controlled initially, so even if the content() is consumed this will not change.

isEndStreamback to summary
public boolean isEndStream()

Returns true if the END_STREAM flag is set.

paddingback to summary
public int padding()

Frame padding to use. Will be non-negative and less than 256.

replaceback to summary
public Http2DataFrame replace(ByteBuf content)

Redeclares io.netty.buffer.ByteBufHolder.replace.

Doc from io.netty.buffer.ByteBufHolder.replace.

Returns a new ByteBufHolder which contains the specified content.

Annotations
@Override
retainback to summary
public Http2DataFrame retain()

Redeclares io.netty.buffer.ByteBufHolder.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public Http2DataFrame retain(int increment)

Redeclares io.netty.buffer.ByteBufHolder.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
retainedDuplicateback to summary
public Http2DataFrame retainedDuplicate()

Redeclares io.netty.buffer.ByteBufHolder.retainedDuplicate.

Doc from io.netty.buffer.ByteBufHolder.retainedDuplicate.

Duplicates this ByteBufHolder. This method returns a retained duplicate unlike duplicate().

Annotations
@Override
touchback to summary
public Http2DataFrame touch()

Redeclares io.netty.buffer.ByteBufHolder.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public Http2DataFrame touch(Object hint)

Redeclares io.netty.buffer.ByteBufHolder.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.

Annotations
@Override