Class ComponentIdentifierParameters
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> SequencedMap<String,Object>
HTTP Signature Component Parameters.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String"bs": Byte Sequence wrapping indicator.static final String"key": Single key value of Dictionary Structured Fields.static final String"name": Single named query parameter.static final String"req": Related request indicator.static final String"sf": Strict Structured Field serialization.static final String"tr": Trailer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Get the value of thekeyparameter.getName()Get the value of thenameparameter.booleanisBs()Get the flag indicating whether thebsflag is set.booleanisReq()Get the flag indicating whether thereqflag is set.booleanisSf()Get the flag indicating whether thesfflag is set.booleanisTr()Get the flag indicating whether thetrflag is set.Serialize the parameters represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and return the resulting string.Serialize the parameters represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and write the resulting string into the specified string builder.Set the flag indicating whether thebsflag is set.Set the value of thekeyparameter.Set the value of thenameparameter.Set the flag indicating whether thereqflag is set.Set the flag indicating whether thesfflag is set.Set the flag indicating whether thetrflag is set.toString()Get the string representation of this instance, which is the serialized parameters returned by theserialize()method.Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Field Details
-
BS
-
KEY
-
NAME
-
REQ
-
SF
-
TR
-
-
Constructor Details
-
ComponentIdentifierParameters
public ComponentIdentifierParameters()The default constructor.
-
-
Method Details
-
isBs
public boolean isBs()Get the flag indicating whether thebsflag is set.- Returns:
- True if the
bsflag is set. - Throws:
IllegalStateException- The parameter value identified by the key"bs"is not null, but it is not an instance ofBoolean.- See Also:
-
setBs
Set the flag indicating whether thebsflag is set.- Parameters:
bs- True to indicate that thebsflag is set.- Returns:
thisobject.- See Also:
-
getKey
Get the value of thekeyparameter.- Returns:
- The value of the
keyparameter. - Throws:
IllegalStateException- The parameter value identified by the key"key"is not null, but it is not an instance ofString.- See Also:
-
setKey
Set the value of thekeyparameter.- Parameters:
key- The value of thekeyparameter.- Returns:
thisobject.- See Also:
-
getName
Get the value of thenameparameter.- Returns:
- The value of the
nameparameter. - Throws:
IllegalStateException- The parameter value identified by the key"name"is not null, but it is not an instance ofString.- See Also:
-
setName
Set the value of thenameparameter.- Parameters:
name- The value of thenameparameter.- Returns:
thisobject.- See Also:
-
isReq
public boolean isReq()Get the flag indicating whether thereqflag is set.- Returns:
- True if the
reqflag is set. - Throws:
IllegalStateException- The parameter value identified by the key"req"is not null, but it is not an instance ofBoolean.- See Also:
-
setReq
Set the flag indicating whether thereqflag is set.- Parameters:
req- True to indicate that thereqflag is set.- Returns:
thisobject.- See Also:
-
isSf
public boolean isSf()Get the flag indicating whether thesfflag is set.- Returns:
- True if the
sfflag is set. - Throws:
IllegalStateException- The parameter value identified by the key"sf"is not null, but it is not an instance ofBoolean.- See Also:
-
setSf
Set the flag indicating whether thesfflag is set.- Parameters:
sf- True to indicate that thesfflag is set.- Returns:
thisobject.- See Also:
-
isTr
public boolean isTr()Get the flag indicating whether thetrflag is set.- Returns:
- True if the
trflag is set. - Throws:
IllegalStateException- The parameter value identified by the key"tr"is not null, but it is not an instance ofBoolean.- See Also:
-
setTr
Set the flag indicating whether thetrflag is set.- Parameters:
tr- True to indicate that thetrflag is set.- Returns:
thisobject.- See Also:
-
toString
Get the string representation of this instance, which is the serialized parameters returned by theserialize()method.- Overrides:
toStringin classAbstractMap<String,Object> - Returns:
- The string representation of this instance.
-
serialize
Serialize the parameters represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and return the resulting string.- Returns:
- The serialized parameters represented by this instance.
-
serializeTo
Serialize the parameters represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and write the resulting string into the specified string builder.The ABNF for Parameters from RFC 8941 Structured Field Values for HTTP, 3.1.2. Parameters:
parameters = *( ";" *SP parameter ) parameter = param-key [ "=" param-value ] param-key = key key = ( lcalpha / "*" ) *( lcalpha / DIGIT / "_" / "-" / "." / "*" ) lcalpha = %x61-7A ; a-z param-value = bare-item- Parameters:
sb- A string builder into which the resulting string is written.- Returns:
- The same string builder that was passed as the argument.
-