Package com.gmt2001.httpclient
Class URIUtil
java.lang.Object
com.gmt2001.httpclient.URIUtil
- Author:
- gmt2001
-
Method Summary
Modifier and TypeMethodDescriptionstatic URI
Creates aURI
by parsing the given spec as described in RFC 2396 "Uniform Resource Identifiers: Generic * Syntax" and encoding any illegal characters according to the MIME formatapplication/x-www-form-urlencoded
usingURLEncoder.encode(String, java.nio.charset.Charset)
-
Method Details
-
create
Creates aURI
by parsing the given spec as described in RFC 2396 "Uniform Resource Identifiers: Generic * Syntax" and encoding any illegal characters according to the MIME formatapplication/x-www-form-urlencoded
usingURLEncoder.encode(String, java.nio.charset.Charset)
- Parameters:
uri
- the string to parse- Returns:
- the
URI
;null
if unable to encode some or all of the URI successfully
-