blob: b6a3ed2b5bdeec64e2e2b9acfc68fb3ee7ab0ccd [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF 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 org.apache.mina.http2.api;
/**
* An SPY frame
*
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
*
*/
public class Http2Frame {
private int length;
private short type;
private short flags;
private int streamID;
public byte[] payload;
/**
* @return the length
*/
public int getLength() {
return length;
}
/**
* @param length the length to set
*/
public void setLength(int length) {
this.length = length;
}
/**
* @return the type
*/
public short getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(short type) {
this.type = type;
}
/**
* @return the flags
*/
public short getFlags() {
return flags;
}
/**
* @param flags the flags to set
*/
public void setFlags(short flags) {
this.flags = flags;
}
/**
* @return the streamID
*/
public int getStreamID() {
return streamID;
}
/**
* @param streamID the streamID to set
*/
public void setStreamID(int streamID) {
this.streamID = streamID;
}
/**
* @return the payload
*/
public byte[] getPayload() {
return payload;
}
/**
* @param payload the payload to set
*/
public void setPayload(byte[] payload) {
this.payload = payload;
}
}