Skip to content

Commit

Permalink
Move jetty server to its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 15, 2019
1 parent 879c4b0 commit 7678927
Show file tree
Hide file tree
Showing 23 changed files with 59 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ java_library(
"//java/server/src/org/openqa/selenium/grid/sessionmap",
"//java/server/src/org/openqa/selenium/grid/sessionmap/local",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//third_party/java/beust:jcommander",
"//third_party/java/guava",
"//third_party/java/service",
Expand Down
2 changes: 1 addition & 1 deletion java/server/src/org/openqa/selenium/grid/commands/Hub.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.openqa.selenium.grid.server.EventBusConfig;
import org.openqa.selenium.grid.server.EventBusFlags;
import org.openqa.selenium.grid.server.HelpFlags;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.grid.sessionmap.SessionMap;
import org.openqa.selenium.grid.sessionmap.local.LocalSessionMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import org.openqa.selenium.grid.server.EventBusConfig;
import org.openqa.selenium.grid.server.EventBusFlags;
import org.openqa.selenium.grid.server.HelpFlags;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.grid.sessionmap.SessionMap;
import org.openqa.selenium.grid.sessionmap.local.LocalSessionMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ java_library(
"//java/server/src/org/openqa/selenium/grid/sessionmap",
"//java/server/src/org/openqa/selenium/grid/sessionmap/config",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//third_party/java/beust:jcommander",
"//third_party/java/guava",
"//third_party/java/service",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.openqa.selenium.grid.server.EventBusConfig;
import org.openqa.selenium.grid.server.EventBusFlags;
import org.openqa.selenium.grid.server.HelpFlags;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.grid.sessionmap.SessionMap;
import org.openqa.selenium.grid.sessionmap.config.SessionMapFlags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ java_library(
"//java/server/src/org/openqa/selenium/grid/node/local",
"//java/server/src/org/openqa/selenium/grid/server",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//third_party/java/beust:jcommander",
"//third_party/java/guava",
"//third_party/java/service",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import org.openqa.selenium.grid.server.EventBusConfig;
import org.openqa.selenium.grid.server.EventBusFlags;
import org.openqa.selenium.grid.server.HelpFlags;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.remote.http.HttpClient;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ java_library(
"//java/server/src/org/openqa/selenium/grid/sessionmap",
"//java/server/src/org/openqa/selenium/grid/sessionmap/config",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//third_party/java/beust:jcommander",
"//third_party/java/service",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.openqa.selenium.grid.server.BaseServerFlags;
import org.openqa.selenium.grid.server.BaseServerOptions;
import org.openqa.selenium.grid.server.HelpFlags;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.grid.sessionmap.SessionMap;
import org.openqa.selenium.grid.sessionmap.config.SessionMapFlags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ java_library(
srcs = glob(["*.java"]),
visibility = [
"//java/server/src/org/openqa/selenium/grid:__subpackages__",
"//java/server/src/org/openqa/selenium/jetty/server:__pkg__",
"//java/server/src/org/openqa/selenium/netty/server:__pkg__",
"//java/server/src/org/openqa/selenium/remote/server:__pkg__",
"//java/server/test/org/openqa/selenium/grid:__subpackages__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ java_library(
"//java/server/src/org/openqa/selenium/grid/sessionmap",
"//java/server/src/org/openqa/selenium/grid/sessionmap/local",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//third_party/java/beust:jcommander",
"//third_party/java/guava",
"//third_party/java/service",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.openqa.selenium.grid.server.EventBusConfig;
import org.openqa.selenium.grid.server.EventBusFlags;
import org.openqa.selenium.grid.server.HelpFlags;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.grid.sessionmap.SessionMap;
import org.openqa.selenium.grid.sessionmap.local.LocalSessionMap;
Expand Down
1 change: 1 addition & 0 deletions java/server/src/org/openqa/selenium/grid/web/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ java_library(
"//java/server/src/org/openqa/selenium/grid:__subpackages__",
"//java/server/src/org/openqa/selenium/remote/server:__subpackages__",
"//java/server/test/org/openqa/selenium/grid:__subpackages__",
"//java/server/test/org/openqa/selenium/jetty/server:__pkg__",
],
deps = [
"//java/client/src/org/openqa/selenium:core",
Expand Down
17 changes: 17 additions & 0 deletions java/server/src/org/openqa/selenium/jetty/server/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
java_library(
name = "server",
srcs = glob(["*.java"]),
deps = [
"//java/client/src/org/openqa/selenium:core",
"//java/client/src/org/openqa/selenium/json",
"//java/client/src/org/openqa/selenium/remote/http",
"//java/server/src/org/openqa/selenium/grid/server",
"//third_party/java/jetty",
"//third_party/java/servlet:javax.servlet-api",
],
visibility = [
"//java/server/src/org/openqa/selenium/grid:__subpackages__",
"//java/server/test/org/openqa/selenium/jetty/server:__pkg__",
"//java/server/test/org/openqa/selenium/grid:__subpackages__",
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

package org.openqa.selenium.grid.server;
package org.openqa.selenium.jetty.server;

import org.openqa.selenium.remote.http.HttpHandler;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
// specific language governing permissions and limitations
// under the License.

package org.openqa.selenium.grid.server;
package org.openqa.selenium.jetty.server;

import org.eclipse.jetty.servlet.FilterHolder;
import org.eclipse.jetty.servlets.CrossOriginFilter;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.grid.server.AddWebDriverSpecHeaders;
import org.openqa.selenium.grid.server.BaseServerOptions;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.grid.server.WrapExceptions;
import org.openqa.selenium.net.NetworkUtils;
import org.openqa.selenium.net.PortProber;
import org.openqa.selenium.remote.http.HttpHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.beust.jcommander.JCommander;

import org.openqa.selenium.grid.config.AnnotatedConfig;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.BaseServerFlags;
import org.openqa.selenium.grid.server.BaseServerOptions;
import org.openqa.selenium.grid.server.HelpFlags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ java_test_suite(
"//java/server/src/org/openqa/selenium/grid/sessionmap/local",
"//java/server/src/org/openqa/selenium/grid/sessionmap/remote",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//java/server/test/org/openqa/selenium/grid/testing",
"//third_party/java/assertj",
"//third_party/java/guava",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import org.openqa.selenium.grid.node.SessionFactory;
import org.openqa.selenium.grid.node.local.LocalNode;
import org.openqa.selenium.grid.server.BaseServerOptions;
import org.openqa.selenium.grid.server.JettyServer;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.grid.server.Server;
import org.openqa.selenium.grid.sessionmap.SessionMap;
import org.openqa.selenium.grid.sessionmap.local.LocalSessionMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ java_test_suite(
"//java/server/src/org/openqa/selenium/grid/config",
"//java/server/src/org/openqa/selenium/grid/server",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//java/server/test/org/openqa/testing",
"//third_party/java/assertj",
"//third_party/java/guava",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.UnableToSetCookieException;
import org.openqa.selenium.grid.config.MapConfig;
import org.openqa.selenium.grid.web.ErrorCodec;
import org.openqa.selenium.jetty.server.JettyServer;
import org.openqa.selenium.json.Json;
import org.openqa.selenium.remote.http.HttpClient;
import org.openqa.selenium.remote.http.HttpRequest;
Expand Down
17 changes: 17 additions & 0 deletions java/server/test/org/openqa/selenium/jetty/server/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
load("//java:defs.bzl", "java_test_suite")

java_test_suite(
name = "SmallTests",
size = "small",
srcs = glob(["*.java"]),
deps = [
"//java/client/src/org/openqa/selenium/json",
"//java/client/src/org/openqa/selenium/remote/http",
"//java/server/src/org/openqa/selenium/grid/web",
"//java/server/src/org/openqa/selenium/jetty/server",
"//java/server/test/org/openqa/testing",
"//third_party/java/assertj",
"//third_party/java/junit",
"//third_party/java/servlet:javax.servlet-api",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

package org.openqa.selenium.grid.server;
package org.openqa.selenium.jetty.server;

import org.junit.Test;
import org.openqa.selenium.grid.web.ErrorCodec;
Expand Down

0 comments on commit 7678927

Please sign in to comment.