Skip to content

Commit

Permalink
Comment connectors based on Jetty
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Boileau committed Jan 26, 2025
1 parent b813283 commit f3db58d
Show file tree
Hide file tree
Showing 32 changed files with 43 additions and 95 deletions.
10 changes: 0 additions & 10 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
Changes log
===========

- 2.6 Release Candidate 1 (??-02-2025)
- Enhancements
- ...
- Security
- ...
- Bugs fixed
- ...
- Misc
- ...

- 2.6 Milestone 1 (26-01-2025)
- Enhancements
- Java 17 is the minimum requirement.
Expand Down
2 changes: 1 addition & 1 deletion org.restlet.gwt/org.restlet.gwt.ext.json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet.gwt</groupId>
<artifactId>org.restlet.gwt.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.gwt/org.restlet.gwt.ext.xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet.gwt</groupId>
<artifactId>org.restlet.gwt.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.gwt/org.restlet.gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet.gwt</groupId>
<artifactId>org.restlet.gwt.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,19 @@ public class Engine {
/** The registered engine. */
private static volatile Engine instance = null;




/** Major version number. */
public static final String MAJOR_NUMBER = "2";

/** Minor version number. */
public static final String MINOR_NUMBER = "6";

/** Release number. */
public static final String RELEASE_NUMBER = "-SNAPSHOT";

public static final String RELEASE_NUMBER = ".0-m1";

/** Complete version. */
public static final String VERSION = MAJOR_NUMBER + '.' + MINOR_NUMBER
+ RELEASE_NUMBER;

/** Complete version header. */
public static final String VERSION_HEADER = "Restlet-Framework/" + VERSION;

/**
* Clears the current Restlet Engine altogether.
*/
Expand Down
2 changes: 1 addition & 1 deletion org.restlet.gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.atom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.crypto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.freemarker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.gson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.jaas/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.jaxb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.odata/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.slf4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.thymeleaf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.velocity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.ext.xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ protected String getCallUri(String host) {

protected Stream<ConnectorTestCase> listTestCases() {
return Stream.of(
new ConnectorTestCase(HttpServer.INTERNAL, HttpClient.INTERNAL),
new ConnectorTestCase(HttpServer.INTERNAL, HttpClient.JETTY),
new ConnectorTestCase(HttpServer.JETTY, HttpClient.INTERNAL),
new ConnectorTestCase(HttpServer.JETTY, HttpClient.JETTY)
// new ConnectorTestCase(HttpServer.INTERNAL, HttpClient.JETTY), // restore while taking care of #1444
// new ConnectorTestCase(HttpServer.JETTY, HttpClient.INTERNAL), // restore while taking care of #1444
// new ConnectorTestCase(HttpServer.JETTY, HttpClient.JETTY), // restore while taking care of #1444
new ConnectorTestCase(HttpServer.INTERNAL, HttpClient.INTERNAL)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@

package org.restlet.test.engine.connector;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import org.restlet.Application;
import org.restlet.Client;
import org.restlet.Component;
import org.restlet.Request;
import org.restlet.Response;
import org.restlet.Restlet;
import org.restlet.*;
import org.restlet.data.MediaType;
import org.restlet.data.Method;
import org.restlet.data.Protocol;
Expand All @@ -27,7 +19,8 @@
import org.restlet.resource.ServerResource;
import org.restlet.routing.Router;

import java.util.stream.Stream;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

/**
* This tests the ability of the connectors to handle chunked encoding.
Expand All @@ -38,13 +31,6 @@
public class ChunkedEncodingPutTestCase extends BaseConnectorsTestCase {
private static final int LOOP_NUMBER = 200;

@Override
protected Stream<ConnectorTestCase> listTestCases() { // Drop this override while taking care of ticket #1444
return Stream.of(
new ConnectorTestCase(HttpServer.INTERNAL, HttpClient.INTERNAL)
);
}

@Override
protected void doTestUri(String uri) throws Exception {
for (int testIndex = 0; testIndex < LOOP_NUMBER; testIndex++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,8 @@

package org.restlet.test.engine.connector;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;

import java.io.IOException;
import java.util.stream.Stream;

import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

import org.restlet.Application;
import org.restlet.Client;
import org.restlet.Component;
import org.restlet.Message;
import org.restlet.Request;
import org.restlet.Response;
import org.restlet.Restlet;
import org.restlet.data.Header;
import org.restlet.data.MediaType;
import org.restlet.data.Method;
import org.restlet.data.Protocol;
import org.restlet.data.Status;
import org.restlet.*;
import org.restlet.data.*;
import org.restlet.engine.header.HeaderConstants;
import org.restlet.ext.xml.DomRepresentation;
import org.restlet.representation.Representation;
Expand All @@ -41,6 +21,12 @@
import org.w3c.dom.Document;
import org.w3c.dom.Element;

import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;

import static org.junit.jupiter.api.Assertions.*;

/**
* This tests the ability of the connectors to handle chunked encoding.
*
Expand All @@ -51,13 +37,6 @@ public class ChunkedEncodingTestCase extends BaseConnectorsTestCase {

private static final int LOOP_NUMBER = 50;

@Override
protected Stream<ConnectorTestCase> listTestCases() { // Drop this override while taking care of ticket #1444
return Stream.of(
new ConnectorTestCase(HttpServer.INTERNAL, HttpClient.INTERNAL)
);
}

@Override
protected void doTestUri(String uri) throws Exception {
for (int testIndex = 0; testIndex < LOOP_NUMBER; testIndex++) {
Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/org.restlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class Engine {
public static final String MINOR_NUMBER = "6";

/** Release number. */
public static final String RELEASE_NUMBER = "-SNAPSHOT";
public static final String RELEASE_NUMBER = ".0-m1";

/** The org.restlet log level. */
private static volatile Level restletLogLevel;
Expand Down
2 changes: 1 addition & 1 deletion org.restlet.java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.parent</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.6.0-m1</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Loading

0 comments on commit f3db58d

Please sign in to comment.