public class JsonRequestFactory extends Object implements IJsonRequestFactory
Constructor and Description |
---|
JsonRequestFactory() |
Modifier and Type | Method and Description |
---|---|
static JsonRequestFactory |
get() |
JsonRequest |
get(JsonRequest.Action action,
String resource)
Construct a partial JsonRequest that CANNOT be executed; used as skeleton for a clone construction
|
JsonRequest |
get(JsonRequest.Action action,
String resource,
String hash,
String userAgent,
String baseUrl)
Construct a complete JsonRequest suitable for execution.
|
JsonRequest |
get(JsonRequest.Action action,
URL url)
Construct a JSON request from a complete URL; the request is partial and cannot be immediately executed
|
public static JsonRequestFactory get()
public JsonRequest get(JsonRequest.Action action, String resource, String hash, String userAgent, String baseUrl)
IJsonRequestFactory
get
in interface IJsonRequestFactory
action
- The action to executeresource
- The resource to execute againsthash
- The user auth hash or null if not available/not requireduserAgent
- The user agent to pass to the serverbaseUrl
- The service base URLpublic JsonRequest get(JsonRequest.Action action, String resource)
IJsonRequestFactory
get
in interface IJsonRequestFactory
action
- The action to executeresource
- The resource to execute againstpublic JsonRequest get(JsonRequest.Action action, URL url)
IJsonRequestFactory
get
in interface IJsonRequestFactory
action
- The action to executeurl
- The URL to build the request fromCopyright © 2012–2014 Battams, Derek. All rights reserved.