|
CS 1705 Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs1705.web.WebUtilities
public class WebUtilities
This class provides static utility methods that streamline some web-related operations.
| Method Summary | |
|---|---|
static String |
urlEncode(String content)
Encodes a string for use in a URL. |
static URL |
urlFor(String url)
Creates a URL object from a string, without throwing declared exceptions. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String urlEncode(String content)
URLEncoder.encode(String,String), using a UTF-8 encoding and
turning any exceptions into RuntimeExceptions.
content - The string to encode
public static URL urlFor(String url)
url - The url as a string
|
Last updated: Wed, Apr 1, 2009 12:29 AM EDT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||