Package io.netty.handler.codec.http2
Class DefaultHttp2PriorityFrame
- java.lang.Object
-
- io.netty.handler.codec.http2.AbstractHttp2StreamFrame
-
- io.netty.handler.codec.http2.DefaultHttp2PriorityFrame
-
- All Implemented Interfaces:
Http2Frame,Http2PriorityFrame,Http2StreamFrame
public final class DefaultHttp2PriorityFrame extends AbstractHttp2StreamFrame implements Http2PriorityFrame
Default implementation of Http2PriorityFrame
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp2PriorityFrame(int streamDependency, short weight, boolean exclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Returnstrueifohas equalstreamto this object.booleanexclusive()Set totrueif this stream is exclusive else set tofalseinthashCode()java.lang.Stringname()Returns the name of the HTTP/2 frame e.g.DefaultHttp2PriorityFramestream(Http2FrameStream stream)Set theHttp2FrameStreamobject for this frame.intstreamDependency()Parent Stream Id of this Priority requestjava.lang.StringtoString()shortweight()Stream weight-
Methods inherited from class io.netty.handler.codec.http2.AbstractHttp2StreamFrame
stream
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.http2.Http2StreamFrame
stream
-
-
-
-
Method Detail
-
streamDependency
public int streamDependency()
Description copied from interface:Http2PriorityFrameParent Stream Id of this Priority request- Specified by:
streamDependencyin interfaceHttp2PriorityFrame
-
weight
public short weight()
Description copied from interface:Http2PriorityFrameStream weight- Specified by:
weightin interfaceHttp2PriorityFrame
-
exclusive
public boolean exclusive()
Description copied from interface:Http2PriorityFrameSet totrueif this stream is exclusive else set tofalse- Specified by:
exclusivein interfaceHttp2PriorityFrame
-
stream
public DefaultHttp2PriorityFrame stream(Http2FrameStream stream)
Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
streamin interfaceHttp2PriorityFrame- Specified by:
streamin interfaceHttp2StreamFrame- Overrides:
streamin classAbstractHttp2StreamFrame
-
name
public java.lang.String name()
Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
namein interfaceHttp2Frame
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:AbstractHttp2StreamFrameReturnstrueifohas equalstreamto this object.- Overrides:
equalsin classAbstractHttp2StreamFrame
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractHttp2StreamFrame
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-