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 Stringkey()Returns a string that represents the form content segment key.static FormData.PairReturns thePairinstance for the givenkeyandvalue.default Stringvalue()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 thePairinstance for the givenkeyandvalue.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 thekeydoes not correspond to anyvalue. For example, an empty form field- Throws:
IllegalArgumentException- whenkeyis 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.
-