
com.webpieces.http2parser.api.dto.Http2Priority Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http2-parser Show documentation
Show all versions of http2-parser Show documentation
A re-usable asynchronous http2 parser
package com.webpieces.http2parser.api.dto;
import org.webpieces.data.api.DataWrapper;
import java.nio.ByteBuffer;
public class Http2Priority extends Http2Frame {
public Http2FrameType getFrameType() {
return Http2FrameType.PRIORITY;
}
/* flags */
public void unmarshalFlags(byte flags) {
}
/* payload */
private boolean streamDependencyIsExclusive = false; //1 bit
private int streamDependency = 0x0; //31 bits
private byte weight = 0x0; //8
public boolean isStreamDependencyIsExclusive() {
return streamDependencyIsExclusive;
}
public void setStreamDependencyIsExclusive(boolean streamDependencyIsExclusive) {
this.streamDependencyIsExclusive = streamDependencyIsExclusive;
}
public int getStreamDependency() {
return streamDependency;
}
public void setStreamDependency(int streamDependency) {
this.streamDependency = streamDependency & 0x7FFFFFFF;
}
public byte getWeight() {
return weight;
}
public void setWeight(byte weight) {
this.weight = weight;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy