2013-01-17 08:31:55 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2013 The Netty Project
|
|
|
|
*
|
|
|
|
* 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:
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* 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;
|
|
|
|
|
|
|
|
/**
|
2013-06-04 23:32:11 +02:00
|
|
|
* A SPDY Protocol Frame that is associated with an individual SPDY Stream
|
2013-01-17 08:31:55 +01:00
|
|
|
*/
|
2013-06-04 23:32:11 +02:00
|
|
|
public interface SpdyStreamFrame extends SpdyFrame {
|
2013-01-17 08:31:55 +01:00
|
|
|
|
2014-06-24 10:39:46 +02:00
|
|
|
/**
|
|
|
|
* Returns the Stream-ID of this frame.
|
|
|
|
*/
|
|
|
|
int streamId();
|
|
|
|
|
2013-01-17 08:31:55 +01:00
|
|
|
/**
|
|
|
|
* Sets the Stream-ID of this frame. The Stream-ID must be positive.
|
|
|
|
*/
|
|
|
|
SpdyStreamFrame setStreamId(int streamID);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns {@code true} if this frame is the last frame to be transmitted
|
|
|
|
* on the stream.
|
|
|
|
*/
|
|
|
|
boolean isLast();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets if this frame is the last frame to be transmitted on the stream.
|
|
|
|
*/
|
|
|
|
SpdyStreamFrame setLast(boolean last);
|
|
|
|
}
|