genericHTTP -> HTTP

Signed-off-by: Luca Fulchir <luca@fulchir.it>
parent c0ca0d56
include "OAuth1.iol"
include "jolie/net/utils/genericHTTP.iol"
include "jolie/net/utils/HTTP.iol"
include "string_utils.iol"
include "console.iol"
......@@ -22,7 +22,7 @@ main {
http_data.headers[1].name = "Authorization";
DataRequestToken@OAuth1Data (info) (http_data.headers[1].value);
sendRequest@genericHTTP(http_data) (answer);
sendRequest@HTTP(http_data) (answer);
token << info;
parseAnswer@OAuth1Data(answer) (tmp);
......@@ -45,7 +45,7 @@ main {
};
http_data.method = "GET";
buildURI@genericHTTP (http_data) (output)
buildURI@HTTP (http_data) (output)
}] {nullProcess}
......@@ -57,7 +57,7 @@ main {
http_data.headers[1].name = "Authorization";
DataAuthenticate@OAuth1Data (info) (http_data.headers[1].value);
sendRequest@genericHTTP(http_data) (answer);
sendRequest@HTTP(http_data) (answer);
parseAnswer@OAuth1Data (answer) (output)
......
......@@ -37,19 +37,19 @@ type HTTPResponse:void {
.output :string
}
interface genericHTTPInterface {
interface HTTPInterface {
RequestResponse:
sendRequest (HTTPRequest) (string) throws send_error,
buildURI (HTTPRequest) (string) throws buildURI_fault
}
outputPort genericHTTP {
outputPort HTTP {
Interfaces:
genericHTTPInterface
HTTPInterface
}
embedded {
Java:
"jolie.net.utils.genericHTTP" in genericHTTP
"jolie.net.utils.HTTP" in HTTP
}
......@@ -40,7 +40,7 @@ import jolie.runtime.ValueVector;
import jolie.runtime.embedding.RequestResponse;
import jolie.runtime.FaultException;
public class genericHTTP extends JavaService
public class HTTP extends JavaService
{
@RequestResponse
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment