All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.codec.http2.frame.SettingsFrame Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
package com.firefly.codec.http2.frame;

import java.util.Map;

public class SettingsFrame extends Frame {
	public static final int HEADER_TABLE_SIZE = 1;
	public static final int ENABLE_PUSH = 2;
	public static final int MAX_CONCURRENT_STREAMS = 3;
	public static final int INITIAL_WINDOW_SIZE = 4;
	public static final int MAX_FRAME_SIZE = 5;
	public static final int MAX_HEADER_LIST_SIZE = 6;

	private final Map settings;
	private final boolean reply;

	public SettingsFrame(Map settings, boolean reply) {
		super(FrameType.SETTINGS);
		this.settings = settings;
		this.reply = reply;
	}

	public Map getSettings() {
		return settings;
	}

	public boolean isReply() {
		return reply;
	}

	@Override
	public String toString() {
		return String.format("%s,reply=%b:%s", super.toString(), reply, settings);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy