Class TraceStateEntry
java.lang.Object
com.soklet.TraceStateEntry
A validated W3C
tracestate list member.
This type models only the W3C key/value envelope. Vendor-specific value contents are opaque.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @NonNull TraceStateEntryfromKeyAndValue(@NonNull String key, @NonNull String value) Creates a W3Ctracestatelist member from a key and value.static @NonNull Optional<TraceStateEntry> fromMember(@Nullable String member) Parses a W3Ctracestatelist member.getKey()Returns the W3Ctracestatekey.getValue()Returns the opaque W3Ctracestatevalue.inthashCode()Returns this entry in HTTP header member form.toString()
-
Method Details
-
fromMember
Parses a W3Ctracestatelist member.- Parameters:
member- the list member text, for examplevendor=value- Returns:
- the parsed entry, or
Optional.empty()if malformed
-
fromKeyAndValue
Creates a W3Ctracestatelist member from a key and value.- Parameters:
key- the W3Ctracestatekeyvalue- the opaque W3Ctracestatevalue- Returns:
- the trace-state entry
-
getKey
-
getValue
-
toHeaderMemberValue
Returns this entry in HTTP header member form.- Returns:
- the
key=valuerepresentation
-
toString
-
equals
-
hashCode
-