com.aetna.api.connector
Class RESTConnector

java.lang.Object
  extended by com.aetna.api.connector.Connector
      extended by com.aetna.api.connector.RESTConnector

public class RESTConnector
extends Connector


Field Summary
 
Fields inherited from class com.aetna.api.connector.Connector
url
 
Constructor Summary
RESTConnector(java.lang.String url)
          Constructor that ensures the URL is well-formed
 
Method Summary
 com.google.gson.JsonElement executeQuery()
          Executes the request to the REST Service and converts data to JsonArray
 java.net.URL getUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTConnector

public RESTConnector(java.lang.String url)
Constructor that ensures the URL is well-formed

Parameters:
url -
Method Detail

executeQuery

public com.google.gson.JsonElement executeQuery()
                                         throws java.io.IOException,
                                                java.net.MalformedURLException
Executes the request to the REST Service and converts data to JsonArray

Returns:
JsonElement representing the json from the REST service
Throws:
IOException, - MalformedURLExecption
java.io.IOException
java.net.MalformedURLException

getUrl

public java.net.URL getUrl()