Bump restlet from 2.4.0 to 2.5.0-rc1

This commit is contained in:
Alex Osborne
2024-11-29 10:34:35 +09:00
parent 4093871de1
commit 405b2efc6d
2 changed files with 10 additions and 9 deletions
+9 -8
View File
@@ -44,14 +44,14 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<groupId>org.restlet</groupId>
<artifactId>org.restlet</artifactId>
<version>2.4.0</version>
<version>${restlet.version}</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.ext.jetty</artifactId>
<version>2.4.0</version>
<version>${restlet.version}</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
@@ -60,15 +60,15 @@
</exclusions>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.ext.xml</artifactId>
<version>2.4.0</version>
<version>${restlet.version}</version>
</dependency>
<dependency>
<!-- for HTTP Digest auth -->
<groupId>org.restlet.jse</groupId>
<groupId>org.restlet</groupId>
<artifactId>org.restlet.ext.crypto</artifactId>
<version>2.4.0</version>
<version>${restlet.version}</version>
</dependency>
<!-- jaxb is no longer included in jdk11+ -->
<dependency>
@@ -118,5 +118,6 @@
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<restlet.version>2.5.0-rc1</restlet.version>
</properties>
</project>
@@ -137,7 +137,7 @@ public class EngineApplication extends Application {
protected class EngineStatusService extends StatusService {
@Override
public Representation getRepresentation(Status status, Request request, Response response) {
public Representation toRepresentation(Status status, Request request, Response response) {
StringWriter st = new StringWriter();
PrintWriter pw = new PrintWriter(st);
if(status.getCode()==404){