Package org.microproxy.frames
Record Class Http3Frame.Data
java.lang.Object
java.lang.Record
org.microproxy.frames.Http3Frame.Data
- Record Components:
data- the content, not copied
- All Implemented Interfaces:
Http3Frame,HttpFrame
- Enclosing interface:
Http3Frame
DATA (section 7.2.1).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.microproxy.frames.Http3Frame
Http3Frame.CancelPush, Http3Frame.Data, Http3Frame.GoAway, Http3Frame.Headers, Http3Frame.MaxPushId, Http3Frame.PushPromise, Http3Frame.Settings, Http3Frame.Unknown -
Field Summary
Fields inherited from interface org.microproxy.frames.Http3Frame
MAX_VARINT, SETTINGS_ENABLE_CONNECT_PROTOCOL, SETTINGS_H3_DATAGRAM, SETTINGS_MAX_FIELD_SECTION_SIZE, SETTINGS_QPACK_BLOCKED_STREAMS, SETTINGS_QPACK_MAX_TABLE_CAPACITY, TYPE_CANCEL_PUSH, TYPE_DATA, TYPE_GOAWAY, TYPE_HEADERS, TYPE_MAX_PUSH_ID, TYPE_PUSH_PROMISE, TYPE_SETTINGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.booleanCompares the content, not the array's identity.inthashCode()Returns a hash code value for this object.text()The content as UTF-8 text (malformed sequences replaced).toString()Returns a string representation of this record class.longtypeCode()The frame type's code on the wire.typeName()The frame type's name as the protocol's RFC spells it (DATA,HEADERS,SETTINGS, ...), orUNKNOWNfor an extension or reserved type.withData(byte[] newData) This frame with other content.This frame withtext, encoded as UTF-8, as its content.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.microproxy.frames.Http3Frame
protocol
-
Constructor Details
-
Data
public Data(byte[] data) Creates DATA.- Parameters:
data- the content, not copied
-
-
Method Details
-
typeName
Description copied from interface:HttpFrameThe frame type's name as the protocol's RFC spells it (DATA,HEADERS,SETTINGS, ...), orUNKNOWNfor an extension or reserved type. -
typeCode
public long typeCode()Description copied from interface:HttpFrameThe frame type's code on the wire. -
text
The content as UTF-8 text (malformed sequences replaced).- Returns:
- the decoded content
-
withData
This frame with other content.- Parameters:
newData- the new content- Returns:
- a copy with it
-
withText
This frame withtext, encoded as UTF-8, as its content.- Parameters:
text- the new content- Returns:
- a copy with the text
-
equals
Compares the content, not the array's identity. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-