Package org.kissweb
Class URLBuilder
java.lang.Object
org.kissweb.URLBuilder
A class used to process URL escape sequences.
Author: Blake McBride
Date: 12/20/21
Author: Blake McBride
Date: 12/20/21
-
Constructor Summary
ConstructorsConstructorDescriptionURLBuilder(String url) Create a URLBuilder passing it the full URL minus any URL parameters. -
Method Summary
Modifier and TypeMethodDescriptionaddParameter(String param, String value) Add a parameter to the URL.build()Return the final usable URL.static StringURL encode a string.
-
Constructor Details
-
URLBuilder
Create a URLBuilder passing it the full URL minus any URL parameters.- Parameters:
url-
-
-
Method Details
-
addParameter
Add a parameter to the URL. This method correctly escapes the arguments.- Parameters:
param-value-- Returns:
-
build
Return the final usable URL.- Returns:
-
encodeURLString
URL encode a string.- Parameters:
s-- Returns:
-