Skip to content

Commit ad02160

Browse files
committed
[java] Revert - Add status endpoint
This reverts commit 0a2a4a9. Feature did not reach a team consensus, hence reverting this change #10832
1 parent b1c2700 commit ad02160

File tree

4 files changed

+0
-179
lines changed

4 files changed

+0
-179
lines changed

java/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
import org.openqa.selenium.interactions.Interactive;
5151
import org.openqa.selenium.interactions.Sequence;
5252
import org.openqa.selenium.internal.Require;
53-
import org.openqa.selenium.json.Json;
54-
import org.openqa.selenium.json.JsonException;
5553
import org.openqa.selenium.logging.LocalLogs;
5654
import org.openqa.selenium.logging.LogType;
5755
import org.openqa.selenium.logging.LoggingHandler;
@@ -62,9 +60,6 @@
6260
import org.openqa.selenium.remote.http.ClientConfig;
6361
import org.openqa.selenium.remote.http.ConnectionFailedException;
6462
import org.openqa.selenium.remote.http.HttpClient;
65-
import org.openqa.selenium.remote.http.HttpMethod;
66-
import org.openqa.selenium.remote.http.HttpRequest;
67-
import org.openqa.selenium.remote.http.HttpResponse;
6863
import org.openqa.selenium.remote.internal.WebElementToJsonConverter;
6964
import org.openqa.selenium.remote.tracing.TracedHttpClient;
7065
import org.openqa.selenium.remote.tracing.Tracer;
@@ -99,7 +94,6 @@
9994
import static org.openqa.selenium.remote.CapabilityType.LOGGING_PREFS;
10095
import static org.openqa.selenium.remote.CapabilityType.PLATFORM_NAME;
10196
import static org.openqa.selenium.remote.CapabilityType.SUPPORTS_JAVASCRIPT;
102-
import static org.openqa.selenium.remote.http.Contents.string;
10397

10498
@Augmentable
10599
public class RemoteWebDriver implements WebDriver,
@@ -311,20 +305,6 @@ public Capabilities getCapabilities() {
311305
return capabilities;
312306
}
313307

314-
public static Status status(URL remoteAddress) {
315-
HttpResponse response = new HttpResponse();
316-
try (HttpClient client = HttpClient.Factory.createDefault().createClient(remoteAddress)) {
317-
HttpRequest request = new HttpRequest(HttpMethod.GET, "/status");
318-
response = client.execute(request);
319-
Map<String, Object> responseMap = new Json().toType(string(response), Map.class);
320-
Map<String, Object> value = (Map<String, Object>) responseMap.get("value");
321-
322-
return new Status((boolean) value.get("ready"), (String) value.get("message"));
323-
} catch (JsonException e) {
324-
throw new WebDriverException("Unable to parse remote response: " + string(response), e);
325-
}
326-
}
327-
328308
@Override
329309
public void get(String url) {
330310
execute(DriverCommand.GET(url));

java/src/org/openqa/selenium/remote/Status.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

java/test/org/openqa/selenium/grid/router/RemoteWebDriverStatusTest.java

Lines changed: 0 additions & 47 deletions
This file was deleted.

java/test/org/openqa/selenium/remote/WebDriverStatusTest.java

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)