From d01c66d37e617892f0bc7be27fa89f5a25183a85 Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Wed, 25 Oct 2017 21:25:28 +0000 Subject: [PATCH 1/9] Update ApiDemo.java --- tests/tests/ApiDemo.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/tests/ApiDemo.java b/tests/tests/ApiDemo.java index d69e571..058d7ff 100644 --- a/tests/tests/ApiDemo.java +++ b/tests/tests/ApiDemo.java @@ -1,4 +1,4 @@ -package tests; +package tests.tests; @@ -20,16 +20,16 @@ public static void main(String[] args) { //Console.log(api.getAuthUrl(api.getRequestToken())); - + try { MaxCDNObject data = api.get("/account.json"); if(!data.error) Console.log(data); else { - Console.log("Error " + data.getErrorMessage()); + Console.log("Error ".concat(data.getErrorMessage()) ); } - try { + MaxCDNObject post_example = api.post("/zones/push.json", new MaxCDNRequest("name", "NewZone91").append("password", "password")); if(post_example.error){ Console.log(post_example.getErrorMessage()); @@ -39,6 +39,8 @@ public static void main(String[] args) { } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); + } catch (Exception e){ + e.printStackTrace(); } From aeaf9d0f702327b4e7d4be7f9318414d4fd160c4 Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Wed, 25 Oct 2017 21:31:34 +0000 Subject: [PATCH 2/9] Add files via upload --- src/com/maxcdn/MaxCDN.java | 28 +++++++------------- src/com/maxcdn/MaxCDNApi.java | 4 +-- src/com/maxcdn/MaxCDNObject.java | 44 +++++-------------------------- src/com/maxcdn/MaxCDNRequest.java | 10 +++---- 4 files changed, 21 insertions(+), 65 deletions(-) diff --git a/src/com/maxcdn/MaxCDN.java b/src/com/maxcdn/MaxCDN.java index 2922748..45521df 100644 --- a/src/com/maxcdn/MaxCDN.java +++ b/src/com/maxcdn/MaxCDN.java @@ -1,6 +1,7 @@ package com.maxcdn; import java.security.SignatureException; +import org.json.JSONException; import org.scribe.builder.ServiceBuilder; import org.scribe.model.OAuthRequest; @@ -39,16 +40,16 @@ public MaxCDN(String alias, String consumer_key, String consumer_secret,Token to /* * API Methods */ - public MaxCDNObject get(String endpoint){ + public MaxCDNObject get(String endpoint) throws JSONException,SignatureException, Exception { return this.request(endpoint, Verb.GET, null); } - public MaxCDNObject delete(String endpoint){ + public MaxCDNObject delete(String endpoint) throws JSONException,SignatureException, Exception { return this.request(endpoint, Verb.DELETE, null); } - public MaxCDNObject put(String endpoint, MaxCDNRequest request){ + public MaxCDNObject put(String endpoint, MaxCDNRequest request) throws JSONException,SignatureException, Exception{ return this.request(endpoint, Verb.PUT, request); } - public MaxCDNObject post(String endpoint, MaxCDNRequest request){ + public MaxCDNObject post(String endpoint, MaxCDNRequest request) throws JSONException,SignatureException, Exception{ return this.request(endpoint, Verb.POST, request); } @@ -82,25 +83,14 @@ public Token getAccessToken(Token requestToken, String verify){ return service.getAccessToken(requestToken, new Verifier(verify) ); } - public synchronized MaxCDNObject request(String end, Verb verb, MaxCDNRequest body){ - try { + public synchronized MaxCDNObject request(String end, Verb verb, MaxCDNRequest body) throws JSONException,SignatureException, Exception { if(token_stored == null) return new MaxCDNObject(this._request(end, verb, body)); else return new MaxCDNObject(this._request(end, verb, body,token_stored)); - } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } } - public synchronized MaxCDNObject request(String end, Verb verb, MaxCDNRequest body,Token token){ - try { + + public synchronized MaxCDNObject request(String end, Verb verb, MaxCDNRequest body,Token token) throws JSONException,SignatureException, Exception { return new MaxCDNObject(this._request(end, verb, body,token)); - } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } } /* @@ -121,7 +111,7 @@ public synchronized String _request(String end, Verb verb, MaxCDNRequest body,To .apiSecret(secret) .build(); - OAuthRequest request = new OAuthRequest(verb, this.MaxCDNrws_url + alias + end); + OAuthRequest request = new OAuthRequest(verb, String.format("%s%s%s", this.MaxCDNrws_url , alias, end)); request.addHeader("User-Agent", "Java MaxCDN API Client"); if(verb == Verb.PUT || verb == Verb.POST){ for(int i = 0;i < body.names().length(); i++){ diff --git a/src/com/maxcdn/MaxCDNApi.java b/src/com/maxcdn/MaxCDNApi.java index d98b78f..ce2ec20 100644 --- a/src/com/maxcdn/MaxCDNApi.java +++ b/src/com/maxcdn/MaxCDNApi.java @@ -17,13 +17,13 @@ public class MaxCDNApi extends DefaultApi10a { @Override public String getAccessTokenEndpoint() { - return "https://" + ACCESS_TOKEN_RESOURCE; + return String.format("https://%s", ACCESS_TOKEN_RESOURCE); } @Override public String getRequestTokenEndpoint() { - return "https://" + REQUEST_TOKEN_RESOURCE; + return String.format("https://%s", REQUEST_TOKEN_RESOURCE); } diff --git a/src/com/maxcdn/MaxCDNObject.java b/src/com/maxcdn/MaxCDNObject.java index b7f5c12..67e6b07 100644 --- a/src/com/maxcdn/MaxCDNObject.java +++ b/src/com/maxcdn/MaxCDNObject.java @@ -19,7 +19,7 @@ public MaxCDNObject(String json) throws JSONException{ if(this.has("error")) error = true; } - public String getErrorMessage(){ + public String getErrorMessage() throws JSONException { return error ? this.getJson("error").getString("message") : null; } public MaxCDNObject(String key,Object data) throws JSONException{ @@ -32,52 +32,22 @@ public MaxCDNObject(Object json) throws JSONException{ } - public MaxCDNObject append(String key, Object value){ - try { - this.put(key, value); - } catch (JSONException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } + public MaxCDNObject append(String key, Object value) throws JSONException{ + this.put(key, value); return this; } - public MaxCDNObject getJson(String key){ - try { + public MaxCDNObject getJson(String key) throws JSONException{ return new MaxCDNObject(this.get(key)); - } catch (JSONException e) { - - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } } - public Number getNumber(String key){ - try { + public Number getNumber(String key) throws JSONException { return (Number) this.get(key); - } catch (JSONException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } } - public String getString(String key){ - try { + public String getString(String key) throws JSONException{ return (String) this.get(key); - } catch (JSONException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } } - public JSONArray getArray(String key){ - try { + public JSONArray getArray(String key) throws JSONException{ return this.getJSONArray(key); - } catch (JSONException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } } } diff --git a/src/com/maxcdn/MaxCDNRequest.java b/src/com/maxcdn/MaxCDNRequest.java index 72ce6c0..399e3fc 100644 --- a/src/com/maxcdn/MaxCDNRequest.java +++ b/src/com/maxcdn/MaxCDNRequest.java @@ -2,6 +2,7 @@ import org.json.JSONException; + public class MaxCDNRequest extends MaxCDNObject { public MaxCDNRequest() throws JSONException { @@ -17,13 +18,8 @@ public MaxCDNRequest(String key,Object data) throws JSONException{ this.put(key, data); //code = this.getInt("code"); } - public MaxCDNRequest append(String key, Object value){ - try { - this.put(key, value); - } catch (JSONException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } + public MaxCDNRequest append(String key, Object value) throws JSONException { + this.put(key, value); return this; } From 633174c57b324e9bca3978708bbe95d24b91b8b5 Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Wed, 25 Oct 2017 21:40:10 +0000 Subject: [PATCH 3/9] Add files via upload --- pom.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d4ed69c --- /dev/null +++ b/pom.xml @@ -0,0 +1,20 @@ + + 4.0.0 + com.maxcdn + maxcdnn + 0.0.1 + MaxCDN + MaxCDN Java API client. + + + org.json + json + 20171018 + + + org.scribe + scribe + 1.3.7 + + + \ No newline at end of file From 3a77f80a5379f047ff00e17b2698bc1418d5bd9a Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Wed, 25 Oct 2017 21:44:42 +0000 Subject: [PATCH 4/9] Update pom.xml --- pom.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index d4ed69c..45fd73a 100644 --- a/pom.xml +++ b/pom.xml @@ -1,20 +1,20 @@ 4.0.0 com.maxcdn - maxcdnn + maxcdn 0.0.1 MaxCDN MaxCDN Java API client. org.json - json - 20171018 + json + 20171018 - org.scribe - scribe - 1.3.7 + org.scribe + scribe + 1.3.7 - \ No newline at end of file + From a14e6cce369802853443820cd2806c0711288900 Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Wed, 25 Oct 2017 22:03:52 +0000 Subject: [PATCH 5/9] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 51421e8..6f63e81 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ - Java 1.6 or Later +## Dependencies +1. Scribe OAuth Library » 1.3.7 [Link](https://mvnrepository.com/artifact/org.scribe/scribe) +2. org.json (JSON in Java) » 20171018 [Link](https://mvnrepository.com/artifact/org.json/json) + ## Usage import com.maxcdn.MaxCDN; import com.maxcdn.MaxCDNObject; @@ -12,7 +16,11 @@ //Class construction MaxCDN api = new MaxCDN(YOUR_ALIAS ,YOUR_CONSUMER_KEY,YOUR_CONSUMER_SECRET); //Performing a GET request + try { MaxCDNObject data = api.get("/account.json"); + } catch(Exception e){ + e.printStackTrace(); + } ## Advanced Usage This section describes how to perform PUT and POST requests. From 2f46e9ac135f458f3e27ac5614012550937fe21e Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Thu, 26 Oct 2017 15:44:00 +0000 Subject: [PATCH 6/9] Add files via upload --- src/com/maxcdn/MaxCDN.java | 87 +++++++++++++++++++++++++++-- src/com/maxcdn/MaxCDNException.java | 9 +++ src/com/maxcdn/MaxCDNObject.java | 22 ++++++-- src/com/maxcdn/MaxCDNRequest.java | 2 +- 4 files changed, 108 insertions(+), 12 deletions(-) create mode 100644 src/com/maxcdn/MaxCDNException.java diff --git a/src/com/maxcdn/MaxCDN.java b/src/com/maxcdn/MaxCDN.java index 45521df..7ecaf3d 100644 --- a/src/com/maxcdn/MaxCDN.java +++ b/src/com/maxcdn/MaxCDN.java @@ -1,5 +1,10 @@ package com.maxcdn; +/** + * MaxCDN - Java API client + * @author Cheikh Seck + * @version 0.0.1 + */ import java.security.SignatureException; import org.json.JSONException; @@ -14,12 +19,31 @@ public class MaxCDN { + /** + * Instance's API alias. + */ public String alias; + /** + * Instance's API key. + */ public String key; + /** + * Instance's API secret. + */ public String secret; + /** + * Access token of instance. + */ private Token token_stored; + /** + * MaxCDN RWS URL + */ public String MaxCDNrws_url = "https://rws.maxcdn.com/"; + + /** + * Initialize client without API access token. + */ public MaxCDN(String alias, String consumer_key, String consumer_secret){ this.alias = alias; this.key = consumer_key; @@ -28,7 +52,10 @@ public MaxCDN(String alias, String consumer_key, String consumer_secret){ } - + /** + * Initialize client with API token. + * @param token String of a valid API token. + */ public MaxCDN(String alias, String consumer_key, String consumer_secret,Token token){ this.alias = alias; this.key = consumer_key; @@ -37,22 +64,44 @@ public MaxCDN(String alias, String consumer_key, String consumer_secret,Token to } - /* - * API Methods + /** + * Perform a request with verb GET to specified endpoint. + * @param endpoint API endpoint to perform GET request on. + * @return MaxCDNObject */ public MaxCDNObject get(String endpoint) throws JSONException,SignatureException, Exception { return this.request(endpoint, Verb.GET, null); } + /** + * Perform a request with verb DELETE to specified endpoint. + * @param endpoint String of API endpoint to use. + * @return MaxCDNObject + */ public MaxCDNObject delete(String endpoint) throws JSONException,SignatureException, Exception { return this.request(endpoint, Verb.DELETE, null); } + /** + * Perform a request with verb PUT to specified endpoint. + * @param endpoint String of API endpoint to use. + * @param request Data to be submitted with request. + * @return MaxCDNObject + */ public MaxCDNObject put(String endpoint, MaxCDNRequest request) throws JSONException,SignatureException, Exception{ return this.request(endpoint, Verb.PUT, request); } + /** + * Perform a request with verb POST to specified endpoint. + * @param endpoint String of API endpoint to use. + * @param request Data to be submitted with request. + * @return MaxCDNObject + */ public MaxCDNObject post(String endpoint, MaxCDNRequest request) throws JSONException,SignatureException, Exception{ return this.request(endpoint, Verb.POST, request); } + /** + * Generate a request token. + */ public Token getRequestToken(){ OAuthService service = new ServiceBuilder() .provider(MaxCDNApi.class) @@ -61,7 +110,11 @@ public Token getRequestToken(){ .build(); return service.getRequestToken(); } - + /** + * Perform a request with verb PUT to specified endpoint. + * @param requestToken. + * @return String of URL to authorize application. + */ public String getAuthUrl(Token requestToken){ // Obtain the Request Token OAuthService service = new ServiceBuilder() @@ -74,6 +127,12 @@ public String getAuthUrl(Token requestToken){ return service.getAuthorizationUrl(requestToken); } + /** + * Get access token from MaxCDN. + * @param requestToken Request token to submit with request. + * @param verify Temporary access token to get long lived access token. + * @return + */ public Token getAccessToken(Token requestToken, String verify){ OAuthService service = new ServiceBuilder() .provider(MaxCDNApi.class) @@ -83,18 +142,34 @@ public Token getAccessToken(Token requestToken, String verify){ return service.getAccessToken(requestToken, new Verifier(verify) ); } + /** + * Perform a request wih a custom verb. The current instance's access token will be used. + * @param end String of API endpoint to use. + * @param verb String of request verb to use. + * @param body Data to be submitted with request. + * @return MaxCDNObject + */ public synchronized MaxCDNObject request(String end, Verb verb, MaxCDNRequest body) throws JSONException,SignatureException, Exception { if(token_stored == null) return new MaxCDNObject(this._request(end, verb, body)); else return new MaxCDNObject(this._request(end, verb, body,token_stored)); } + /** + * Perform a request wih a custom verb and access token. + * @param end String of API endpoint to use. + * @param verb String of request verb to use. + * @param body Data to be submitted with request. + * @param token access token to use with request. + * @return MaxCDNObject + */ public synchronized MaxCDNObject request(String end, Verb verb, MaxCDNRequest body,Token token) throws JSONException,SignatureException, Exception { return new MaxCDNObject(this._request(end, verb, body,token)); } - /* - * Manually setting the access token + /** + * Set access token + * @param token Token to set as the instance's token. */ public boolean setToken(Token token){ token_stored = token; diff --git a/src/com/maxcdn/MaxCDNException.java b/src/com/maxcdn/MaxCDNException.java new file mode 100644 index 0000000..31f269c --- /dev/null +++ b/src/com/maxcdn/MaxCDNException.java @@ -0,0 +1,9 @@ +package com.maxcdn; + +@SuppressWarnings("serial") +public class MaxCDNException extends Exception { + + public MaxCDNException(String message){ + super(message); + } +} diff --git a/src/com/maxcdn/MaxCDNObject.java b/src/com/maxcdn/MaxCDNObject.java index 67e6b07..161fecf 100644 --- a/src/com/maxcdn/MaxCDNObject.java +++ b/src/com/maxcdn/MaxCDNObject.java @@ -3,20 +3,28 @@ import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; +import com.maxcdn.MaxCDNException; public class MaxCDNObject extends JSONObject { + /** + * Code of request. + */ public int code; + /** + * Specifies if request has error. + */ public boolean error = false; public MaxCDNObject() throws JSONException{ super(); - //this.put(key, data); - //code = this.getInt("code"); } - public MaxCDNObject(String json) throws JSONException{ + public MaxCDNObject(String json) throws JSONException,MaxCDNException { super(new JSONObject(json).has("data") ? ((JSONObject) new JSONObject(json).get("data")).toString() : json ); + error = this.has("error"); + if( error ){ + throw new MaxCDNException( this.getJson("error").getString("message") ); + } code = new JSONObject(json).getInt("code"); - if(this.has("error")) error = true; } public String getErrorMessage() throws JSONException { @@ -31,9 +39,13 @@ public MaxCDNObject(Object json) throws JSONException{ super(((JSONObject)json).toString() ); } - + /** + * Set/Add key and object pair. use method remove(Object value) to remove a key. + * @return MaxCDNObject + */ public MaxCDNObject append(String key, Object value) throws JSONException{ this.put(key, value); + return this; } public MaxCDNObject getJson(String key) throws JSONException{ diff --git a/src/com/maxcdn/MaxCDNRequest.java b/src/com/maxcdn/MaxCDNRequest.java index 399e3fc..ebb6949 100644 --- a/src/com/maxcdn/MaxCDNRequest.java +++ b/src/com/maxcdn/MaxCDNRequest.java @@ -9,7 +9,7 @@ public MaxCDNRequest() throws JSONException { super(); // TODO Auto-generated constructor stub } - public MaxCDNRequest(String json) throws JSONException { + public MaxCDNRequest(String json) throws JSONException, MaxCDNException { super(json); // TODO Auto-generated constructor stub } From 2efbc3c6e687c1ee4f96ebc531cfd69eb25e2dda Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Thu, 26 Oct 2017 15:45:46 +0000 Subject: [PATCH 7/9] Create index.html --- doc/index.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/index.html diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/doc/index.html @@ -0,0 +1 @@ + From 6127458c335c8d32ba75adcabe07e32b339c5ac6 Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Thu, 26 Oct 2017 15:47:39 +0000 Subject: [PATCH 8/9] Add files via upload --- doc/allclasses-frame.html | 25 + doc/allclasses-noframe.html | 25 + doc/com/maxcdn/Console.html | 307 ++++++++ doc/com/maxcdn/MaxCDN.html | 720 ++++++++++++++++++ doc/com/maxcdn/MaxCDNApi.html | 399 ++++++++++ doc/com/maxcdn/MaxCDNException.html | 262 +++++++ doc/com/maxcdn/MaxCDNObject.html | 517 +++++++++++++ doc/com/maxcdn/MaxCDNRequest.html | 375 +++++++++ doc/com/maxcdn/class-use/Console.html | 124 +++ doc/com/maxcdn/class-use/MaxCDN.html | 124 +++ doc/com/maxcdn/class-use/MaxCDNApi.html | 124 +++ doc/com/maxcdn/class-use/MaxCDNException.html | 165 ++++ doc/com/maxcdn/class-use/MaxCDNObject.html | 227 ++++++ doc/com/maxcdn/class-use/MaxCDNRequest.html | 218 ++++++ doc/com/maxcdn/package-frame.html | 28 + doc/com/maxcdn/package-summary.html | 173 +++++ doc/com/maxcdn/package-tree.html | 161 ++++ doc/com/maxcdn/package-use.html | 163 ++++ doc/constant-values.html | 167 ++++ doc/deprecated-list.html | 124 +++ doc/help-doc.html | 229 ++++++ doc/index-files/index-1.html | 145 ++++ doc/index-files/index-10.html | 137 ++++ doc/index-files/index-11.html | 137 ++++ doc/index-files/index-12.html | 133 ++++ doc/index-files/index-13.html | 131 ++++ doc/index-files/index-2.html | 137 ++++ doc/index-files/index-3.html | 131 ++++ doc/index-files/index-4.html | 131 ++++ doc/index-files/index-5.html | 159 ++++ doc/index-files/index-6.html | 131 ++++ doc/index-files/index-7.html | 129 ++++ doc/index-files/index-8.html | 169 ++++ doc/index-files/index-9.html | 135 ++++ doc/index.html | 75 +- doc/overview-frame.html | 22 + doc/overview-summary.html | 142 ++++ doc/overview-tree.html | 163 ++++ doc/package-list | 2 + doc/script.js | 30 + doc/serialized-form.html | 137 ++++ doc/stylesheet.css | 574 ++++++++++++++ doc/tests/tests/ApiDemo.html | 271 +++++++ doc/tests/tests/class-use/ApiDemo.html | 124 +++ doc/tests/tests/package-frame.html | 20 + doc/tests/tests/package-summary.html | 142 ++++ doc/tests/tests/package-tree.html | 137 ++++ doc/tests/tests/package-use.html | 124 +++ 48 files changed, 8424 insertions(+), 1 deletion(-) create mode 100644 doc/allclasses-frame.html create mode 100644 doc/allclasses-noframe.html create mode 100644 doc/com/maxcdn/Console.html create mode 100644 doc/com/maxcdn/MaxCDN.html create mode 100644 doc/com/maxcdn/MaxCDNApi.html create mode 100644 doc/com/maxcdn/MaxCDNException.html create mode 100644 doc/com/maxcdn/MaxCDNObject.html create mode 100644 doc/com/maxcdn/MaxCDNRequest.html create mode 100644 doc/com/maxcdn/class-use/Console.html create mode 100644 doc/com/maxcdn/class-use/MaxCDN.html create mode 100644 doc/com/maxcdn/class-use/MaxCDNApi.html create mode 100644 doc/com/maxcdn/class-use/MaxCDNException.html create mode 100644 doc/com/maxcdn/class-use/MaxCDNObject.html create mode 100644 doc/com/maxcdn/class-use/MaxCDNRequest.html create mode 100644 doc/com/maxcdn/package-frame.html create mode 100644 doc/com/maxcdn/package-summary.html create mode 100644 doc/com/maxcdn/package-tree.html create mode 100644 doc/com/maxcdn/package-use.html create mode 100644 doc/constant-values.html create mode 100644 doc/deprecated-list.html create mode 100644 doc/help-doc.html create mode 100644 doc/index-files/index-1.html create mode 100644 doc/index-files/index-10.html create mode 100644 doc/index-files/index-11.html create mode 100644 doc/index-files/index-12.html create mode 100644 doc/index-files/index-13.html create mode 100644 doc/index-files/index-2.html create mode 100644 doc/index-files/index-3.html create mode 100644 doc/index-files/index-4.html create mode 100644 doc/index-files/index-5.html create mode 100644 doc/index-files/index-6.html create mode 100644 doc/index-files/index-7.html create mode 100644 doc/index-files/index-8.html create mode 100644 doc/index-files/index-9.html create mode 100644 doc/overview-frame.html create mode 100644 doc/overview-summary.html create mode 100644 doc/overview-tree.html create mode 100644 doc/package-list create mode 100644 doc/script.js create mode 100644 doc/serialized-form.html create mode 100644 doc/stylesheet.css create mode 100644 doc/tests/tests/ApiDemo.html create mode 100644 doc/tests/tests/class-use/ApiDemo.html create mode 100644 doc/tests/tests/package-frame.html create mode 100644 doc/tests/tests/package-summary.html create mode 100644 doc/tests/tests/package-tree.html create mode 100644 doc/tests/tests/package-use.html diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html new file mode 100644 index 0000000..f22074e --- /dev/null +++ b/doc/allclasses-frame.html @@ -0,0 +1,25 @@ + + + + + +All Classes + + + + + +

All Classes

+ + + diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html new file mode 100644 index 0000000..1a7cc12 --- /dev/null +++ b/doc/allclasses-noframe.html @@ -0,0 +1,25 @@ + + + + + +All Classes + + + + + +

All Classes

+ + + diff --git a/doc/com/maxcdn/Console.html b/doc/com/maxcdn/Console.html new file mode 100644 index 0000000..dfd7106 --- /dev/null +++ b/doc/com/maxcdn/Console.html @@ -0,0 +1,307 @@ + + + + + +Console + + + + + + + + + + + + +
+
com.maxcdn
+

Class Console

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.maxcdn.Console
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Console
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static booleanshoudlog 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Console() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidlog(java.lang.Object obj) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        shoudlog

        +
        public static boolean shoudlog
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Console

        +
        public Console()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        log

        +
        public static void log(java.lang.Object obj)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/com/maxcdn/MaxCDN.html b/doc/com/maxcdn/MaxCDN.html new file mode 100644 index 0000000..c99d475 --- /dev/null +++ b/doc/com/maxcdn/MaxCDN.html @@ -0,0 +1,720 @@ + + + + + +MaxCDN + + + + + + + + + + + + +
+
com.maxcdn
+

Class MaxCDN

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.maxcdn.MaxCDN
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class MaxCDN
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.Stringalias +
      Instance's API alias.
      +
      java.lang.Stringkey +
      Instance's API key.
      +
      java.lang.StringMaxCDNrws_url +
      MaxCDN RWS URL
      +
      java.lang.Stringsecret +
      Instance's API secret.
      +
      private org.scribe.model.Tokentoken_stored +
      Access token of instance.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      MaxCDN(java.lang.String alias, + java.lang.String consumer_key, + java.lang.String consumer_secret) +
      Initialize client without API access token.
      +
      MaxCDN(java.lang.String alias, + java.lang.String consumer_key, + java.lang.String consumer_secret, + org.scribe.model.Token token) +
      Initialize client with API token.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.String_request(java.lang.String end, + org.scribe.model.Verb verb, + MaxCDNRequest body) 
      java.lang.String_request(java.lang.String end, + org.scribe.model.Verb verb, + MaxCDNRequest body, + org.scribe.model.Token token) 
      MaxCDNObjectdelete(java.lang.String endpoint) +
      Perform a request with verb DELETE to specified endpoint.
      +
      MaxCDNObjectget(java.lang.String endpoint) +
      Perform a request with verb GET to specified endpoint.
      +
      org.scribe.model.TokengetAccessToken(org.scribe.model.Token requestToken, + java.lang.String verify) +
      Get access token from MaxCDN.
      +
      java.lang.StringgetAuthUrl(org.scribe.model.Token requestToken) +
      Perform a request with verb PUT to specified endpoint.
      +
      org.scribe.model.TokengetRequestToken() +
      Generate a request token.
      +
      MaxCDNObjectpost(java.lang.String endpoint, + MaxCDNRequest request) +
      Perform a request with verb POST to specified endpoint.
      +
      MaxCDNObjectput(java.lang.String endpoint, + MaxCDNRequest request) +
      Perform a request with verb PUT to specified endpoint.
      +
      MaxCDNObjectrequest(java.lang.String end, + org.scribe.model.Verb verb, + MaxCDNRequest body) +
      Perform a request wih a custom verb.
      +
      MaxCDNObjectrequest(java.lang.String end, + org.scribe.model.Verb verb, + MaxCDNRequest body, + org.scribe.model.Token token) +
      Perform a request wih a custom verb and access token.
      +
      booleansetToken(org.scribe.model.Token token) +
      Set access token
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        alias

        +
        public java.lang.String alias
        +
        Instance's API alias.
        +
      • +
      + + + +
        +
      • +

        key

        +
        public java.lang.String key
        +
        Instance's API key.
        +
      • +
      + + + +
        +
      • +

        secret

        +
        public java.lang.String secret
        +
        Instance's API secret.
        +
      • +
      + + + +
        +
      • +

        token_stored

        +
        private org.scribe.model.Token token_stored
        +
        Access token of instance.
        +
      • +
      + + + +
        +
      • +

        MaxCDNrws_url

        +
        public java.lang.String MaxCDNrws_url
        +
        MaxCDN RWS URL
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaxCDN

        +
        public MaxCDN(java.lang.String alias,
        +              java.lang.String consumer_key,
        +              java.lang.String consumer_secret)
        +
        Initialize client without API access token.
        +
      • +
      + + + +
        +
      • +

        MaxCDN

        +
        public MaxCDN(java.lang.String alias,
        +              java.lang.String consumer_key,
        +              java.lang.String consumer_secret,
        +              org.scribe.model.Token token)
        +
        Initialize client with API token.
        +
        +
        Parameters:
        +
        token - String of a valid API token.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public MaxCDNObject get(java.lang.String endpoint)
        +                 throws org.json.JSONException,
        +                        java.security.SignatureException,
        +                        java.lang.Exception
        +
        Perform a request with verb GET to specified endpoint.
        +
        +
        Parameters:
        +
        endpoint - API endpoint to perform GET request on.
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        delete

        +
        public MaxCDNObject delete(java.lang.String endpoint)
        +                    throws org.json.JSONException,
        +                           java.security.SignatureException,
        +                           java.lang.Exception
        +
        Perform a request with verb DELETE to specified endpoint.
        +
        +
        Parameters:
        +
        endpoint - String of API endpoint to use.
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public MaxCDNObject put(java.lang.String endpoint,
        +                        MaxCDNRequest request)
        +                 throws org.json.JSONException,
        +                        java.security.SignatureException,
        +                        java.lang.Exception
        +
        Perform a request with verb PUT to specified endpoint.
        +
        +
        Parameters:
        +
        endpoint - String of API endpoint to use.
        +
        request - Data to be submitted with request.
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        post

        +
        public MaxCDNObject post(java.lang.String endpoint,
        +                         MaxCDNRequest request)
        +                  throws org.json.JSONException,
        +                         java.security.SignatureException,
        +                         java.lang.Exception
        +
        Perform a request with verb POST to specified endpoint.
        +
        +
        Parameters:
        +
        endpoint - String of API endpoint to use.
        +
        request - Data to be submitted with request.
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        getRequestToken

        +
        public org.scribe.model.Token getRequestToken()
        +
        Generate a request token.
        +
      • +
      + + + +
        +
      • +

        getAuthUrl

        +
        public java.lang.String getAuthUrl(org.scribe.model.Token requestToken)
        +
        Perform a request with verb PUT to specified endpoint.
        +
        +
        Parameters:
        +
        requestToken. -
        +
        Returns:
        +
        String of URL to authorize application.
        +
        +
      • +
      + + + +
        +
      • +

        getAccessToken

        +
        public org.scribe.model.Token getAccessToken(org.scribe.model.Token requestToken,
        +                                             java.lang.String verify)
        +
        Get access token from MaxCDN.
        +
        +
        Parameters:
        +
        requestToken - Request token to submit with request.
        +
        verify - Temporary access token to get long lived access token.
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        request

        +
        public MaxCDNObject request(java.lang.String end,
        +                            org.scribe.model.Verb verb,
        +                            MaxCDNRequest body)
        +                     throws org.json.JSONException,
        +                            java.security.SignatureException,
        +                            java.lang.Exception
        +
        Perform a request wih a custom verb. The current instance's access token will be used.
        +
        +
        Parameters:
        +
        end - String of API endpoint to use.
        +
        verb - String of request verb to use.
        +
        body - Data to be submitted with request.
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        request

        +
        public MaxCDNObject request(java.lang.String end,
        +                            org.scribe.model.Verb verb,
        +                            MaxCDNRequest body,
        +                            org.scribe.model.Token token)
        +                     throws org.json.JSONException,
        +                            java.security.SignatureException,
        +                            java.lang.Exception
        +
        Perform a request wih a custom verb and access token.
        +
        +
        Parameters:
        +
        end - String of API endpoint to use.
        +
        verb - String of request verb to use.
        +
        body - Data to be submitted with request.
        +
        token - access token to use with request.
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        setToken

        +
        public boolean setToken(org.scribe.model.Token token)
        +
        Set access token
        +
        +
        Parameters:
        +
        token - Token to set as the instance's token.
        +
        +
      • +
      + + + +
        +
      • +

        _request

        +
        public java.lang.String _request(java.lang.String end,
        +                                 org.scribe.model.Verb verb,
        +                                 MaxCDNRequest body)
        +                          throws java.security.SignatureException,
        +                                 java.lang.Exception
        +
        +
        Throws:
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        _request

        +
        public java.lang.String _request(java.lang.String end,
        +                                 org.scribe.model.Verb verb,
        +                                 MaxCDNRequest body,
        +                                 org.scribe.model.Token token)
        +                          throws java.security.SignatureException,
        +                                 java.lang.Exception
        +
        +
        Throws:
        +
        java.security.SignatureException
        +
        java.lang.Exception
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/com/maxcdn/MaxCDNApi.html b/doc/com/maxcdn/MaxCDNApi.html new file mode 100644 index 0000000..75c051e --- /dev/null +++ b/doc/com/maxcdn/MaxCDNApi.html @@ -0,0 +1,399 @@ + + + + + +MaxCDNApi + + + + + + + + + + + + +
+
com.maxcdn
+

Class MaxCDNApi

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.scribe.builder.api.DefaultApi10a
    • +
    • +
        +
      • com.maxcdn.MaxCDNApi
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.scribe.builder.api.Api
    +
    +
    +
    +
    public class MaxCDNApi
    +extends org.scribe.builder.api.DefaultApi10a
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MaxCDNApi() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringgetAccessTokenEndpoint() 
      java.lang.StringgetAuthorizationUrl(org.scribe.model.Token requestToken) 
      java.lang.StringgetRequestTokenEndpoint() 
      +
        +
      • + + +

        Methods inherited from class org.scribe.builder.api.DefaultApi10a

        +createService, getAccessTokenExtractor, getAccessTokenVerb, getBaseStringExtractor, getHeaderExtractor, getRequestTokenExtractor, getRequestTokenVerb, getSignatureService, getTimestampService
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        AUTHORIZE_URL

        +
        private static final java.lang.String AUTHORIZE_URL
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        REQUEST_TOKEN_RESOURCE

        +
        private static final java.lang.String REQUEST_TOKEN_RESOURCE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ACCESS_TOKEN_RESOURCE

        +
        private static final java.lang.String ACCESS_TOKEN_RESOURCE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaxCDNApi

        +
        public MaxCDNApi()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAccessTokenEndpoint

        +
        public java.lang.String getAccessTokenEndpoint()
        +
        +
        Specified by:
        +
        getAccessTokenEndpoint in class org.scribe.builder.api.DefaultApi10a
        +
        +
      • +
      + + + +
        +
      • +

        getRequestTokenEndpoint

        +
        public java.lang.String getRequestTokenEndpoint()
        +
        +
        Specified by:
        +
        getRequestTokenEndpoint in class org.scribe.builder.api.DefaultApi10a
        +
        +
      • +
      + + + +
        +
      • +

        getAuthorizationUrl

        +
        public java.lang.String getAuthorizationUrl(org.scribe.model.Token requestToken)
        +
        +
        Specified by:
        +
        getAuthorizationUrl in class org.scribe.builder.api.DefaultApi10a
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/com/maxcdn/MaxCDNException.html b/doc/com/maxcdn/MaxCDNException.html new file mode 100644 index 0000000..768e541 --- /dev/null +++ b/doc/com/maxcdn/MaxCDNException.html @@ -0,0 +1,262 @@ + + + + + +MaxCDNException + + + + + + + + + + + + +
+
com.maxcdn
+

Class MaxCDNException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.maxcdn.MaxCDNException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class MaxCDNException
    +extends java.lang.Exception
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MaxCDNException(java.lang.String message) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaxCDNException

        +
        public MaxCDNException(java.lang.String message)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/com/maxcdn/MaxCDNObject.html b/doc/com/maxcdn/MaxCDNObject.html new file mode 100644 index 0000000..297bbe7 --- /dev/null +++ b/doc/com/maxcdn/MaxCDNObject.html @@ -0,0 +1,517 @@ + + + + + +MaxCDNObject + + + + + + + + + + + + +
+
com.maxcdn
+

Class MaxCDNObject

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.json.JSONObject
    • +
    • +
        +
      • com.maxcdn.MaxCDNObject
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    MaxCDNRequest
    +
    +
    +
    +
    public class MaxCDNObject
    +extends org.json.JSONObject
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intcode +
      Code of request.
      +
      booleanerror +
      Specifies if request has error.
      +
      +
        +
      • + + +

        Fields inherited from class org.json.JSONObject

        +NULL
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      MaxCDNObject() 
      MaxCDNObject(java.lang.Object json) 
      MaxCDNObject(java.lang.String json) 
      MaxCDNObject(java.lang.String key, + java.lang.Object data) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      MaxCDNObjectappend(java.lang.String key, + java.lang.Object value) +
      Set/Add key and object pair.
      +
      org.json.JSONArraygetArray(java.lang.String key) 
      java.lang.StringgetErrorMessage() 
      MaxCDNObjectgetJson(java.lang.String key) 
      java.lang.NumbergetNumber(java.lang.String key) 
      java.lang.StringgetString(java.lang.String key) 
      +
        +
      • + + +

        Methods inherited from class org.json.JSONObject

        +accumulate, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, has, increment, isDecimalNotation, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        code

        +
        public int code
        +
        Code of request.
        +
      • +
      + + + +
        +
      • +

        error

        +
        public boolean error
        +
        Specifies if request has error.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaxCDNObject

        +
        public MaxCDNObject()
        +             throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        MaxCDNObject

        +
        public MaxCDNObject(java.lang.String json)
        +             throws org.json.JSONException,
        +                    MaxCDNException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        MaxCDNException
        +
        +
      • +
      + + + +
        +
      • +

        MaxCDNObject

        +
        public MaxCDNObject(java.lang.String key,
        +                    java.lang.Object data)
        +             throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        MaxCDNObject

        +
        public MaxCDNObject(java.lang.Object json)
        +             throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getErrorMessage

        +
        public java.lang.String getErrorMessage()
        +                                 throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        append

        +
        public MaxCDNObject append(java.lang.String key,
        +                           java.lang.Object value)
        +                    throws org.json.JSONException
        +
        Set/Add key and object pair. use method remove(Object value) to remove a key.
        +
        +
        Overrides:
        +
        append in class org.json.JSONObject
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        getJson

        +
        public MaxCDNObject getJson(java.lang.String key)
        +                     throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        getNumber

        +
        public java.lang.Number getNumber(java.lang.String key)
        +                           throws org.json.JSONException
        +
        +
        Overrides:
        +
        getNumber in class org.json.JSONObject
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        getString

        +
        public java.lang.String getString(java.lang.String key)
        +                           throws org.json.JSONException
        +
        +
        Overrides:
        +
        getString in class org.json.JSONObject
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        getArray

        +
        public org.json.JSONArray getArray(java.lang.String key)
        +                            throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/com/maxcdn/MaxCDNRequest.html b/doc/com/maxcdn/MaxCDNRequest.html new file mode 100644 index 0000000..75db186 --- /dev/null +++ b/doc/com/maxcdn/MaxCDNRequest.html @@ -0,0 +1,375 @@ + + + + + +MaxCDNRequest + + + + + + + + + + + + +
+
com.maxcdn
+

Class MaxCDNRequest

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+
    +
  • +
    +
    +
    public class MaxCDNRequest
    +extends MaxCDNObject
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + +
        +
      • + + +

        Fields inherited from class org.json.JSONObject

        +NULL
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      MaxCDNRequest() 
      MaxCDNRequest(java.lang.String json) 
      MaxCDNRequest(java.lang.String key, + java.lang.Object data) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      MaxCDNRequestappend(java.lang.String key, + java.lang.Object value) +
      Set/Add key and object pair.
      +
      + +
        +
      • + + +

        Methods inherited from class org.json.JSONObject

        +accumulate, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, has, increment, isDecimalNotation, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MaxCDNRequest

        +
        public MaxCDNRequest()
        +              throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      + + + +
        +
      • +

        MaxCDNRequest

        +
        public MaxCDNRequest(java.lang.String json)
        +              throws org.json.JSONException,
        +                     MaxCDNException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        MaxCDNException
        +
        +
      • +
      + + + +
        +
      • +

        MaxCDNRequest

        +
        public MaxCDNRequest(java.lang.String key,
        +                     java.lang.Object data)
        +              throws org.json.JSONException
        +
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        append

        +
        public MaxCDNRequest append(java.lang.String key,
        +                            java.lang.Object value)
        +                     throws org.json.JSONException
        +
        Description copied from class: MaxCDNObject
        +
        Set/Add key and object pair. use method remove(Object value) to remove a key.
        +
        +
        Overrides:
        +
        append in class MaxCDNObject
        +
        Returns:
        +
        MaxCDNObject
        +
        Throws:
        +
        org.json.JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/com/maxcdn/class-use/Console.html b/doc/com/maxcdn/class-use/Console.html new file mode 100644 index 0000000..e69b0d0 --- /dev/null +++ b/doc/com/maxcdn/class-use/Console.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.maxcdn.Console + + + + + + + + + + + +
+

Uses of Class
com.maxcdn.Console

+
+
No usage of com.maxcdn.Console
+ + + + + + diff --git a/doc/com/maxcdn/class-use/MaxCDN.html b/doc/com/maxcdn/class-use/MaxCDN.html new file mode 100644 index 0000000..e8f0647 --- /dev/null +++ b/doc/com/maxcdn/class-use/MaxCDN.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.maxcdn.MaxCDN + + + + + + + + + + + +
+

Uses of Class
com.maxcdn.MaxCDN

+
+
No usage of com.maxcdn.MaxCDN
+ + + + + + diff --git a/doc/com/maxcdn/class-use/MaxCDNApi.html b/doc/com/maxcdn/class-use/MaxCDNApi.html new file mode 100644 index 0000000..cb5cd40 --- /dev/null +++ b/doc/com/maxcdn/class-use/MaxCDNApi.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class com.maxcdn.MaxCDNApi + + + + + + + + + + + +
+

Uses of Class
com.maxcdn.MaxCDNApi

+
+
No usage of com.maxcdn.MaxCDNApi
+ + + + + + diff --git a/doc/com/maxcdn/class-use/MaxCDNException.html b/doc/com/maxcdn/class-use/MaxCDNException.html new file mode 100644 index 0000000..45cfe18 --- /dev/null +++ b/doc/com/maxcdn/class-use/MaxCDNException.html @@ -0,0 +1,165 @@ + + + + + +Uses of Class com.maxcdn.MaxCDNException + + + + + + + + + + + +
+

Uses of Class
com.maxcdn.MaxCDNException

+
+
+ +
+ + + + + + diff --git a/doc/com/maxcdn/class-use/MaxCDNObject.html b/doc/com/maxcdn/class-use/MaxCDNObject.html new file mode 100644 index 0000000..b5e3a7d --- /dev/null +++ b/doc/com/maxcdn/class-use/MaxCDNObject.html @@ -0,0 +1,227 @@ + + + + + +Uses of Class com.maxcdn.MaxCDNObject + + + + + + + + + + + +
+

Uses of Class
com.maxcdn.MaxCDNObject

+
+
+ +
+ + + + + + diff --git a/doc/com/maxcdn/class-use/MaxCDNRequest.html b/doc/com/maxcdn/class-use/MaxCDNRequest.html new file mode 100644 index 0000000..be93ad3 --- /dev/null +++ b/doc/com/maxcdn/class-use/MaxCDNRequest.html @@ -0,0 +1,218 @@ + + + + + +Uses of Class com.maxcdn.MaxCDNRequest + + + + + + + + + + + +
+

Uses of Class
com.maxcdn.MaxCDNRequest

+
+
+ +
+ + + + + + diff --git a/doc/com/maxcdn/package-frame.html b/doc/com/maxcdn/package-frame.html new file mode 100644 index 0000000..ebd93a0 --- /dev/null +++ b/doc/com/maxcdn/package-frame.html @@ -0,0 +1,28 @@ + + + + + +com.maxcdn + + + + + +

com.maxcdn

+
+

Classes

+ +

Exceptions

+ +
+ + diff --git a/doc/com/maxcdn/package-summary.html b/doc/com/maxcdn/package-summary.html new file mode 100644 index 0000000..0f27f00 --- /dev/null +++ b/doc/com/maxcdn/package-summary.html @@ -0,0 +1,173 @@ + + + + + +com.maxcdn + + + + + + + + + + + +
+

Package com.maxcdn

+
+
+ +
+ + + + + + diff --git a/doc/com/maxcdn/package-tree.html b/doc/com/maxcdn/package-tree.html new file mode 100644 index 0000000..b823526 --- /dev/null +++ b/doc/com/maxcdn/package-tree.html @@ -0,0 +1,161 @@ + + + + + +com.maxcdn Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package com.maxcdn

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.maxcdn.Console
    • +
    • org.scribe.builder.api.DefaultApi10a (implements org.scribe.builder.api.Api) + +
    • +
    • org.json.JSONObject + +
    • +
    • com.maxcdn.MaxCDN
    • +
    • java.lang.Throwable (implements java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/doc/com/maxcdn/package-use.html b/doc/com/maxcdn/package-use.html new file mode 100644 index 0000000..26e1647 --- /dev/null +++ b/doc/com/maxcdn/package-use.html @@ -0,0 +1,163 @@ + + + + + +Uses of Package com.maxcdn + + + + + + + + + + + +
+

Uses of Package
com.maxcdn

+
+
+ +
+ + + + + + diff --git a/doc/constant-values.html b/doc/constant-values.html new file mode 100644 index 0000000..707e2c4 --- /dev/null +++ b/doc/constant-values.html @@ -0,0 +1,167 @@ + + + + + +Constant Field Values + + + + + + + + +
+ + + + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

com.maxcdn.*

+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + +
    com.maxcdn.MaxCDNApi 
    Modifier and TypeConstant FieldValue
    + +private static final java.lang.StringACCESS_TOKEN_RESOURCE"rws.maxcdn.com/oauth/access_token"
    + +private static final java.lang.StringAUTHORIZE_URL"https://rws.maxcdn.com/oauth/authorize?oauth_token=%s"
    + +private static final java.lang.StringREQUEST_TOKEN_RESOURCE"rws.maxcdn.com/oauth/request_token"
    +
  • +
+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html new file mode 100644 index 0000000..ea8d4c8 --- /dev/null +++ b/doc/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + +Deprecated List + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/help-doc.html b/doc/help-doc.html new file mode 100644 index 0000000..25718c2 --- /dev/null +++ b/doc/help-doc.html @@ -0,0 +1,229 @@ + + + + + +API Help + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Use

    +

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html new file mode 100644 index 0000000..84ff7af --- /dev/null +++ b/doc/index-files/index-1.html @@ -0,0 +1,145 @@ + + + + + +A-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

A

+
+
ACCESS_TOKEN_RESOURCE - Static variable in class com.maxcdn.MaxCDNApi
+
 
+
alias - Variable in class com.maxcdn.MaxCDN
+
+
Instance's API alias.
+
+
ApiDemo - Class in tests.tests
+
 
+
ApiDemo() - Constructor for class tests.tests.ApiDemo
+
 
+
append(String, Object) - Method in class com.maxcdn.MaxCDNObject
+
+
Set/Add key and object pair.
+
+
append(String, Object) - Method in class com.maxcdn.MaxCDNRequest
+
 
+
AUTHORIZE_URL - Static variable in class com.maxcdn.MaxCDNApi
+
 
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html new file mode 100644 index 0000000..53ad301 --- /dev/null +++ b/doc/index-files/index-10.html @@ -0,0 +1,137 @@ + + + + + +R-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

R

+
+
request(String, Verb, MaxCDNRequest) - Method in class com.maxcdn.MaxCDN
+
+
Perform a request wih a custom verb.
+
+
request(String, Verb, MaxCDNRequest, Token) - Method in class com.maxcdn.MaxCDN
+
+
Perform a request wih a custom verb and access token.
+
+
REQUEST_TOKEN_RESOURCE - Static variable in class com.maxcdn.MaxCDNApi
+
 
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html new file mode 100644 index 0000000..e3ff923 --- /dev/null +++ b/doc/index-files/index-11.html @@ -0,0 +1,137 @@ + + + + + +S-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

S

+
+
secret - Variable in class com.maxcdn.MaxCDN
+
+
Instance's API secret.
+
+
setToken(Token) - Method in class com.maxcdn.MaxCDN
+
+
Set access token
+
+
shoudlog - Static variable in class com.maxcdn.Console
+
 
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html new file mode 100644 index 0000000..f5fa5b9 --- /dev/null +++ b/doc/index-files/index-12.html @@ -0,0 +1,133 @@ + + + + + +T-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

T

+
+
tests.tests - package tests.tests
+
 
+
token_stored - Variable in class com.maxcdn.MaxCDN
+
+
Access token of instance.
+
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html new file mode 100644 index 0000000..c49e739 --- /dev/null +++ b/doc/index-files/index-13.html @@ -0,0 +1,131 @@ + + + + + +_-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

_

+
+
_request(String, Verb, MaxCDNRequest) - Method in class com.maxcdn.MaxCDN
+
 
+
_request(String, Verb, MaxCDNRequest, Token) - Method in class com.maxcdn.MaxCDN
+
 
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html new file mode 100644 index 0000000..481825c --- /dev/null +++ b/doc/index-files/index-2.html @@ -0,0 +1,137 @@ + + + + + +C-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

C

+
+
code - Variable in class com.maxcdn.MaxCDNObject
+
+
Code of request.
+
+
com.maxcdn - package com.maxcdn
+
 
+
Console - Class in com.maxcdn
+
 
+
Console() - Constructor for class com.maxcdn.Console
+
 
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html new file mode 100644 index 0000000..a68b56e --- /dev/null +++ b/doc/index-files/index-3.html @@ -0,0 +1,131 @@ + + + + + +D-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

D

+
+
delete(String) - Method in class com.maxcdn.MaxCDN
+
+
Perform a request with verb DELETE to specified endpoint.
+
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html new file mode 100644 index 0000000..c6a4b62 --- /dev/null +++ b/doc/index-files/index-4.html @@ -0,0 +1,131 @@ + + + + + +E-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

E

+
+
error - Variable in class com.maxcdn.MaxCDNObject
+
+
Specifies if request has error.
+
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html new file mode 100644 index 0000000..41b890a --- /dev/null +++ b/doc/index-files/index-5.html @@ -0,0 +1,159 @@ + + + + + +G-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

G

+
+
get(String) - Method in class com.maxcdn.MaxCDN
+
+
Perform a request with verb GET to specified endpoint.
+
+
getAccessToken(Token, String) - Method in class com.maxcdn.MaxCDN
+
+
Get access token from MaxCDN.
+
+
getAccessTokenEndpoint() - Method in class com.maxcdn.MaxCDNApi
+
 
+
getArray(String) - Method in class com.maxcdn.MaxCDNObject
+
 
+
getAuthorizationUrl(Token) - Method in class com.maxcdn.MaxCDNApi
+
 
+
getAuthUrl(Token) - Method in class com.maxcdn.MaxCDN
+
+
Perform a request with verb PUT to specified endpoint.
+
+
getErrorMessage() - Method in class com.maxcdn.MaxCDNObject
+
 
+
getJson(String) - Method in class com.maxcdn.MaxCDNObject
+
 
+
getNumber(String) - Method in class com.maxcdn.MaxCDNObject
+
 
+
getRequestToken() - Method in class com.maxcdn.MaxCDN
+
+
Generate a request token.
+
+
getRequestTokenEndpoint() - Method in class com.maxcdn.MaxCDNApi
+
 
+
getString(String) - Method in class com.maxcdn.MaxCDNObject
+
 
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html new file mode 100644 index 0000000..16f92b3 --- /dev/null +++ b/doc/index-files/index-6.html @@ -0,0 +1,131 @@ + + + + + +K-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

K

+
+
key - Variable in class com.maxcdn.MaxCDN
+
+
Instance's API key.
+
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html new file mode 100644 index 0000000..cd3d42c --- /dev/null +++ b/doc/index-files/index-7.html @@ -0,0 +1,129 @@ + + + + + +L-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

L

+
+
log(Object) - Static method in class com.maxcdn.Console
+
 
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html new file mode 100644 index 0000000..7f60d8c --- /dev/null +++ b/doc/index-files/index-8.html @@ -0,0 +1,169 @@ + + + + + +M-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

M

+
+
main(String[]) - Static method in class tests.tests.ApiDemo
+
 
+
MaxCDN - Class in com.maxcdn
+
 
+
MaxCDN(String, String, String) - Constructor for class com.maxcdn.MaxCDN
+
+
Initialize client without API access token.
+
+
MaxCDN(String, String, String, Token) - Constructor for class com.maxcdn.MaxCDN
+
+
Initialize client with API token.
+
+
MaxCDNApi - Class in com.maxcdn
+
 
+
MaxCDNApi() - Constructor for class com.maxcdn.MaxCDNApi
+
 
+
MaxCDNException - Exception in com.maxcdn
+
 
+
MaxCDNException(String) - Constructor for exception com.maxcdn.MaxCDNException
+
 
+
MaxCDNObject - Class in com.maxcdn
+
 
+
MaxCDNObject() - Constructor for class com.maxcdn.MaxCDNObject
+
 
+
MaxCDNObject(String) - Constructor for class com.maxcdn.MaxCDNObject
+
 
+
MaxCDNObject(String, Object) - Constructor for class com.maxcdn.MaxCDNObject
+
 
+
MaxCDNObject(Object) - Constructor for class com.maxcdn.MaxCDNObject
+
 
+
MaxCDNRequest - Class in com.maxcdn
+
 
+
MaxCDNRequest() - Constructor for class com.maxcdn.MaxCDNRequest
+
 
+
MaxCDNRequest(String) - Constructor for class com.maxcdn.MaxCDNRequest
+
 
+
MaxCDNRequest(String, Object) - Constructor for class com.maxcdn.MaxCDNRequest
+
 
+
MaxCDNrws_url - Variable in class com.maxcdn.MaxCDN
+
+
MaxCDN RWS URL
+
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html new file mode 100644 index 0000000..b30926c --- /dev/null +++ b/doc/index-files/index-9.html @@ -0,0 +1,135 @@ + + + + + +P-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G K L M P R S T _  + + +

P

+
+
post(String, MaxCDNRequest) - Method in class com.maxcdn.MaxCDN
+
+
Perform a request with verb POST to specified endpoint.
+
+
put(String, MaxCDNRequest) - Method in class com.maxcdn.MaxCDN
+
+
Perform a request with verb PUT to specified endpoint.
+
+
+A C D E G K L M P R S T _ 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index.html b/doc/index.html index 8b13789..776d191 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1 +1,74 @@ - + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/doc/overview-frame.html b/doc/overview-frame.html new file mode 100644 index 0000000..9d60f2f --- /dev/null +++ b/doc/overview-frame.html @@ -0,0 +1,22 @@ + + + + + +Overview List + + + + + + +
+

Packages

+ +
+

 

+ + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..2f02941 --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,142 @@ + + + + + +Overview + + + + + + + + +
+ + + + + + + +
+ + +
+

MaxCDN

+
+
+ + + + + + + + + + + + + + + + +
Packages 
PackageDescription
com.maxcdn 
tests.tests 
+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/overview-tree.html b/doc/overview-tree.html new file mode 100644 index 0000000..d22e8c9 --- /dev/null +++ b/doc/overview-tree.html @@ -0,0 +1,163 @@ + + + + + +Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • tests.tests.ApiDemo
    • +
    • com.maxcdn.Console
    • +
    • org.scribe.builder.api.DefaultApi10a (implements org.scribe.builder.api.Api) + +
    • +
    • org.json.JSONObject + +
    • +
    • com.maxcdn.MaxCDN
    • +
    • java.lang.Throwable (implements java.io.Serializable) + +
    • +
    +
  • +
+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/package-list b/doc/package-list new file mode 100644 index 0000000..a05f17c --- /dev/null +++ b/doc/package-list @@ -0,0 +1,2 @@ +com.maxcdn +tests.tests diff --git a/doc/script.js b/doc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/doc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/doc/serialized-form.html b/doc/serialized-form.html new file mode 100644 index 0000000..565c43f --- /dev/null +++ b/doc/serialized-form.html @@ -0,0 +1,137 @@ + + + + + +Serialized Form + + + + + + + + +
+ + + + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/stylesheet.css b/doc/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/doc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/doc/tests/tests/ApiDemo.html b/doc/tests/tests/ApiDemo.html new file mode 100644 index 0000000..efbb9dd --- /dev/null +++ b/doc/tests/tests/ApiDemo.html @@ -0,0 +1,271 @@ + + + + + +ApiDemo + + + + + + + + + + + + +
+
tests.tests
+

Class ApiDemo

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • tests.tests.ApiDemo
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ApiDemo
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ApiDemo() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String[] args) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ApiDemo

        +
        public ApiDemo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/tests/tests/class-use/ApiDemo.html b/doc/tests/tests/class-use/ApiDemo.html new file mode 100644 index 0000000..9bc6ebd --- /dev/null +++ b/doc/tests/tests/class-use/ApiDemo.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class tests.tests.ApiDemo + + + + + + + + + + + +
+

Uses of Class
tests.tests.ApiDemo

+
+
No usage of tests.tests.ApiDemo
+ + + + + + diff --git a/doc/tests/tests/package-frame.html b/doc/tests/tests/package-frame.html new file mode 100644 index 0000000..427e347 --- /dev/null +++ b/doc/tests/tests/package-frame.html @@ -0,0 +1,20 @@ + + + + + +tests.tests + + + + + +

tests.tests

+
+

Classes

+ +
+ + diff --git a/doc/tests/tests/package-summary.html b/doc/tests/tests/package-summary.html new file mode 100644 index 0000000..c78c0c2 --- /dev/null +++ b/doc/tests/tests/package-summary.html @@ -0,0 +1,142 @@ + + + + + +tests.tests + + + + + + + + + + + +
+

Package tests.tests

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ApiDemo 
    +
  • +
+
+ + + + + + diff --git a/doc/tests/tests/package-tree.html b/doc/tests/tests/package-tree.html new file mode 100644 index 0000000..8eaa0e4 --- /dev/null +++ b/doc/tests/tests/package-tree.html @@ -0,0 +1,137 @@ + + + + + +tests.tests Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package tests.tests

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/doc/tests/tests/package-use.html b/doc/tests/tests/package-use.html new file mode 100644 index 0000000..eb2c2ef --- /dev/null +++ b/doc/tests/tests/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package tests.tests + + + + + + + + + + + +
+

Uses of Package
tests.tests

+
+
No usage of tests.tests
+ + + + + + From 660ee9a9d5660c803fc4c1ae8e8c7e5c3207c203 Mon Sep 17 00:00:00 2001 From: Cheikh Seck Date: Thu, 26 Oct 2017 20:27:17 +0000 Subject: [PATCH 9/9] Update MaxCDN.java --- src/com/maxcdn/MaxCDN.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/maxcdn/MaxCDN.java b/src/com/maxcdn/MaxCDN.java index 7ecaf3d..316eb7a 100644 --- a/src/com/maxcdn/MaxCDN.java +++ b/src/com/maxcdn/MaxCDN.java @@ -111,10 +111,10 @@ public Token getRequestToken(){ return service.getRequestToken(); } /** - * Perform a request with verb PUT to specified endpoint. + * Get authorization URL. * @param requestToken. - * @return String of URL to authorize application. - */ + * @return String of authorization URL. + */ public String getAuthUrl(Token requestToken){ // Obtain the Request Token OAuthService service = new ServiceBuilder()