|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.willuhn.jameica.webadmin.JSONClient
public class JSONClient
Fuehrt JSON-Aufrufe an localhost oder fremde Rechner durch.
| Constructor Summary | |
|---|---|
JSONClient()
|
|
| Method Summary | |
|---|---|
static java.util.List |
asList(java.lang.String url,
java.lang.String restCommand)
Ruft einen JSON-Service auf und liefert das Ergebnis als Liste von Objekten zurueck. |
static java.util.Map |
toMap(org.json.JSONObject object)
Konvertiert ein JSON-Objekt in eine Map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONClient()
| Method Detail |
|---|
public static java.util.List asList(java.lang.String url,
java.lang.String restCommand)
throws java.lang.Exception
url - Basis-URL des JSON-Services.restCommand - das REST-Kommando.
java.lang.Exception
public static java.util.Map toMap(org.json.JSONObject object)
throws org.json.JSONException
object - JSON-Objekt.
org.json.JSONException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||