Package snap.web
Class ParsedUrlArgs
java.lang.Object
snap.web.ParsedUrlArgs
A class for working with parameter strings as found in a URL query part or fragment id, typically with the format:
field1=value1&field2=value2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Creates the string from fields/values.int
getFieldIndex
(String aName) Returns a field index for given field string.Returns the fields list.Returns the string.getValue
(int anIndex) Returns the individual value at given index.Returns a field value string for given field string.protected void
Creates the fields list.Sets a field value for given field name and value.toString()
Standard toString implementation.
-
Constructor Details
-
ParsedUrlArgs
Constructor for given string.
-
-
Method Details
-
getString
Returns the string. -
createString
Creates the string from fields/values. -
getValue
Returns the individual value at given index. -
getFields
Returns the fields list. -
getFieldIndex
Returns a field index for given field string. -
getValue
Returns a field value string for given field string. -
setValue
Sets a field value for given field name and value. -
loadFields
protected void loadFields()Creates the fields list. -
toString
Standard toString implementation.
-