Package com.gmt2001.httpclient
Class URIUtil
java.lang.Object
com.gmt2001.httpclient.URIUtil
- Author:
- gmt2001
-
Method Summary
Modifier and TypeMethodDescriptionstatic URICreates aURIby 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-urlencodedusingURLEncoder.encode(String, java.nio.charset.Charset)
-
Method Details
-
create
Creates aURIby 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-urlencodedusingURLEncoder.encode(String, java.nio.charset.Charset)- Parameters:
uri- the string to parse- Returns:
- the
URI;nullif unable to encode some or all of the URI successfully
-