Package com.teamdev.jxbrowser.net
Interface FormData.Pair
- Enclosing interface:
- FormData
public static interface FormData.Pair
A key-value pair that represents a segment of a form data, for example a form field content.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
key()
Returns a string that represents the form content segment key.static FormData.Pair
Returns thePair
instance for the givenkey
andvalue
.default String
value()
Returns a string that represents the form content segment value or an empty string if the key does not correspond to any value.
-
Method Details
-
of
Returns thePair
instance for the givenkey
andvalue
.The key-value pair that represents a segment of a form data, for example a form field content.
- Parameters:
key
- the form content segment keyvalue
- the form content segment value. Can be empty if thekey
does not correspond to anyvalue
. For example, an empty form field- Throws:
IllegalArgumentException
- whenkey
is empty or blank
-
key
Returns a string that represents the form content segment key. -
value
Returns a string that represents the form content segment value or an empty string if the key does not correspond to any value. For example, an empty form field.
-