public class QueryString extends Properties
DEFAULT_MULTIVALUE_DELIMITER
Constructor and Description |
---|
QueryString()
Constructor.
|
QueryString(String urlWithQueryString)
Constructor.
|
QueryString(String urlWithQueryString,
String encoding)
Constructor.
|
QueryString(URL urlWithQueryString)
Default URL character encoding is UTF-8.
|
QueryString(URL urlWithQueryString,
String encoding)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
applyOnURL(String url)
Apply this url QueryString on the given URL.
|
URL |
applyOnURL(URL url)
Apply this url QueryString on the given URL.
|
String |
getEncoding()
Gets the character encoding.
|
String |
toString()
Convert this
QueryString to a URL-encoded string
representation that can be appended as is to a URL with no query string. |
addBigDecimal, addBoolean, addClass, addDate, addDouble, addFile, addFloat, addInt, addLocale, addLong, addString, get, getBigDecimal, getBigDecimal, getBigDecimals, getBoolean, getBoolean, getBooleans, getClass, getClass, getClasses, getDate, getDate, getDates, getDouble, getDouble, getDoubles, getFile, getFile, getFiles, getFloat, getFloat, getFloats, getInt, getInt, getInts, getLocale, getLocale, getLocales, getLong, getLong, getLongs, getMultiValueDelimiter, getString, getString, getStrings, isCaseInsensitiveKeys, load, load, load, load, load, load, loadFromJSON, loadFromJSON, loadFromString, loadFromXML, loadFromXML, loadFromXML, loadFromXML, loadFromXML, put, putAll, remove, setBigDecimal, setBoolean, setClass, setDate, setDouble, setFile, setFloat, setInt, setLocale, setLong, setMultiValueDelimiter, setString, store, store, store, store, store, store, storeToJSON, storeToJSON, storeToString, storeToXML, storeToXML, storeToXML, storeToXML, storeToXML, storeToXML, storeToXML
addMapChangeListener, clear, containsKey, containsValue, entrySet, isEmpty, keySet, removeMapChangeListener, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public QueryString()
public QueryString(URL urlWithQueryString)
urlWithQueryString
- a URL from which to extract a query string.public QueryString(URL urlWithQueryString, String encoding)
urlWithQueryString
- a URL from which to extract a query string.encoding
- character encodingpublic QueryString(String urlWithQueryString)
URLException
if UTF-8 encoding is not supported.urlWithQueryString
- a URL from which to extract a query string.public QueryString(String urlWithQueryString, String encoding)
URLException
if the supplied encoding is
unsupported or invalid.urlWithQueryString
- a URL from which to extract a query string.encoding
- character encodingpublic String getEncoding()
public String toString()
QueryString
to a URL-encoded string
representation that can be appended as is to a URL with no query string.toString
in class ObservableMap<String,List<String>>
public String applyOnURL(String url)
url
- the URL to apply this query string.Copyright © 2008–2021 Norconex Inc.. All rights reserved.