< prev index next >
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/frame/ContinuationFrame.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,45 ****
* questions.
*/
package jdk.incubator.http.internal.frame;
! import jdk.incubator.http.internal.common.ByteBufferReference;
! import jdk.incubator.http.internal.common.Utils;
public class ContinuationFrame extends HeaderFrame {
public static final int TYPE = 0x9;
! public ContinuationFrame(int streamid, int flags, ByteBufferReference[] headerBlocks) {
super(streamid, flags, headerBlocks);
}
! public ContinuationFrame(int streamid, ByteBufferReference headersBlock) {
! this(streamid, 0, new ByteBufferReference[]{headersBlock});
}
@Override
public int type() {
return TYPE;
--- 23,45 ----
* questions.
*/
package jdk.incubator.http.internal.frame;
! import java.nio.ByteBuffer;
! import java.util.List;
public class ContinuationFrame extends HeaderFrame {
public static final int TYPE = 0x9;
! public ContinuationFrame(int streamid, int flags, List<ByteBuffer> headerBlocks) {
super(streamid, flags, headerBlocks);
}
! public ContinuationFrame(int streamid, ByteBuffer headersBlock) {
! this(streamid, 0, List.of(headersBlock));
}
@Override
public int type() {
return TYPE;
< prev index next >