Package org.ocpsoft.urlbuilder.util
Class Encoder
java.lang.Object
org.ocpsoft.urlbuilder.util.Encoder
Utility class to encode URL path and query parts.
- Author:
- Lincoln Baxter, III
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringpath(CharSequence s) Encodes the given string using HTML form encoding as described in RFC 2396.static StringEncodes the given string using HTML form encoding as described in RFC 2396.
-
Constructor Details
-
Encoder
public Encoder()
-
-
Method Details
-
path
Encodes the given string using HTML form encoding as described in RFC 2396.- Throws:
IllegalArgumentException- when illegal URI syntax is attempted.
-
query
Encodes the given string using HTML form encoding as described in RFC 2396.- Throws:
IllegalArgumentException- when illegal URI syntax is attempted.
-