Package org.dellroad.msrp.msg
Class Header
- java.lang.Object
-
- org.dellroad.msrp.msg.Header
-
public class Header extends Object
Generic MSRP header.Instances are immutable. When compared using
equals()
, names and values are compared case-sensitively. However in practice header names are compared case-insensitively; useSORT_BY_NAME
for these comparisons.
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<Header>
SORT_BY_NAME
-
-
-
Field Detail
-
SORT_BY_NAME
public static final Comparator<Header> SORT_BY_NAME
-
-
Constructor Detail
-
Header
public Header(String name, String value)
Constructor.- Parameters:
name
- header namevalue
- header value- Throws:
IllegalArgumentException
- if either parameter is nullIllegalArgumentException
- if either parameter is invalid
-
-