From 771bcac267b613879545aee5f19bfb596d09f41e Mon Sep 17 00:00:00 2001 From: AlejandroP Date: Sun, 29 Oct 2023 22:21:27 -0300 Subject: [PATCH] - Change Type of Protocol property for API object --- .../java/com/genexus/properties/GXObjectProperties.java | 6 +++--- .../src/main/java/com/genexus/internet/GXRestAPIClient.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/com/genexus/properties/GXObjectProperties.java b/common/src/main/java/com/genexus/properties/GXObjectProperties.java index 7283c71f1..24506e9a4 100644 --- a/common/src/main/java/com/genexus/properties/GXObjectProperties.java +++ b/common/src/main/java/com/genexus/properties/GXObjectProperties.java @@ -8,7 +8,7 @@ public class GXObjectProperties private String errorMessage = ""; private int errorCode = 0; private int statusCode = 0; - private String protocol = "REST"; + private int protocol = 1; public Location getLocation() { @@ -46,11 +46,11 @@ public void setErrorMessage(String value) errorMessage = value; } - public String getProtocol() + public int getProtocol() { return protocol; } - public void setProtocol(String value) + public void setProtocol(int value) { protocol = value; } diff --git a/java/src/main/java/com/genexus/internet/GXRestAPIClient.java b/java/src/main/java/com/genexus/internet/GXRestAPIClient.java index 358800933..30c1f2a30 100644 --- a/java/src/main/java/com/genexus/internet/GXRestAPIClient.java +++ b/java/src/main/java/com/genexus/internet/GXRestAPIClient.java @@ -25,7 +25,7 @@ public class GXRestAPIClient { private String name; private Location location; - private String protocol = "REST"; + private int protocol = 1; private String httpMethod = "GET"; private int statusCode; private int errorCode; @@ -74,7 +74,7 @@ public Location getLocation() { return location; } - public String getProtocol() { + public int getProtocol() { return protocol; } @@ -104,7 +104,7 @@ public void setLocation( Location value) { location = value; } - public void setProtocol( String value) { + public void setProtocol( int value) { protocol = value; }