Package com.mastfrog.url
Class ParametersElement
java.lang.Object
com.mastfrog.url.ParametersElement
- All Implemented Interfaces:
URLComponent,Serializable,Comparable<ParametersElement>
public final class ParametersElement
extends Object
implements URLComponent, Comparable<ParametersElement>
One key/value pair in the query portion of a URL.
- Author:
- Tim Boudreau
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend this component to a StringBuilder.intbooleanGet a human-readable, localized name for this part of the URL.getKey()getValue()inthashCode()booleanisValid()Determine if this component is in compliance with the RFCs governing URLs and DNS.static ParametersElementtoString()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ParametersElement
-
-
Method Details
-
parse
-
getKey
-
getValue
-
decodedKey
-
decodedValue
-
toString
-
isValid
public boolean isValid()Description copied from interface:URLComponentDetermine if this component is in compliance with the RFCs governing URLs and DNS.- Specified by:
isValidin interfaceURLComponent- Returns:
- True if this component is valid.
-
getComponentName
Description copied from interface:URLComponentGet a human-readable, localized name for this part of the URL. Useful if an error message needs to be shown.- Specified by:
getComponentNamein interfaceURLComponent- Returns:
- The component name
-
appendTo
Description copied from interface:URLComponentAppend this component to a StringBuilder.- Specified by:
appendToin interfaceURLComponent- Parameters:
sb- A StringBuilder
-
compareTo
- Specified by:
compareToin interfaceComparable<ParametersElement>
-
equals
-
hashCode
public int hashCode()
-