|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.format.URLFormat
Format a URL by encoding the characters.
ASCII characters 'a' through 'z', 'A' through 'Z', and '0' through '9' remain the same. So do the unreserved characters - _ . ! ~ * ' ().
All other ASCII characters are converted into the form "%ab"
where ab is the hex value of the character code.
Note: we used to have our own implementation, but this is now just a
wrapper for URLEncoder.
| Constructor Summary | |
URLFormat()
|
|
| Method Summary | |
java.lang.String |
format(java.lang.String uRLText)
Convert the given URL by converting the disallowed characters into two-byte hex representations, preceded by '%'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public URLFormat()
| Method Detail |
public final java.lang.String format(java.lang.String uRLText)
Convert the given URL by converting the disallowed characters into two-byte hex representations, preceded by '%'.
format in interface HTMLFormatuRLText - URL to be converted.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||