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 thekey
parameter.getName()
Get the value of thename
parameter.boolean
isBs()
Get the flag indicating whether thebs
flag is set.boolean
isReq()
Get the flag indicating whether thereq
flag is set.boolean
isSf()
Get the flag indicating whether thesf
flag is set.boolean
isTr()
Get the flag indicating whether thetr
flag 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 thebs
flag is set.Set the value of thekey
parameter.Set the value of thename
parameter.Set the flag indicating whether thereq
flag is set.Set the flag indicating whether thesf
flag is set.Set the flag indicating whether thetr
flag 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, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods 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 thebs
flag is set.- Returns:
- True if the
bs
flag 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 thebs
flag is set.- Parameters:
bs
- True to indicate that thebs
flag is set.- Returns:
this
object.- See Also:
-
getKey
Get the value of thekey
parameter.- Returns:
- The value of the
key
parameter. - 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 thekey
parameter.- Parameters:
key
- The value of thekey
parameter.- Returns:
this
object.- See Also:
-
getName
Get the value of thename
parameter.- Returns:
- The value of the
name
parameter. - 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 thename
parameter.- Parameters:
name
- The value of thename
parameter.- Returns:
this
object.- See Also:
-
isReq
public boolean isReq()Get the flag indicating whether thereq
flag is set.- Returns:
- True if the
req
flag 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 thereq
flag is set.- Parameters:
req
- True to indicate that thereq
flag is set.- Returns:
this
object.- See Also:
-
isSf
public boolean isSf()Get the flag indicating whether thesf
flag is set.- Returns:
- True if the
sf
flag 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 thesf
flag is set.- Parameters:
sf
- True to indicate that thesf
flag is set.- Returns:
this
object.- See Also:
-
isTr
public boolean isTr()Get the flag indicating whether thetr
flag is set.- Returns:
- True if the
tr
flag 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 thetr
flag is set.- Parameters:
tr
- True to indicate that thetr
flag is set.- Returns:
this
object.- See Also:
-
toString
Get the string representation of this instance, which is the serialized parameters returned by theserialize()
method.- Overrides:
toString
in 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.
-