|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.web.jcr.rest.client.json.JsonUtils
public final class JsonUtils

The JsonUtils class provides utilities needed to work with the ModeShape REST server JSON API.
| Method Summary | |
|---|---|
static String |
decode(String text)
|
static String |
encode(String text)
Forward slashes ('/') are not encoded. |
static String |
readInputStream(HttpURLConnection connection)
Note: The connection is not disconnected during this method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String decode(String text)
throws UnsupportedEncodingException
text - the text being URL decoded (never null)
UnsupportedEncodingException - if the charset is not supported
public static String encode(String text)
throws UnsupportedEncodingException
text - the text being URL encoded (never null)
UnsupportedEncodingException - if the charset is not supported
public static String readInputStream(HttpURLConnection connection)
throws IOException
connection - the connection whose input stream is going to be read from (never null)
null)
IOException - if there is a problem reading from the connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||