org.gcube.dataanalysis.environment.utils
Class HttpRequest
java.lang.Object
org.gcube.dataanalysis.environment.utils.HttpRequest
public class HttpRequest
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequest
public HttpRequest()
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.