Skip to content

Commit 76e0e6e

Browse files
committed
Use org.apache.iceberg.rest.RESTCatalogServlet
1 parent e3b43bc commit 76e0e6e

3 files changed

Lines changed: 4 additions & 241 deletions

File tree

plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/rest/VendedCredentialsRestCatalogServlet.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import jakarta.servlet.http.HttpServletResponse;
1818
import org.apache.hc.core5.http.ContentType;
1919
import org.apache.iceberg.rest.RESTCatalogAdapter;
20-
import org.apache.iceberg.rest.RestCatalogServlet;
20+
import org.apache.iceberg.rest.RESTCatalogServlet;
2121
import org.apache.iceberg.rest.credentials.ImmutableCredential;
2222
import org.apache.iceberg.rest.responses.ImmutableLoadCredentialsResponse;
2323
import org.apache.iceberg.rest.responses.LoadCredentialsResponse;
@@ -28,10 +28,10 @@
2828
import java.util.concurrent.atomic.AtomicInteger;
2929

3030
/**
31-
* Extends {@link RestCatalogServlet} to handle the {@code GET .../credentials} custom endpoint.
31+
* Extends {@link RESTCatalogServlet} to handle the {@code GET .../credentials} custom endpoint.
3232
*/
3333
public abstract class VendedCredentialsRestCatalogServlet
34-
extends RestCatalogServlet
34+
extends RESTCatalogServlet
3535
{
3636
private final AtomicInteger vendedCredentialsRefreshCount = new AtomicInteger();
3737

plugin/trino-iceberg/src/test/java/org/apache/iceberg/rest/DelegatingRestSessionCatalog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public TestingHttpServer testServer()
6565
.setHttpAcceptQueueSize(10)
6666
.setHttpEnabled(true);
6767
HttpServerInfo httpServerInfo = new HttpServerInfo(config, nodeInfo);
68-
RestCatalogServlet servlet = new RestCatalogServlet(adapter);
68+
RESTCatalogServlet servlet = new RESTCatalogServlet(adapter);
6969

7070
return new TestingHttpServer("rest-catalog", httpServerInfo, nodeInfo, config, servlet, ServerFeature.builder()
7171
// Required due to URIs like: HEAD /v1/namespaces/level_1%1Flevel_2

plugin/trino-iceberg/src/test/java/org/apache/iceberg/rest/RestCatalogServlet.java

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

0 commit comments

Comments
 (0)