- java.lang.Object
-
- swim.hpack.HpackHeader
-
- All Implemented Interfaces:
Comparable<HpackHeader>
,Debug
public final class HpackHeader extends Object implements Comparable<HpackHeader>, Debug
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(HpackHeader that)
static HpackHeader
create(byte[] name, byte[] value)
static HpackHeader
create(byte[] name, byte[] value, boolean sensitive)
static HpackHeader
create(String name)
static HpackHeader
create(String name, String value)
static HpackHeader
create(String name, String value, boolean sensitive)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
boolean
equalsName(byte[] name)
int
hashCode()
boolean
isBlank()
boolean
isSensitive()
String
lowerCaseName()
String
name()
int
nameSize()
String
toString()
String
value()
int
valueSize()
-
-
-
Method Detail
-
isBlank
public boolean isBlank()
-
lowerCaseName
public String lowerCaseName()
-
name
public String name()
-
nameSize
public int nameSize()
-
value
public String value()
-
valueSize
public int valueSize()
-
isSensitive
public boolean isSensitive()
-
compareTo
public int compareTo(HpackHeader that)
- Specified by:
compareTo
in interfaceComparable<HpackHeader>
-
equalsName
public boolean equalsName(byte[] name)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
create
public static HpackHeader create(byte[] name, byte[] value, boolean sensitive)
-
create
public static HpackHeader create(byte[] name, byte[] value)
-
create
public static HpackHeader create(String name, String value, boolean sensitive)
-
create
public static HpackHeader create(String name, String value)
-
create
public static HpackHeader create(String name)
-
-