org.encog.cloud
Class CloudRequest

java.lang.Object
  extended by org.encog.cloud.CloudRequest

public class CloudRequest
extends Object

An Encog cloud request. Sends a request to the Encog cloud and handles the response.


Constructor Summary
CloudRequest()
           
 
Method Summary
 String getMessage()
           
 String getResponseProperty(String key)
          Get a response property.
 String getService()
           
 String getSession()
           
 String getStatus()
           
 void performURLGET(boolean async, String url)
          Perform a GET request.
 void performURLPOST(boolean async, String service, Map<String,String> args)
          Perform a POST to the cloud.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudRequest

public CloudRequest()
Method Detail

getMessage

public String getMessage()
Returns:
The message returned from the cloud.

getResponseProperty

public String getResponseProperty(String key)
Get a response property.

Parameters:
key - The key.
Returns:
The property.

getService

public String getService()
Returns:
The service.

getSession

public String getSession()
Returns:
The url.

getStatus

public String getStatus()
Returns:
The status.

performURLGET

public void performURLGET(boolean async,
                          String url)
Perform a GET request.

Parameters:
async - True if this request should be asynchronous.
url - The URL.

performURLPOST

public void performURLPOST(boolean async,
                           String service,
                           Map<String,String> args)
Perform a POST to the cloud.

Parameters:
async - True if this request should be asynchronous.
service - The service.
args - The POST arguments.


Copyright © 2011. All Rights Reserved.