Project Wonder 5.0

er.ajax.json.client
Class JavaJSONClient

java.lang.Object
  extended by er.ajax.json.client.JavaJSONClient

public class JavaJSONClient
extends Object

If you are trying to communicate with a WO JSON server from another Java app, JavaJSONClient provides a factory for creating the appropiate JSON Client class.

Author:
mschrag

Constructor Summary
JavaJSONClient()
           
 
Method Summary
static org.jabsorb.client.Client create(String jsonUrl, boolean useHttpClient)
          Creates and returns a JSON Client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaJSONClient

public JavaJSONClient()
Method Detail

create

public static org.jabsorb.client.Client create(String jsonUrl,
                                               boolean useHttpClient)
                                        throws Exception
Creates and returns a JSON Client.

Parameters:
jsonUrl - the JSON service URL
useHttpClient - if true, Commons HTTPClient will be used instead of URLConnection (much better, but requires HttpClient)
Returns:
the JSON client
Throws:
Exception - if the client creation fails

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.