org.gcube.dataanalysis.environment.utils
Class HttpRequest

java.lang.Object
  extended by org.gcube.dataanalysis.environment.utils.HttpRequest

public class HttpRequest
extends Object


Constructor Summary
HttpRequest()
           
 
Method Summary
static String AddCDATA(String phrase)
           
static String ManageCDATA(String phrase)
           
static void postData(Reader data, URL endpoint, Writer output)
          Reads data from the data reader and posts it to a server via POST request. data - The data you want to send endpoint - The server's address output - writes the server's response to output
static String sendGetRequest(String endpoint, String requestParameters)
           
static String sendPostRequest(String endpoint, String requestParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequest

public HttpRequest()
Method Detail

sendGetRequest

public static String sendGetRequest(String endpoint,
                                    String requestParameters)

postData

public static void postData(Reader data,
                            URL endpoint,
                            Writer output)
                     throws Exception
Reads data from the data reader and posts it to a server via POST request. data - The data you want to send endpoint - The server's address output - writes the server's response to output

Throws:
Exception

sendPostRequest

public static String sendPostRequest(String endpoint,
                                     String requestParameters)

ManageCDATA

public static String ManageCDATA(String phrase)

AddCDATA

public static String AddCDATA(String phrase)


Copyright © 2013. All Rights Reserved.