View Javadoc
1   /*
2    * Copyright 2013 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty.handler.codec.spdy;
17  
18  /**
19   * A SPDY Protocol SYN_STREAM Frame
20   */
21  public interface SpdySynStreamFrame extends SpdyHeadersFrame {
22  
23      /**
24       * Returns the Associated-To-Stream-ID of this frame.
25       */
26      int associatedStreamId();
27  
28      /**
29       * Sets the Associated-To-Stream-ID of this frame.
30       * The Associated-To-Stream-ID cannot be negative.
31       */
32      SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId);
33  
34      /**
35       * Returns the priority of the stream.
36       */
37      byte priority();
38  
39      /**
40       * Sets the priority of the stream.
41       * The priority must be between 0 and 7 inclusive.
42       */
43      SpdySynStreamFrame setPriority(byte priority);
44  
45      /**
46       * Returns {@code true} if the stream created with this frame is to be
47       * considered half-closed to the receiver.
48       */
49      boolean isUnidirectional();
50  
51      /**
52       * Sets if the stream created with this frame is to be considered
53       * half-closed to the receiver.
54       */
55      SpdySynStreamFrame setUnidirectional(boolean unidirectional);
56  
57      @Override
58      SpdySynStreamFrame setStreamId(int streamID);
59  
60      @Override
61      SpdySynStreamFrame setLast(boolean last);
62  
63      @Override
64      SpdySynStreamFrame setInvalid();
65  }