< prev index next >

src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/frame/HeadersFrame.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 23,34 **** * questions. */ package jdk.incubator.http.internal.frame; ! import jdk.incubator.http.internal.common.ByteBufferReference; ! import jdk.incubator.http.internal.common.Utils; public class HeadersFrame extends HeaderFrame { public static final int TYPE = 0x1; --- 23,34 ---- * questions. */ package jdk.incubator.http.internal.frame; ! import java.nio.ByteBuffer; ! import java.util.List; public class HeadersFrame extends HeaderFrame { public static final int TYPE = 0x1;
*** 41,63 **** private int padLength; private int streamDependency; private int weight; private boolean exclusive; ! public HeadersFrame(int streamid, int flags, ByteBufferReference[] headerBlocks, int padLength) { super(streamid, flags, headerBlocks); if (padLength > 0) { setPadLength(padLength); } } ! public HeadersFrame(int streamid, int flags, ByteBufferReference[] headerBlocks) { super(streamid, flags, headerBlocks); } ! public HeadersFrame(int streamid, int flags, ByteBufferReference headerBlock) { ! this(streamid, flags, new ByteBufferReference[]{headerBlock}); } @Override public int type() { return TYPE; --- 41,63 ---- private int padLength; private int streamDependency; private int weight; private boolean exclusive; ! public HeadersFrame(int streamid, int flags, List<ByteBuffer> headerBlocks, int padLength) { super(streamid, flags, headerBlocks); if (padLength > 0) { setPadLength(padLength); } } ! public HeadersFrame(int streamid, int flags, List<ByteBuffer> headerBlocks) { super(streamid, flags, headerBlocks); } ! public HeadersFrame(int streamid, int flags, ByteBuffer headerBlock) { ! this(streamid, flags, List.of(headerBlock)); } @Override public int type() { return TYPE;
< prev index next >