2012-05-31 09:37:27 +02:00
|
|
|
/*
|
2013-06-04 23:32:11 +02:00
|
|
|
* Copyright 2013 The Netty Project
|
2012-05-31 09:37:27 +02:00
|
|
|
*
|
|
|
|
* The Netty Project licenses this file to you under the Apache License,
|
|
|
|
* version 2.0 (the "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at:
|
|
|
|
*
|
2012-06-04 22:31:44 +02:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2012-05-31 09:37:27 +02:00
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*/
|
|
|
|
package io.netty.handler.codec.spdy;
|
|
|
|
|
2012-06-10 04:08:43 +02:00
|
|
|
import io.netty.buffer.ByteBuf;
|
2013-01-11 07:46:56 +01:00
|
|
|
import io.netty.buffer.ByteBufHolder;
|
2012-06-11 10:02:00 +02:00
|
|
|
import io.netty.buffer.Unpooled;
|
2012-05-31 09:37:27 +02:00
|
|
|
|
|
|
|
/**
|
2013-06-04 23:32:11 +02:00
|
|
|
* A SPDY Protocol DATA Frame
|
2012-05-31 09:37:27 +02:00
|
|
|
*/
|
2013-06-04 23:32:11 +02:00
|
|
|
public interface SpdyDataFrame extends ByteBufHolder, SpdyStreamFrame {
|
2012-05-31 09:37:27 +02:00
|
|
|
|
2013-01-17 08:31:55 +01:00
|
|
|
@Override
|
|
|
|
SpdyDataFrame setStreamId(int streamID);
|
2012-05-31 09:37:27 +02:00
|
|
|
|
2013-01-17 08:31:55 +01:00
|
|
|
@Override
|
|
|
|
SpdyDataFrame setLast(boolean last);
|
2012-05-31 09:37:27 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the data payload of this frame. If there is no data payload
|
2012-06-11 10:02:00 +02:00
|
|
|
* {@link Unpooled#EMPTY_BUFFER} is returned.
|
2013-01-11 07:46:56 +01:00
|
|
|
*
|
2012-05-31 09:37:27 +02:00
|
|
|
* The data payload cannot exceed 16777215 bytes.
|
|
|
|
*/
|
2013-01-11 07:46:56 +01:00
|
|
|
@Override
|
2013-05-01 10:04:43 +02:00
|
|
|
ByteBuf content();
|
2013-01-11 07:46:56 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
SpdyDataFrame copy();
|
2013-02-13 08:09:33 +01:00
|
|
|
|
2013-07-06 21:17:51 +02:00
|
|
|
@Override
|
|
|
|
SpdyDataFrame duplicate();
|
|
|
|
|
2016-04-14 10:31:48 +02:00
|
|
|
@Override
|
|
|
|
SpdyDataFrame retainedDuplicate();
|
|
|
|
|
|
|
|
@Override
|
|
|
|
SpdyDataFrame replace(ByteBuf content);
|
|
|
|
|
2013-02-13 08:09:33 +01:00
|
|
|
@Override
|
|
|
|
SpdyDataFrame retain();
|
|
|
|
|
|
|
|
@Override
|
|
|
|
SpdyDataFrame retain(int increment);
|
2014-01-28 12:00:28 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
SpdyDataFrame touch();
|
2014-01-29 03:44:59 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
SpdyDataFrame touch(Object hint);
|
2012-05-31 09:37:27 +02:00
|
|
|
}
|