public interface FormFields extends HttpFields<FormFields>
FormFields
represent the URL's query string by the notation
originally used by the GET request of the ancient web forms (see
"https://en.wikipedia.org/wiki/Query_string#Web_forms"). Therefore the name
FormFields
, as them web forms provided fields with values (see
"https://en.wikipedia.org/wiki/Form_(HTML)")Modifier and Type | Method and Description |
---|---|
default void |
fromQueryString(String aQueryString)
Processes the query string and retrieves the therein defined form fields
and adds them to the
FormFields instance. |
default void |
fromUrl(String aUrl)
Extracts the query string from the provided URL by identifying the first
question mark ("?")
|
default String |
toQueryString() |
addTo, getFirst, set, withAddTo
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
default void fromQueryString(String aQueryString)
FormFields
instance.aQueryString
- The query string from which to extract the form being
added to the FormFields
instance.default String toQueryString()
default void fromUrl(String aUrl)
FormFields
instance.aUrl
- The URL from which to extract the query string which's form
fields are to be added to the FormFields
instance.Copyright © 2016. All rights reserved.