java.lang.Object | |
↳ | com.google.gwt.http.client.URL |
Utility class for the encoding and decoding URLs in their entirety or by their individual components.
com.google.gwt.http.HTTP
.
{@gwt.include com/google/gwt/examples/http/InheritsExample.gwt.xml}
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a string where all URL escape sequences have been converted back to
their original character representations.
| |||||||||||
This method is deprecated.
Use
decodeQueryString(String) ,
decodePathSegment(String)
| |||||||||||
This method is deprecated.
Use
decodeQueryString(String)
| |||||||||||
Returns a string where all URL component escape sequences have been
converted back to their original character representations.
| |||||||||||
Returns a string where all URL component escape sequences have been
converted back to their original character representations.
| |||||||||||
Returns a string where all characters that are not valid for a complete URL
have been escaped.
| |||||||||||
This method is deprecated.
Use
encodeQueryString(String)
| |||||||||||
This method is deprecated.
Use
encodeQueryString(String) ,
encodePathSegment(String)
| |||||||||||
Returns a string where all characters that are not valid for a URL
component have been escaped.
| |||||||||||
Returns a string where all characters that are not valid for a URL
component have been escaped.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns a string where all URL escape sequences have been converted back to their original character representations.
encodedURL | string containing encoded URL encoded sequences |
---|
NullPointerException | if encodedURL is null
|
---|
This method is deprecated.
Use decodeQueryString(String)
,
decodePathSegment(String)
Returns a string where all URL component escape sequences have been converted back to their original character representations.
encodedURLComponent | string containing encoded URL component sequences |
---|---|
fromQueryString | if true , +'s will be turned into
spaces, otherwise they'll be kept as-is. |
NullPointerException | if encodedURLComponent is null |
---|
This method is deprecated.
Use decodeQueryString(String)
Returns a string where all URL component escape sequences have been converted back to their original character representations.
Note: this method will convert the space character escape short form, '+', into a space. It should therefore only be used for query-string parts.
encodedURLComponent | string containing encoded URL component sequences |
---|
NullPointerException | if encodedURLComponent is null |
---|
Returns a string where all URL component escape sequences have been converted back to their original character representations.
encodedURLComponent | string containing encoded URL component sequences |
---|
NullPointerException | if encodedURLComponent is null
|
---|
Returns a string where all URL component escape sequences have been converted back to their original character representations.
Note: this method will convert the space character escape short form, '+', into a space. It should therefore only be used for query-string parts.
encodedURLComponent | string containing encoded URL component sequences |
---|
NullPointerException | if encodedURLComponent is null
|
---|
Returns a string where all characters that are not valid for a complete URL have been escaped. The escaping of a character is done by converting it into its UTF-8 encoding and then encoding each of the resulting bytes as a %xx hexadecimal escape sequence.
The following character sets are not escaped by this method:
- _ . ! ~ * ' ( )
; / ? : & = + $ , #
decodedURL | a string containing URL characters that may require encoding |
---|
NullPointerException | if decodedURL is null
|
---|
This method is deprecated.
Use encodeQueryString(String)
Returns a string where all characters that are not valid for a URL component have been escaped. The escaping of a character is done by converting it into its UTF-8 encoding and then encoding each of the resulting bytes as a %xx hexadecimal escape sequence.
Note: this method will convert any the space character into its escape short form, '+' rather than %20. It should therefore only be used for query-string parts.
The following character sets are not escaped by this method:
- _ . ! ~ * ' ( )
Notice that this method does encode the URL component delimiter characters:
; / ? : & = + $ , #
decodedURLComponent | a string containing invalid URL characters |
---|
NullPointerException | if decodedURLComponent is null |
---|
This method is deprecated.
Use encodeQueryString(String)
,
encodePathSegment(String)
Returns a string where all characters that are not valid for a URL component have been escaped. The escaping of a character is done by converting it into its UTF-8 encoding and then encoding each of the resulting bytes as a %xx hexadecimal escape sequence.
The following character sets are not escaped by this method:
- _ . ! ~ * ' ( )
Notice that this method does encode the URL component delimiter characters:
; / ? : & = + $ , #
decodedURLComponent | a string containing invalid URL characters |
---|---|
queryStringSpaces | if true , spaces will be encoded as
+'s. |
NullPointerException | if decodedURLComponent is null |
---|
Returns a string where all characters that are not valid for a URL component have been escaped. The escaping of a character is done by converting it into its UTF-8 encoding and then encoding each of the resulting bytes as a %xx hexadecimal escape sequence.
The following character sets are not escaped by this method:
- _ . ! ~ * ' ( )
Notice that this method does encode the URL component delimiter characters:
; / ? : & = + $ , #
decodedURLComponent | a string containing invalid URL characters |
---|
NullPointerException | if decodedURLComponent is null
|
---|
Returns a string where all characters that are not valid for a URL component have been escaped. The escaping of a character is done by converting it into its UTF-8 encoding and then encoding each of the resulting bytes as a %xx hexadecimal escape sequence.
Note: this method will convert any the space character into its escape short form, '+' rather than %20. It should therefore only be used for query-string parts.
The following character sets are not escaped by this method:
- _ . ! ~ * ' ( )
Notice that this method does encode the URL component delimiter characters:
; / ? : & = + $ , #
decodedURLComponent | a string containing invalid URL characters |
---|
NullPointerException | if decodedURLComponent is null
|
---|