Skip to content

Commit

Permalink
Removed deprecated classes from WebServer, mostly static content. (#4376
Browse files Browse the repository at this point in the history
)

Signed-off-by: Tomas Langer <[email protected]>
  • Loading branch information
tomas-langer authored Jun 13, 2022
1 parent 2d2740d commit cd99a93
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 1,992 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2021 Oracle and/or its affiliates.
* Copyright (c) 2017, 2022 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.helidon.webserver.testsupport;
package io.helidon.webserver.staticcontent;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -27,15 +27,16 @@
import io.helidon.common.http.Http;
import io.helidon.common.http.MediaType;
import io.helidon.webserver.Routing;
import io.helidon.webserver.StaticContentSupport;
import io.helidon.webserver.testsupport.TestClient;
import io.helidon.webserver.testsupport.TestResponse;

import org.junit.jupiter.api.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

/**
* Tests {@link io.helidon.webserver.ClassPathContentHandler}.
* Tests {@link io.helidon.webserver.staticcontent.ClassPathContentHandler}.
*/
public class ClassPathContentHandlerTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2021 Oracle and/or its affiliates.
* Copyright (c) 2017, 2022 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.helidon.webserver.testsupport;
package io.helidon.webserver.staticcontent;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
Expand All @@ -27,7 +27,10 @@
import io.helidon.common.http.Http;
import io.helidon.common.http.MediaType;
import io.helidon.webserver.Routing;
import io.helidon.webserver.StaticContentSupport;
import io.helidon.webserver.testsupport.TemporaryFolder;
import io.helidon.webserver.testsupport.TemporaryFolderExtension;
import io.helidon.webserver.testsupport.TestClient;
import io.helidon.webserver.testsupport.TestResponse;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -37,7 +40,7 @@
import static org.hamcrest.MatcherAssert.assertThat;

/**
* Tests {@link io.helidon.webserver.FileSystemContentHandler}.
* Tests {@link io.helidon.webserver.staticcontent.FileSystemContentHandler}.
*/
@ExtendWith(TemporaryFolderExtension.class)
public class FileSystemContentHandlerTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2021 Oracle and/or its affiliates.
# Copyright (c) 2017, 2022 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2021 Oracle and/or its affiliates.
# Copyright (c) 2017, 2022 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2021 Oracle and/or its affiliates.
# Copyright (c) 2017, 2022 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2021 Oracle and/or its affiliates.
# Copyright (c) 2017, 2022 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2021 Oracle and/or its affiliates.
# Copyright (c) 2017, 2022 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2021 Oracle and/or its affiliates.
# Copyright (c) 2017, 2022 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

This file was deleted.

Loading

0 comments on commit cd99a93

Please sign in to comment.